mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1015450 - Prevent toolbar from going into an inconsistent state when tapped when entering editing mode. r=lucasr
This commit is contained in:
parent
354b18e913
commit
2c8dc38e7e
@ -1617,6 +1617,10 @@ abstract public class BrowserApp extends GeckoApp
|
||||
throw new IllegalArgumentException("Cannot handle null URLs in enterEditingMode");
|
||||
}
|
||||
|
||||
if (mBrowserToolbar.isEditing() || mBrowserToolbar.isAnimating()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
||||
mTargetTabForEditingMode = (selectedTab != null ? selectedTab.getId() : null);
|
||||
|
||||
|
@ -934,6 +934,10 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||
return (uiMode == UIMode.EDIT);
|
||||
}
|
||||
|
||||
public boolean isAnimating() {
|
||||
return isAnimatingEntry;
|
||||
}
|
||||
|
||||
public void startEditing(String url, PropertyAnimator animator) {
|
||||
if (isEditing()) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user