Make file selection dialog usable.

This commit is contained in:
B. Petersen
2017-02-20 20:43:18 +01:00
parent f2349a9bdd
commit a793ae52f9
3 changed files with 2 additions and 61 deletions
@@ -1277,7 +1277,6 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
FileLog.e("messenger", e);
}
} else if (which == ChatAttachAlert.ATTACH_BUTTON_IDX_FILE ) {
Toast.makeText(getParentActivity(), LocaleController.getString("NotYetImplemented", R.string.NotYetImplemented), Toast.LENGTH_SHORT).show();
if (Build.VERSION.SDK_INT >= 23 && getParentActivity().checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
getParentActivity().requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 4);
return;