mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 60651784715f (bug 967254) r=margaret
This commit is contained in:
parent
f21519d8db
commit
61fe7a896d
@ -577,8 +577,6 @@ public abstract class GeckoApp
|
||||
} else if (event.equals("Reader:FaviconRequest")) {
|
||||
final String url = message.getString("url");
|
||||
handleFaviconRequest(url);
|
||||
} else if (event.equals("Gecko:DelayedStartup")) {
|
||||
ThreadUtils.postToBackgroundThread(new UninstallListener.DelayedStartupTask(this));
|
||||
} else if (event.equals("Gecko:Ready")) {
|
||||
mGeckoReadyStartupTimer.stop();
|
||||
geckoConnected();
|
||||
@ -1330,6 +1328,11 @@ public abstract class GeckoApp
|
||||
GeckoApp.this.onLocaleReady(uiLocale);
|
||||
}
|
||||
});
|
||||
|
||||
// Perform webapp uninstalls as appropiate.
|
||||
if (AppConstants.MOZ_ANDROID_SYNTHAPKS) {
|
||||
UninstallListener.initUninstallPackageScan(getApplicationContext());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -1525,7 +1528,6 @@ public abstract class GeckoApp
|
||||
registerEventListener("Reader:FaviconRequest");
|
||||
registerEventListener("onCameraCapture");
|
||||
registerEventListener("Gecko:Ready");
|
||||
registerEventListener("Gecko:DelayedStartup");
|
||||
registerEventListener("Toast:Show");
|
||||
registerEventListener("DOMFullScreen:Start");
|
||||
registerEventListener("DOMFullScreen:Stop");
|
||||
@ -2052,7 +2054,6 @@ public abstract class GeckoApp
|
||||
unregisterEventListener("Reader:FaviconRequest");
|
||||
unregisterEventListener("onCameraCapture");
|
||||
unregisterEventListener("Gecko:Ready");
|
||||
unregisterEventListener("Gecko:DelayedStartup");
|
||||
unregisterEventListener("Toast:Show");
|
||||
unregisterEventListener("DOMFullScreen:Start");
|
||||
unregisterEventListener("DOMFullScreen:Stop");
|
||||
|
@ -5,11 +5,8 @@
|
||||
|
||||
package org.mozilla.gecko.webapp;
|
||||
|
||||
import org.mozilla.gecko.AppConstants;
|
||||
import org.mozilla.gecko.GeckoApp;
|
||||
import org.mozilla.gecko.GeckoAppShell;
|
||||
import org.mozilla.gecko.GeckoEvent;
|
||||
import org.mozilla.gecko.util.ThreadUtils;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@ -26,7 +23,6 @@ import android.content.pm.PackageManager;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@ -95,20 +91,4 @@ public class UninstallListener extends BroadcastReceiver {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class DelayedStartupTask implements Runnable {
|
||||
private GeckoApp mApp;
|
||||
|
||||
public DelayedStartupTask(GeckoApp app) {
|
||||
mApp = app;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
// Perform webapp uninstalls as appropiate.
|
||||
if (AppConstants.MOZ_ANDROID_SYNTHAPKS) {
|
||||
UninstallListener.initUninstallPackageScan(mApp.getApplicationContext());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user