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

Commit 5113382e authored by satok's avatar satok
Browse files

Tweak layouts of IME switch button

Bug: 3383078

Change-Id: Id522ac6e8363a98be6ac73ee75b0d54e12ef86c4
parent 4989aa7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -47,12 +47,11 @@
                android:id="@+id/item_radio"
                android:layout_width="30dip"
                android:layout_height="wrap_content"
                android:layout_marginRight="11dip"
                android:focusable="false"
                android:clickable="false" />
            <ImageView
                android:id="@+id/item_icon"
                android:layout_width="wrap_content"
                android:layout_width="@android:dimen/app_icon_size"
                android:layout_height="wrap_content"
                android:scaleType="fitCenter" />
            <LinearLayout
+2 −5
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ public class TabletStatusBar extends StatusBar implements

    public static final int MAX_NOTIFICATION_ICONS = 5;
    // IME switcher icon is big and occupy width of two icons
    public static final int MAX_NOTIFICATION_ICONS_IME_BUTTON_VISIBLE = MAX_NOTIFICATION_ICONS - 2;
    public static final int MAX_NOTIFICATION_ICONS_IME_BUTTON_VISIBLE = MAX_NOTIFICATION_ICONS - 1;

    public static final int MSG_OPEN_NOTIFICATION_PANEL = 1000;
    public static final int MSG_CLOSE_NOTIFICATION_PANEL = 1001;
@@ -860,11 +860,8 @@ public class TabletStatusBar extends StatusBar implements
        if (DEBUG) {
            Slog.d(TAG, (visible?"showing":"hiding") + " the IME button");
        }
        int oldVisibility = mInputMethodSwitchButton.getVisibility();
        mInputMethodSwitchButton.setIMEButtonVisible(token, visible);
        if (oldVisibility != mInputMethodSwitchButton.getVisibility()) {
        updateNotificationIcons();
        }
        mInputMethodsPanel.setImeToken(token);
        mBackButton.setImageResource(
                visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back);