diff options
| author | 2021-03-20 17:31:58 -0400 | |
|---|---|---|
| committer | 2021-03-20 17:31:58 -0400 | |
| commit | 101047f54daebe16c4ed5d7aa5eb509c4f867f01 (patch) | |
| tree | 3683cec1e0b34f1a52e2fa83639c6b69685c17ae | |
| parent | 177d8e36f546cfed613960aadccd93298d63be49 (diff) | |
Move image cleanup operations to onStop
The Activity may still be visible onPause.
Bug: 183277963
Test: Validate cleanup via logs, ensure image doesn't disappear
Change-Id: I8976293c9c0e070d6bc08e08d177765311201cb8
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/LongScreenshotActivity.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/LongScreenshotActivity.java b/packages/SystemUI/src/com/android/systemui/screenshot/LongScreenshotActivity.java index 31cdadab070d..03ec46f57333 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/LongScreenshotActivity.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/LongScreenshotActivity.java @@ -270,8 +270,14 @@ public class LongScreenshotActivity extends Activity { @Override protected void onPause() { - Log.d(TAG, "onPause finishing=" + isFinishing()); + Log.d(TAG, "onPause"); super.onPause(); + } + + @Override + protected void onStop() { + Log.d(TAG, "onStop finishing=" + isFinishing()); + super.onStop(); if (isFinishing()) { if (mScrollCaptureResponse != null) { mScrollCaptureResponse.close(); @@ -300,12 +306,6 @@ public class LongScreenshotActivity extends Activity { } @Override - protected void onStop() { - Log.d(TAG, "onStop"); - super.onStop(); - } - - @Override protected void onDestroy() { Log.d(TAG, "onDestroy"); super.onDestroy(); |