We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c845e commit a6a7616Copy full SHA for a6a7616
atlas-core/src/main/java/android/taobao/atlas/runtime/ActivityTaskMgr.java
@@ -264,7 +264,9 @@ public void pushToActivityStack(Activity activity) {
264
}
265
266
public void popFromActivityStack(Activity activity) {
267
- if(sReminderDialog!=null && sReminderDialog.getContext()==activity){
+ if(sReminderDialog!=null &&
268
+ (sReminderDialog.getContext()==activity ||
269
+ (sReminderDialog.getContext() instanceof ContextWrapper && ((ContextWrapper)sReminderDialog.getContext()).getBaseContext()==activity))){
270
try{
271
sReminderDialog.dismiss();
272
}catch (Throwable e){}finally {
0 commit comments