backout 9f48d082d7d0 (Bug 808408) on suspicion of robocop failure

This commit is contained in:
Wes Johnston 2012-11-15 21:00:32 -08:00
parent 7f7fca60e5
commit 5c2fb9142d

View File

@ -127,7 +127,7 @@ public class AwesomeBarTabs extends TabHost {
mListTouchListener = new View.OnTouchListener() {
public boolean onTouch(View view, MotionEvent event) {
if ((event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_DOWN)
if (event.getAction() == MotionEvent.ACTION_DOWN)
hideSoftInput(view);
return false;
}
@ -153,12 +153,10 @@ public class AwesomeBarTabs extends TabHost {
public void onPageSelected(int position) {
tabWidget.setCurrentTab(position);
styleSelectedTab();
hideSoftInput(mViewPager);
}
});
for (int i = 0; i < mTabs.length; i++) {
mTabs[i].setListTouchListener(mListTouchListener);
addAwesomeTab(mTabs[i].getTag(),
mTabs[i].getTitleStringId(),
i);