Java Code Examples for org.chromium.chrome.browser.share.ShareHelper#clearSharedImages()

The following examples show how to use org.chromium.chrome.browser.share.ShareHelper#clearSharedImages() . 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 vote down vote up
/**
 * 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 vote down vote up
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: ChromeActivitySessionTracker.java    From 365browser with Apache License 2.0 5 votes vote down vote up
private void onForegroundActivityDestroyed() {
    if (ApplicationStatus.isEveryActivityDestroyed()) {
        // These will all be re-initialized when a new Activity starts / upon next use.
        PartnerBrowserCustomizations.destroy();
        ShareHelper.clearSharedImages();
    }
}