mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fixed returns
This commit is contained in:
parent
456ed7aff6
commit
ae7ed76943
1 changed files with 2 additions and 1 deletions
|
|
@ -102,10 +102,11 @@ public class ContributionsListFragment extends Fragment {
|
|||
//Gallery crashes before reach ShareActivity screen so must implement check here
|
||||
if (ContextCompat.checkSelfPermission(this.getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
ActivityCompat.requestPermissions(this.getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1);
|
||||
return true;
|
||||
} else {
|
||||
controller.startGalleryPick();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case R.id.menu_from_camera:
|
||||
controller.startCameraCapture();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue