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

Commit ae464181 authored by Chiou-Hao Hsu's avatar Chiou-Hao Hsu Committed by Steve Kondik
Browse files

replace DEFAULT_SUBSCRIPTION

Change-Id: Idb48bf3e3103d2d1c4b0439135f8d51479ab0c02
parent 5c75b53d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -181,15 +181,17 @@ public class MSimSignalClusterView

    @Override
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        int defaultPhoneId = SubscriptionManager.getPhoneId(SubscriptionManager.
                getDefaultSubId());
        // Standard group layout onPopulateAccessibilityEvent() implementations
        // ignore content description, so populate manually
        if (mWifiVisible && mWifiGroup != null &&
                mWifiGroup.getContentDescription() != null)
            event.getText().add(mWifiGroup.getContentDescription());
        if (mMobileVisible && mMobileGroup[PhoneConstants.DEFAULT_SUBSCRIPTION] != null
                && mMobileGroup[PhoneConstants.DEFAULT_SUBSCRIPTION].
                getContentDescription() != null)
            event.getText().add(mMobileGroup[PhoneConstants.DEFAULT_SUBSCRIPTION].
        if (mMobileVisible && mMobileGroup[defaultPhoneId] != null
                && mMobileGroup[defaultPhoneId]
                        .getContentDescription() != null)
            event.getText().add(mMobileGroup[defaultPhoneId].
                    getContentDescription());
        return super.dispatchPopulateAccessibilityEvent(event);
    }