Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d719de84 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Highlight the MMS messages preference for ACTION_MMS_MESSAGE_SETTING"...

Merge "Highlight the MMS messages preference for ACTION_MMS_MESSAGE_SETTING" am: 21846b22 am: 0a2c4060

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1405190

Change-Id: I91608590cc7b0255706d0ea4bdc896a778e72b8b
parents 9d867703 0a2c4060
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings.network.telephony;

import static com.android.settings.SettingsActivity.EXTRA_FRAGMENT_ARG_KEY;

import android.app.ActionBar;
import android.content.Intent;
import android.os.Bundle;
@@ -254,8 +256,13 @@ public class MobileNetworkActivity extends SettingsBaseActivity
        final FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();

        final int subId = subInfo.getSubscriptionId();
        final Intent intent = getIntent();
        final Bundle bundle = new Bundle();
        bundle.putInt(Settings.EXTRA_SUB_ID, subId);
        if (intent != null && Settings.ACTION_MMS_MESSAGE_SETTING.equals(intent.getAction())) {
            // highlight "mms_message" preference.
            bundle.putString(EXTRA_FRAGMENT_ARG_KEY, "mms_message");
        }

        final String fragmentTag = buildFragmentTag(subId);
        if (fragmentManager.findFragmentByTag(fragmentTag) != null) {