Commit d0a7a916 authored by Jeffrey Cohen's avatar Jeffrey Cohen Committed by Commit Bot

[Screenshot] set mWindowAndroid to null on share sheet destroy

mWindowAndroid==null is overloaded to indicate if ShareSheetController
is registered as an ActivityStateObserver. Setting it to null here
maintains that relationship.

Bug: 1093365
Change-Id: Ia33c96e57e0504ce50fb6cefcb34b14fdcf25136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2298176Reviewed-by: default avatarKyle Milka <kmilka@chromium.org>
Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Jeffrey Cohen <jeffreycohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#788651}
parent 1c35fd55
......@@ -86,6 +86,7 @@ public class ShareSheetCoordinator
protected void destroy() {
if (mWindowAndroid != null) {
mWindowAndroid.removeActivityStateObserver(this);
mWindowAndroid = null;
}
}
......
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