Commit 0a1f48d5 authored by sievers's avatar sievers Committed by Commit bot

Android: Trigger tab placeholder update when activity is paused

This makes sure we have a placeholder bitmap when we resume
and don't have a frame from the renderer yet.

BUG=636630

Review-Url: https://codereview.chromium.org/2186453004
Cr-Commit-Position: refs/heads/master@{#414822}
parent fe62ee1b
...@@ -671,6 +671,10 @@ public abstract class ChromeActivity extends AsyncInitializationActivity ...@@ -671,6 +671,10 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
@Override @Override
public void onPauseWithNative() { public void onPauseWithNative() {
RecordUserAction.record("MobileGoToBackground"); RecordUserAction.record("MobileGoToBackground");
Tab tab = getActivityTab();
if (tab != null) {
getTabContentManager().cacheTabThumbnail(tab);
}
markSessionEnd(); markSessionEnd();
super.onPauseWithNative(); super.onPauseWithNative();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment