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

Commit 711fd3cb authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Fix cellular data state display error

PhoneFactory.getDataSubscription() return subId.But subscription
is slotId.

Get subId by subscription.

CRs-Fixed: 732228

Change-Id: I67ae56ab10b82a22bab83e9dacb4b9fd66b7f9bd
parent 80e9b1b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -668,7 +668,7 @@ public class MSimStatus extends PreferenceActivity {

    private void updateDataState(int subscription) {
        String display = null;
        if (PhoneFactory.getDataSubscription() == subscription
        if (PhoneFactory.getDataSubscription() == SubscriptionManager.getSubId(subscription)[0]
                && isDataServiceEnable(subscription)) {
            switch (mDataState[subscription]) {
            case TelephonyManager.DATA_CONNECTED: