This commit is contained in:
@@ -1162,7 +1162,6 @@ public class Activity extends ContextThemeWrapper
|
||||
*/
|
||||
protected void onPause() {
|
||||
mCalled = true;
|
||||
QueuedWork.waitToFinish();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2265,6 +2265,9 @@ public final class ActivityThread {
|
||||
r.activity.mConfigChangeFlags |= configChanges;
|
||||
Bundle state = performPauseActivity(token, finished, true);
|
||||
|
||||
// Make sure any pending writes are now committed.
|
||||
QueuedWork.waitToFinish();
|
||||
|
||||
// Tell the activity manager we have paused.
|
||||
try {
|
||||
ActivityManagerNative.getDefault().activityPaused(token, state);
|
||||
|
||||
Reference in New Issue
Block a user