11-18 18:15:29.547 V/ActivityManager( 877): Resuming ActivityRecord{94d54b2 u0 com.adyen.startfirst/.SecondaryActivity t16055}
11-18 18:15:29.547 D/ActivityManager( 877): allPausedActivitiesComplete: r=ActivityRecord{d575aaf u0 com.adyen.startsecond/.MainActivity t15948} state=PAUSING
11-18 18:15:29.547 V/ActivityManager( 877): resumeTopActivityLocked: Skip resume: some activity pausin
提示log如上,pause 为完成,resume return
修改:
diff --git a/frameworks/base/services/core/java/com/android/server/am/ActivityStack.java b/frameworks/base/services/core/java/com/android/server/am/ActivityStack.java
old mode 100644
new mode 100755
index 271ca68..ab42363
--- a/frameworks/base/services/core/java/com/android/server/am/ActivityStack.java
+++ b/frameworks/base/services/core/java/com/android/server/am/ActivityStack.java
@@ -2448,6 +2448,15 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
if (DEBUG_SWITCH || DEBUG_PAUSE || DEBUG_STATES) Slog.v(TAG_PAUSE,
"resumeTopActivityLocked: Skip resume: some activity pausing.");
if (DEBUG_STACK) mStackSupervisor.validateTopActivitiesLocked();
+ //<!--jicong.wang modify for task 17695
+ mHandler.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ Slog.v(TAG_PAUSE, "wangjicong delay to resumetop");
+ resumeTopActivityInnerLocked(prev,options);
+ }
+ },20);
+ //jicong.wang modify for task 17695 -->
return false;
}