am 5113382e: Tweak layouts of IME switch button
* commit '5113382e95d5f5f322bc6618bef7d1c7f96e295f': Tweak layouts of IME switch button
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
updateNotificationIcons();
|
||||
mInputMethodsPanel.setImeToken(token);
|
||||
mBackButton.setImageResource(
|
||||
visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back);
|
||||
|
||||
Reference in New Issue
Block a user