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

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

SystemUI: Fix icon display abnormal when dds switch between SIMs

When we update sim1 icons for CDMA_1x style, it doesn't check the
subscription info. As a result, sim1 icon is changed while updating sim2.

Add subscription check for CDMA_1x sim1 icons update.
Refer to signal_cluster_view.xml, make sim icons vertical center to avoid
icons displaying top aligned.

CRs-Fixed: 655204

Change-Id: I7ed48a8d8040dd0b568a5b668a4abc855a0822d7
parent 14b7109d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,9 +22,10 @@

<com.android.systemui.statusbar.MSimSignalClusterView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_height="match_parent"
    android:layout_width="wrap_content"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    >
    <FrameLayout
        android:id="@+id/wifi_combo"
+19 −18
Original line number Diff line number Diff line
@@ -265,8 +265,8 @@ public class MSimSignalClusterView
            mDataActivityId[subscription] = activityIcon;
            mDataVisible[subscription] = (activityIcon != 0) ? true : false;
        }

        if (mStyle == STATUS_BAR_STYLE_CDMA_1X_COMBINED) {
            if (subscription == MSimConstants.DEFAULT_SUBSCRIPTION) {
                if (showBoth3gAnd1x() || getMobileCdma3gId(strengthIcon) != 0) {
                    mMobileCdmaVisible = true;
                    mMobileCdma1xOnlyVisible = false;
@@ -285,6 +285,7 @@ public class MSimSignalClusterView
                    mMobileCdmaVisible = false;
                    mMobileCdma1xOnlyVisible = false;
                }
            }
        } else if (mStyle == STATUS_BAR_STYLE_DATA_VOICE) {
            if (showBothDataAndVoice(subscription)
                    || getMobileVoiceId(strengthIcon) != 0) {