Add FLAG_ACTIVITY_CLEAR_TOP to more details intent

This ensures that the more details activity displays information about
the correct app.

Change-Id: I0c0f71fff32c2c1c5f4597c8a4eab90ec54409ca
Fixes: 80070434
Test: manually verified
This commit is contained in:
Petr Cermak
2018-05-23 15:29:53 +01:00
parent a1b34a43a2
commit 5c98d61f6c

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;