mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1086981 - Part 3: Cancel editing mode when hitting toolbar buttons. r=lucasr
This commit is contained in:
parent
e44886f410
commit
25d604fc06
@ -2761,6 +2761,10 @@ public class BrowserApp extends GeckoApp
|
||||
// the frequency of use for various actions.
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.MENU, getResources().getResourceEntryName(itemId));
|
||||
|
||||
if (NewTabletUI.isEnabled(this)) {
|
||||
mBrowserToolbar.cancelEdit();
|
||||
}
|
||||
|
||||
if (itemId == R.id.bookmark) {
|
||||
tab = Tabs.getInstance().getSelectedTab();
|
||||
if (tab != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user