Bug 1086981 - Part 3: Cancel editing mode when hitting toolbar buttons. r=lucasr

This commit is contained in:
Michael Comella 2014-10-31 17:16:11 -07:00
parent e44886f410
commit 25d604fc06

View File

@ -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) {