mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
bug 723305 - Tabs menu uses smoothScrollToPosition(), which doesn't exist in eclair r=mfinkle
This commit is contained in:
parent
b5e8d84620
commit
268d4fdda4
@ -119,8 +119,13 @@ public class TabsTray extends Activity implements GeckoApp.OnTabsChangedListener
|
||||
// Scrolling to the selected tab can happen here
|
||||
if (hasFocus) {
|
||||
int position = mTabsAdapter.getPositionForTab(Tabs.getInstance().getSelectedTab());
|
||||
if (position != -1)
|
||||
if (position == -1)
|
||||
return;
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {
|
||||
mList.smoothScrollToPosition(position);
|
||||
} else {
|
||||
/* To Do: Find a way to scroll with Eclair's APIs */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user