Java Code Examples for org.chromium.base.ApplicationStatus#isEveryActivityDestroyed()
The following examples show how to use
org.chromium.base.ApplicationStatus#isEveryActivityDestroyed() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChromeApplication.java From delion with Apache License 2.0 | 5 votes |
/** * Called after onForegroundSessionEnd() indicating that the activity whose onStop() ended the * last foreground session was destroyed. */ private void onForegroundActivityDestroyed() { if (ApplicationStatus.isEveryActivityDestroyed()) { mBackgroundProcessing.onDestroy(); if (mDevToolsServer != null) { mDevToolsServer.destroy(); mDevToolsServer = null; } stopApplicationActivityTracker(); PartnerBrowserCustomizations.destroy(); ShareHelper.clearSharedImages(this); CombinedPolicyProvider.get().destroy(); } }
Example 2
Source File: ChromeActivitySessionTracker.java From AndroidChromium with Apache License 2.0 | 5 votes |
private void onForegroundActivityDestroyed() { if (ApplicationStatus.isEveryActivityDestroyed()) { // These will all be re-initialized when a new Activity starts / upon next use. PartnerBrowserCustomizations.destroy(); ShareHelper.clearSharedImages(); } }
Example 3
Source File: DownloadNotificationService.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void onTaskRemoved(Intent rootIntent) { super.onTaskRemoved(rootIntent); // If we've lost all Activities, cancel the off the record downloads and validate that we // should still be showing any download notifications at all. if (ApplicationStatus.isEveryActivityDestroyed()) { cancelOffTheRecordDownloads(); hideSummaryNotificationIfNecessary(-1); } }
Example 4
Source File: ChromeActivitySessionTracker.java From 365browser with Apache License 2.0 | 5 votes |
private void onForegroundActivityDestroyed() { if (ApplicationStatus.isEveryActivityDestroyed()) { // These will all be re-initialized when a new Activity starts / upon next use. PartnerBrowserCustomizations.destroy(); ShareHelper.clearSharedImages(); } }