Commit ecf7f9b9 authored by Travis Skare's avatar Travis Skare Committed by Commit Bot

[Screenshots] Avoid crash requesting permissions after fragment saved and unloaded

Note: Based on a few historical bugs that address a similar issue. Could not repro
on my personal test device, will coordinate verification with reporter.

Bug: 1145497
Change-Id: I3d1f9781037fad41cb1f7af578781eed9b7c1ec3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2529971Reviewed-by: default avatarJeffrey Cohen <jeffreycohen@chromium.org>
Commit-Queue: Travis Skare <skare@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826349}
parent 7f675a87
...@@ -63,7 +63,7 @@ public class ScreenshotShareSheetDialog extends DialogFragment { ...@@ -63,7 +63,7 @@ public class ScreenshotShareSheetDialog extends DialogFragment {
R.layout.screenshot_share_sheet, null); R.layout.screenshot_share_sheet, null);
builder.setView(screenshotShareSheetView); builder.setView(screenshotShareSheetView);
new ScreenshotShareSheetCoordinator(mContext, mScreenshot, this::dismiss, new ScreenshotShareSheetCoordinator(mContext, mScreenshot, this::dismissAllowingStateLoss,
screenshotShareSheetView, mTab, mChromeOptionShareCallback, mInstallCallback); screenshotShareSheetView, mTab, mChromeOptionShareCallback, mInstallCallback);
return builder.create(); return builder.create();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment