From ed2fac12f5415593483490a2e7af3686103f0cf8 Mon Sep 17 00:00:00 2001 From: cosmohsieh Date: Thu, 21 Mar 2019 13:32:19 +0800 Subject: [PATCH] [Network Connection] Start dialog as affinity activity Use affinity to keep a clear back stack to prevent caller activity from stopped stage. If there is only NetworkRequestDialog activity in back stack, caller will not be covered and then only become paused stage. Bug: 128995251 Test: manual Change-Id: I552b942810c919a41a690beff523a01aba1e4d0b --- AndroidManifest.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 5b786813069..0d23b8007f8 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2622,6 +2622,8 @@ android:name=".wifi.NetworkRequestDialogActivity" android:theme="@style/Transparent" android:excludeFromRecents="true" + android:launchMode="singleTop" + android:taskAffinity=".wifi.NetworkRequestDialogActivity" android:exported="true" android:permission="android.permission.NETWORK_SETTINGS">