Merge "Move image cleanup operations to onStop" into sc-dev
This commit is contained in:
@@ -267,8 +267,14 @@ public class LongScreenshotActivity extends Activity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
Log.d(TAG, "onPause finishing=" + isFinishing());
|
Log.d(TAG, "onPause");
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStop() {
|
||||||
|
Log.d(TAG, "onStop finishing=" + isFinishing());
|
||||||
|
super.onStop();
|
||||||
if (isFinishing()) {
|
if (isFinishing()) {
|
||||||
if (mScrollCaptureResponse != null) {
|
if (mScrollCaptureResponse != null) {
|
||||||
mScrollCaptureResponse.close();
|
mScrollCaptureResponse.close();
|
||||||
@@ -296,12 +302,6 @@ public class LongScreenshotActivity extends Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onStop() {
|
|
||||||
Log.d(TAG, "onStop");
|
|
||||||
super.onStop();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
Log.d(TAG, "onDestroy");
|
Log.d(TAG, "onDestroy");
|
||||||
|
|||||||
Reference in New Issue
Block a user