1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-04-03 01:21:37 +00:00

Fix crop for scoped storage

This commit is contained in:
Ammar Githam 2021-04-08 07:51:37 +09:00
parent 6005e91d8a
commit 5a8c3bb201
2 changed files with 6 additions and 1 deletions

View file

@ -225,6 +225,11 @@ public class ImageEditFragment extends Fragment {
@Override
public void onCropFinish(final UCropFragment.UCropResult result) {
Log.d(TAG, "onCropFinish: " + result.mResultCode);
if (result.mResultCode == UCrop.RESULT_ERROR) {
final Throwable t = UCrop.getError(result.mResultData);
Log.e(TAG, "onCropFinish: ", t);
return;
}
if (result.mResultCode == AppCompatActivity.RESULT_OK) {
final Intent resultData = result.mResultData;
final Bundle extras = resultData.getExtras();