Separating the bluetooth dialog task from car settings
Car settings was automatically being brought to the front of the device
if it had been opened and then the user connects to bluetooth through
SUW. This seems to be caused because the dialog attaches to the
settings task. Added an affinity and the singleTask flag to the activity
so that this problem is fixed.
The only non-style related changes are in AndroidManifest.xml
Fixes: 117828665
Test: Manual testing
Change-Id: I75db86353d7c375ce681adcc17e95584166eeb19
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0d0c243..ac5ba93 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -94,6 +94,8 @@
<activity android:name=".bluetooth.BluetoothPairingDialog"
android:excludeFromRecents="true"
android:windowSoftInputMode="stateVisible|adjustResize"
+ android:taskAffinity="car.settings.bluetooth"
+ android:launchMode="singleTask"
android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog.NoActionBar">
</activity>