mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1001243: Disable tabs button when in editing mode. r=bnicholson
This commit is contained in:
parent
38fadc8622
commit
ba2aef42e7
@ -1004,11 +1004,17 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||
ViewHelper.setTranslationX(urlBarTranslatingEdge, entryTranslation);
|
||||
}
|
||||
|
||||
// Prevent taps through the editing mode cancel button (bug 1001243).
|
||||
tabsButton.setEnabled(false);
|
||||
|
||||
ViewHelper.setTranslationX(tabsButton, curveTranslation);
|
||||
ViewHelper.setTranslationX(tabsCounter, curveTranslation);
|
||||
ViewHelper.setTranslationX(actionItemBar, curveTranslation);
|
||||
|
||||
if (hasSoftMenuButton) {
|
||||
// Prevent tabs through the editing mode cancel button (bug 1001243).
|
||||
menuButton.setEnabled(false);
|
||||
|
||||
ViewHelper.setTranslationX(menuButton, curveTranslation);
|
||||
ViewHelper.setTranslationX(menuIcon, curveTranslation);
|
||||
}
|
||||
@ -1130,11 +1136,15 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||
}
|
||||
}
|
||||
|
||||
tabsButton.setEnabled(true);
|
||||
|
||||
ViewHelper.setTranslationX(tabsButton, 0);
|
||||
ViewHelper.setTranslationX(tabsCounter, 0);
|
||||
ViewHelper.setTranslationX(actionItemBar, 0);
|
||||
|
||||
if (hasSoftMenuButton) {
|
||||
menuButton.setEnabled(true);
|
||||
|
||||
ViewHelper.setTranslationX(menuButton, 0);
|
||||
ViewHelper.setTranslationX(menuIcon, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user