Merge "Add FLAG_ACTIVITY_CLEAR_TOP to more details intent" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-05-23 21:52:40 +00:00
committed by Android (Google) Code Review

View File

@@ -60,7 +60,7 @@ public class SuspendedAppActivity extends AlertActivity
if (resolvedInfo != null && resolvedInfo.activityInfo != null
&& requiredPermission.equals(resolvedInfo.activityInfo.permission)) {
moreDetailsIntent.putExtra(Intent.EXTRA_PACKAGE_NAME, suspendedPackage)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
return moreDetailsIntent;
}
return null;