Index: android_webview/java/src/org/chromium/android_webview/AwContents.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
index 64bf97d00542580c07b4aa1b902945486ee993c0..fdd54de9da98437033860f9dfce88d5f50dacafd 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
@@ -575,12 +575,18 @@ public class AwContents { |
mContentViewCore.onAttachedToWindow(); |
nativeOnAttachedToWindow(mNativeAwContents, mContainerView.getWidth(), |
mContainerView.getHeight()); |
+ |
+ // This is for the case where this is created by restoreState, which |
+ // needs to call to NavigationController::LoadIfNecessary to actually |
+ // load the restored page. |
+ onResume(); |
joth
2012/11/29 05:56:14
This would seem clearer as
if (!mIsPaused) mConte
|
} |
/** |
* @see android.view.View#onDetachedFromWindow() |
*/ |
public void onDetachedFromWindow() { |
+ if (mNativeAwContents == 0) return; |
nativeOnDetachedFromWindow(mNativeAwContents); |
mContentViewCore.onDetachedFromWindow(); |
} |