mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout f75bd697d570 (bug 961954) for rc failures
This commit is contained in:
parent
0d1b2a95ae
commit
e84ce179db
@ -539,9 +539,6 @@ abstract public class BrowserApp extends GeckoApp
|
||||
registerEventListener("Telemetry:Gather");
|
||||
registerEventListener("Settings:Show");
|
||||
registerEventListener("Updater:Launch");
|
||||
registerEventListener("Menu:Add");
|
||||
registerEventListener("Menu:Remove");
|
||||
registerEventListener("Menu:Update");
|
||||
|
||||
Distribution.init(this);
|
||||
JavaAddonManager.getInstance().init(getApplicationContext());
|
||||
@ -856,9 +853,6 @@ abstract public class BrowserApp extends GeckoApp
|
||||
unregisterEventListener("Telemetry:Gather");
|
||||
unregisterEventListener("Settings:Show");
|
||||
unregisterEventListener("Updater:Launch");
|
||||
unregisterEventListener("Menu:Add");
|
||||
unregisterEventListener("Menu:Remove");
|
||||
unregisterEventListener("Menu:Update");
|
||||
|
||||
if (AppConstants.MOZ_ANDROID_BEAM && Build.VERSION.SDK_INT >= 14) {
|
||||
NfcAdapter nfc = NfcAdapter.getDefaultAdapter(this);
|
||||
|
@ -442,7 +442,6 @@ public abstract class GeckoApp
|
||||
if (Build.VERSION.SDK_INT >= 11 && featureId == Window.FEATURE_OPTIONS_PANEL) {
|
||||
if (mMenu == null) {
|
||||
onCreatePanelMenu(featureId, menu);
|
||||
invalidateOptionsMenu();
|
||||
onPreparePanel(featureId, mMenuPanel, mMenu);
|
||||
}
|
||||
|
||||
@ -1409,6 +1408,12 @@ public abstract class GeckoApp
|
||||
private void initialize() {
|
||||
mInitialized = true;
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 11) {
|
||||
// Create the panel and inflate the custom menu.
|
||||
onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, null);
|
||||
}
|
||||
invalidateOptionsMenu();
|
||||
|
||||
Intent intent = getIntent();
|
||||
String action = intent.getAction();
|
||||
|
||||
@ -1522,6 +1527,9 @@ public abstract class GeckoApp
|
||||
registerEventListener("Reader:Share");
|
||||
registerEventListener("Reader:FaviconRequest");
|
||||
registerEventListener("onCameraCapture");
|
||||
registerEventListener("Menu:Add");
|
||||
registerEventListener("Menu:Remove");
|
||||
registerEventListener("Menu:Update");
|
||||
registerEventListener("Gecko:Ready");
|
||||
registerEventListener("Gecko:DelayedStartup");
|
||||
registerEventListener("Toast:Show");
|
||||
@ -2049,6 +2057,9 @@ public abstract class GeckoApp
|
||||
unregisterEventListener("Reader:Share");
|
||||
unregisterEventListener("Reader:FaviconRequest");
|
||||
unregisterEventListener("onCameraCapture");
|
||||
unregisterEventListener("Menu:Add");
|
||||
unregisterEventListener("Menu:Remove");
|
||||
unregisterEventListener("Menu:Update");
|
||||
unregisterEventListener("Gecko:Ready");
|
||||
unregisterEventListener("Gecko:DelayedStartup");
|
||||
unregisterEventListener("Toast:Show");
|
||||
|
Loading…
Reference in New Issue
Block a user