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:
parent
6005e91d8a
commit
5a8c3bb201
2 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue