mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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
|
//Gallery crashes before reach ShareActivity screen so must implement check here
|
||||||
if (ContextCompat.checkSelfPermission(this.getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
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);
|
ActivityCompat.requestPermissions(this.getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
controller.startGalleryPick();
|
controller.startGalleryPick();
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
case R.id.menu_from_camera:
|
case R.id.menu_from_camera:
|
||||||
controller.startCameraCapture();
|
controller.startCameraCapture();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue