Fixed returns

This commit is contained in:
misaochan 2016-07-15 00:37:06 +12:00
parent 456ed7aff6
commit ae7ed76943

View file

@ -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;