зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015450 - Prevent toolbar from going into an inconsistent state when tapped when entering editing mode. r=lucasr
This commit is contained in:
Родитель
369d8fe725
Коммит
507dfa727f
|
@ -1617,6 +1617,10 @@ abstract public class BrowserApp extends GeckoApp
|
||||||
throw new IllegalArgumentException("Cannot handle null URLs in enterEditingMode");
|
throw new IllegalArgumentException("Cannot handle null URLs in enterEditingMode");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mBrowserToolbar.isEditing() || mBrowserToolbar.isAnimating()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
||||||
mTargetTabForEditingMode = (selectedTab != null ? selectedTab.getId() : null);
|
mTargetTabForEditingMode = (selectedTab != null ? selectedTab.getId() : null);
|
||||||
|
|
||||||
|
|
|
@ -934,6 +934,10 @@ public class BrowserToolbar extends ThemedRelativeLayout
|
||||||
return (uiMode == UIMode.EDIT);
|
return (uiMode == UIMode.EDIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isAnimating() {
|
||||||
|
return isAnimatingEntry;
|
||||||
|
}
|
||||||
|
|
||||||
public void startEditing(String url, PropertyAnimator animator) {
|
public void startEditing(String url, PropertyAnimator animator) {
|
||||||
if (isEditing()) {
|
if (isEditing()) {
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче