[Settings] Remove MobileNetworkActivity
- remove the component name when launching the intent, using the action intent to replace.
- remove MobileNetworkActivity and rename SubscriptionSettingsActivity as MobileNetworkActivity.
Bug: 210593601
Test: atest
Change-Id: Icb7adaf9f7c7dfe01ff5c133aee8387c1663546c
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 6e82b11..584d7c0 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -238,17 +238,14 @@
android:value="true" />
</activity>
- <activity android:name=".network.telephony.MobileNetworkActivity"
- android:label="@string/network_settings_title"
- android:exported="true"
- android:taskAffinity="com.android.settings.root"
- android:launchMode="singleTask"
- android:configChanges="orientation|screenSize|keyboardHidden">
- <!-- Note: Since the framework does not support the multiple requests of network scan
- from the UI, this singleTask can protect that there is only one
- Settings$NetworkSelectActivity which can request the network scan.
- If removing the "singleTask" in the future, please also modify the
- Settings$NetworkSelectActivity's structure. -->
+ <activity
+ android:name=".Settings$MobileNetworkActivity"
+ android:label="@string/network_settings_title"
+ android:configChanges="orientation|screenSize|keyboardHidden"
+ android:launchMode="singleInstance"
+ android:exported="true">
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.network.telephony.MobileNetworkSettings"/>
<intent-filter android:priority="1">
<!-- Displays the MobileNetworkActivity and opt-in dialog for capability discovery. -->
<action android:name="android.telephony.ims.action.SHOW_CAPABILITY_DISCOVERY_OPT_IN" />
@@ -259,14 +256,6 @@
</intent-filter>
</activity>
- <activity
- android:name=".Settings$SubscriptionSettingsActivity"
- android:label="@string/network_settings_title"
- android:exported="false">
- <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
- android:value="com.android.settings.network.telephony.MobileNetworkSettings"/>
- </activity>
-
<activity android:name=".Settings$MobileNetworkListActivity"
android:exported="true"
android:label="@string/network_settings_title">
@@ -549,7 +538,6 @@
<activity android:name="Settings$ApnSettingsActivity"
android:label="@string/apn_settings"
- android:launchMode="singleTask"
android:exported="true"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter android:priority="1">