[Settings] Adjusted the API of Settings app
The API of Settings app get changed in order to support large screen.
This is a fix to adopt the change related to this work.
A short brief:
1. Accept ACTION_MAIN for launching MobileNetworkActivity.
2. Support deep-link intent while MobileNetworkActivity in foreground.
3. Avoid from binding MobileNetworkActivity as a single instance.
Bug: 230047450
Bug: 234406562
Bug: 229371407
Test: local & unittest
Change-Id: Ifcb9d4c564839199d998bd503f390f021c6bf3ad
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 44be1ef..a8e0390 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -249,12 +249,14 @@
android:name=".Settings$MobileNetworkActivity"
android:label="@string/network_settings_title"
android:configChanges="orientation|screenSize|keyboardHidden"
- android:launchMode="singleInstance"
+ android:launchMode="singleTop"
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. -->
+ <!-- Please sync with a list created within MobileNetworkIntentConverter.java -->
+ <action android:name="android.intent.action.MAIN" />
<action android:name="android.telephony.ims.action.SHOW_CAPABILITY_DISCOVERY_OPT_IN" />
<action android:name="android.settings.NETWORK_OPERATOR_SETTINGS" />
<action android:name="android.settings.DATA_ROAMING_SETTINGS" />