Fix panel bugs

Add unique task affinity so the panel activity
always opens alone. Apparently the launchMode="singleTop" was
insufficient.

Test: manual app
Fixes: 126385021
Fixes: 126386586
Fixes: 126326438
Change-Id: I775e84701d006cfbe0d9ddfff83669b3f8487b33
This commit is contained in:
Matthew Fritze
2019-02-26 14:14:56 -08:00
parent c2d7bb7965
commit db7fe5e5f7
2 changed files with 2 additions and 1 deletions

View File

@@ -3009,6 +3009,7 @@
android:theme="@style/Theme.BottomDialog" android:theme="@style/Theme.BottomDialog"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:launchMode="singleTop" android:launchMode="singleTop"
android:taskAffinity=".panel.SettingsPanelActivity"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.settings.panel.action.INTERNET_CONNECTIVITY" /> <action android:name="android.settings.panel.action.INTERNET_CONNECTIVITY" />

View File

@@ -20,7 +20,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/title" android:id="@+id/panel_title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"