Merge "Dismiss the ticker early if the status bar is tapped." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
71a22b3bc7
@@ -95,6 +95,7 @@ public class TabletStatusBar extends StatusBar implements
|
||||
public static final int MSG_HIDE_CHROME = 1031;
|
||||
public static final int MSG_OPEN_INPUT_METHODS_PANEL = 1040;
|
||||
public static final int MSG_CLOSE_INPUT_METHODS_PANEL = 1041;
|
||||
public static final int MSG_STOP_TICKER = 2000;
|
||||
|
||||
// Fitts' Law assistance for LatinIME; TODO: replace with a more general approach
|
||||
private static final boolean FAKE_SPACE_BAR = true;
|
||||
@@ -583,6 +584,9 @@ public class TabletStatusBar extends StatusBar implements
|
||||
mShadow.setVisibility(View.VISIBLE);
|
||||
notifyLightsChanged(false);
|
||||
break;
|
||||
case MSG_STOP_TICKER:
|
||||
mTicker.halt();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ public class TabletStatusBarView extends FrameLayout {
|
||||
mHandler.sendEmptyMessage(TabletStatusBar.MSG_CLOSE_RECENTS_PANEL);
|
||||
mHandler.removeMessages(TabletStatusBar.MSG_CLOSE_INPUT_METHODS_PANEL);
|
||||
mHandler.sendEmptyMessage(TabletStatusBar.MSG_CLOSE_INPUT_METHODS_PANEL);
|
||||
mHandler.removeMessages(TabletStatusBar.MSG_STOP_TICKER);
|
||||
mHandler.sendEmptyMessage(TabletStatusBar.MSG_STOP_TICKER);
|
||||
|
||||
for (int i=0; i < mPanels.length; i++) {
|
||||
if (mPanels[i] != null && mPanels[i].getVisibility() == View.VISIBLE) {
|
||||
|
||||
Reference in New Issue
Block a user