зеркало из https://github.com/mozilla/gecko-dev.git
Bug 997477 - Part 3: Remove guards around urlBarTranslatingEdge in appropriate configs.
This commit is contained in:
Родитель
3e6db651df
Коммит
94efb3bdf9
|
@ -1021,13 +1021,10 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||||
final int curveTranslation) {
|
final int curveTranslation) {
|
||||||
showUrlEditLayout();
|
showUrlEditLayout();
|
||||||
|
|
||||||
if (urlBarTranslatingEdge != null) {
|
|
||||||
ViewHelper.setTranslationX(urlBarTranslatingEdge, entryTranslation);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Prevent taps through the editing mode cancel button (bug 1001243).
|
// Prevent taps through the editing mode cancel button (bug 1001243).
|
||||||
tabsButton.setEnabled(false);
|
tabsButton.setEnabled(false);
|
||||||
|
|
||||||
|
ViewHelper.setTranslationX(urlBarTranslatingEdge, entryTranslation);
|
||||||
ViewHelper.setTranslationX(tabsButton, curveTranslation);
|
ViewHelper.setTranslationX(tabsButton, curveTranslation);
|
||||||
ViewHelper.setTranslationX(tabsCounter, curveTranslation);
|
ViewHelper.setTranslationX(tabsCounter, curveTranslation);
|
||||||
ViewHelper.setTranslationX(actionItemBar, curveTranslation);
|
ViewHelper.setTranslationX(actionItemBar, curveTranslation);
|
||||||
|
@ -1070,12 +1067,9 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||||
urlDisplayLayout.prepareStartEditingAnimation();
|
urlDisplayLayout.prepareStartEditingAnimation();
|
||||||
|
|
||||||
// Slide toolbar elements.
|
// Slide toolbar elements.
|
||||||
if (urlBarTranslatingEdge != null) {
|
animator.attach(urlBarTranslatingEdge,
|
||||||
animator.attach(urlBarTranslatingEdge,
|
PropertyAnimator.Property.TRANSLATION_X,
|
||||||
PropertyAnimator.Property.TRANSLATION_X,
|
entryTranslation);
|
||||||
entryTranslation);
|
|
||||||
}
|
|
||||||
|
|
||||||
animator.attach(tabsButton,
|
animator.attach(tabsButton,
|
||||||
PropertyAnimator.Property.TRANSLATION_X,
|
PropertyAnimator.Property.TRANSLATION_X,
|
||||||
curveTranslation);
|
curveTranslation);
|
||||||
|
@ -1160,16 +1154,14 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||||
|
|
||||||
updateTabCountAndAnimate(Tabs.getInstance().getDisplayCount());
|
updateTabCountAndAnimate(Tabs.getInstance().getDisplayCount());
|
||||||
|
|
||||||
if (urlBarTranslatingEdge != null) {
|
if (shouldShrinkURLBar) {
|
||||||
urlBarTranslatingEdge.setVisibility(View.INVISIBLE);
|
urlBarEntry.setLayoutParams(urlBarEntryDefaultLayoutParams);
|
||||||
ViewHelper.setTranslationX(urlBarTranslatingEdge, 0);
|
|
||||||
if (shouldShrinkURLBar) {
|
|
||||||
urlBarEntry.setLayoutParams(urlBarEntryDefaultLayoutParams);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tabsButton.setEnabled(true);
|
tabsButton.setEnabled(true);
|
||||||
|
|
||||||
|
urlBarTranslatingEdge.setVisibility(View.INVISIBLE);
|
||||||
|
ViewHelper.setTranslationX(urlBarTranslatingEdge, 0);
|
||||||
ViewHelper.setTranslationX(tabsButton, 0);
|
ViewHelper.setTranslationX(tabsButton, 0);
|
||||||
ViewHelper.setTranslationX(tabsCounter, 0);
|
ViewHelper.setTranslationX(tabsCounter, 0);
|
||||||
ViewHelper.setTranslationX(actionItemBar, 0);
|
ViewHelper.setTranslationX(actionItemBar, 0);
|
||||||
|
@ -1204,12 +1196,9 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||||
contentAnimator.setUseHardwareLayer(false);
|
contentAnimator.setUseHardwareLayer(false);
|
||||||
|
|
||||||
// Slide the toolbar back to its original size.
|
// Slide the toolbar back to its original size.
|
||||||
if (urlBarTranslatingEdge != null) {
|
contentAnimator.attach(urlBarTranslatingEdge,
|
||||||
contentAnimator.attach(urlBarTranslatingEdge,
|
PropertyAnimator.Property.TRANSLATION_X,
|
||||||
PropertyAnimator.Property.TRANSLATION_X,
|
0);
|
||||||
0);
|
|
||||||
}
|
|
||||||
|
|
||||||
contentAnimator.attach(tabsButton,
|
contentAnimator.attach(tabsButton,
|
||||||
PropertyAnimator.Property.TRANSLATION_X,
|
PropertyAnimator.Property.TRANSLATION_X,
|
||||||
0);
|
0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче