mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Make file selection dialog usable.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user