diff --git a/src/android/ThemeableBrowser.java b/src/android/ThemeableBrowser.java index 673e0d828..e49426ffb 100644 --- a/src/android/ThemeableBrowser.java +++ b/src/android/ThemeableBrowser.java @@ -1382,6 +1382,22 @@ public View getView (int position, View convertView, ViewGroup parent) { } } + /** + * Called when the system is about to start resuming a previous activity. + */ + @Override + public void onPause(boolean multitasking) { + if(inAppWebView != null) inAppWebView.onPause(); + } + + /** + * Called when the activity will start interacting with the user. + */ + @Override + public void onResume(boolean multitasking) { + if(inAppWebView != null) inAppWebView.onResume(); + } + /** * A class to hold parsed option properties.