[Settings] Update the title if launch the fragment from search app
Bug: 245613972 Change-Id: I937a4acf0917a16660ff237d0511a5883864a1b9 Test: manual Merged-In: I07bf9a8f59ea14fc8133e2473746a59a5c187d47
This commit is contained in:
@@ -53,7 +53,7 @@ public class MobileNetworkIntentConverter implements Function<Intent, Intent> {
|
|||||||
private static final ComponentName sTargetComponent = ComponentName
|
private static final ComponentName sTargetComponent = ComponentName
|
||||||
.createRelative("com.android.settings",
|
.createRelative("com.android.settings",
|
||||||
MobileNetworkActivity.class.getTypeName());
|
MobileNetworkActivity.class.getTypeName());
|
||||||
|
private static final String INTENT_TRAMPOLINE = "android.settings.SEARCH_RESULT_TRAMPOLINE";
|
||||||
/**
|
/**
|
||||||
* These actions has better aligned with definitions within AndroidManifest.xml
|
* These actions has better aligned with definitions within AndroidManifest.xml
|
||||||
*/
|
*/
|
||||||
@@ -63,7 +63,8 @@ public class MobileNetworkIntentConverter implements Function<Intent, Intent> {
|
|||||||
android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS,
|
android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS,
|
||||||
android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS,
|
android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS,
|
||||||
android.provider.Settings.ACTION_MMS_MESSAGE_SETTING,
|
android.provider.Settings.ACTION_MMS_MESSAGE_SETTING,
|
||||||
ImsRcsManager.ACTION_SHOW_CAPABILITY_DISCOVERY_OPT_IN
|
ImsRcsManager.ACTION_SHOW_CAPABILITY_DISCOVERY_OPT_IN,
|
||||||
|
INTENT_TRAMPOLINE
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final String RE_ROUTE_TAG = ":reroute:" + TAG;
|
private static final String RE_ROUTE_TAG = ":reroute:" + TAG;
|
||||||
@@ -112,7 +113,8 @@ public class MobileNetworkIntentConverter implements Function<Intent, Intent> {
|
|||||||
if (TextUtils.equals(action,
|
if (TextUtils.equals(action,
|
||||||
android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS)
|
android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS)
|
||||||
|| TextUtils.equals(action,
|
|| TextUtils.equals(action,
|
||||||
android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS)) {
|
android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS)
|
||||||
|
|| TextUtils.equals(action, INTENT_TRAMPOLINE)) {
|
||||||
// Accepted.
|
// Accepted.
|
||||||
ops = ops.andThen(intent -> extractArguments(intent, subId))
|
ops = ops.andThen(intent -> extractArguments(intent, subId))
|
||||||
.andThen(args -> rePackIntent(args, reqIntent))
|
.andThen(args -> rePackIntent(args, reqIntent))
|
||||||
|
Reference in New Issue
Block a user