diff options
| author | 2021-09-02 11:32:55 +0800 | |
|---|---|---|
| committer | 2021-09-02 11:32:55 +0800 | |
| commit | 3502b01b611be16ea88b607113c79ddde9d06771 (patch) | |
| tree | 6758457a4ae67c79ad28e1e638b386aae8b8fe9e | |
| parent | 7fb056725e495f937f438cc4c678c172acb650a3 (diff) | |
[Provider Model] The carrier name of the "Turn off mobile data" is wrong.
Should get the display name from SubInfo instead of carrier name
Bug: 198397635
Test: manual and Q verified
Change-Id: I8f68d0bacb02e79891c4996e9c8b2a706104d801
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java index 4d0cbd15a788..52bf2df53fb0 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java @@ -486,8 +486,7 @@ public class InternetDialog extends SystemUIDialog implements } private void showTurnOffMobileDialog() { - CharSequence carrierName = - mSubscriptionManager.getDefaultDataSubscriptionInfo().getCarrierName(); + CharSequence carrierName = getMobileNetworkTitle(); boolean isInService = mInternetDialogController.isVoiceStateInService(); if (TextUtils.isEmpty(carrierName) || !isInService) { carrierName = mContext.getString(R.string.mobile_data_disable_message_default_carrier); |