Fixes to crash view
- Ensure that onPause of controller is called when the activity is
paused.
- When a foreground tab crashes when the browser is paused we do not
show the crash view.
Change-Id: Ide72f43c3d273b1c8d68856d1d01bbea00855b7c
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 62dff92..c149a0b 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -758,7 +758,7 @@
mVoiceResult = null;
}
if (current != null && current.hasCrashed) {
- current.showCrashView();
+ current.replaceCrashView(current.getWebView(), current.getViewContainer());
}
}