}
// 500ms animation with 800ms delay
- private static final int TAB_ANIMATION_DURATION = 500;
- private static final int TAB_OVERVIEW_DELAY = 800;
+ private static final int TAB_ANIMATION_DURATION = 200;
+ private static final int TAB_OVERVIEW_DELAY = 500;
// Called by TabControl when a tab is requesting focus
/* package */ void showTab(TabControl.Tab t) {
- showTab(t, null);
+ showTab(t, EMPTY_URL_DATA);
}
private void showTab(TabControl.Tab t, UrlData urlData) {
// Change to the parent tab
final TabControl.Tab tab = mTabControl.getTab(indexToShow);
if (tab != null) {
- sendAnimateFromOverview(tab, false, null, null, delay, null);
+ sendAnimateFromOverview(tab, false, EMPTY_URL_DATA, null, delay,
+ null);
} else {
// Increment this here so that no other animations can happen in
// between the end of the tab picker transition and the beginning
// openTabAndShow will dispatch the message after creating the
// new WebView. This will prevent another request from coming
// in during the animation.
- final TabControl.Tab newTab = openTabAndShow((String) null, msg, false,
- null);
+ final TabControl.Tab newTab =
+ openTabAndShow(EMPTY_URL_DATA, msg, false, null);
if (newTab != parent) {
parent.addChildTab(newTab);
}
openTabAndShow(mSettings.getHomePage(), null, false, null);
} else {
sendAnimateFromOverview(mTabControl.getTab(index),
- false, null, null, 0, null);
+ false, EMPTY_URL_DATA, null, 0, null);
}
}
}