Prevent crashing in CrashRecoveryHandler
Catch Throwable instead of Exception
Don't save screenshots for crash recovery
Change-Id: I22c36dc644ae597c609880d2ced79436918d83a6
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index e089f5d..1f5c8f0 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -616,7 +616,7 @@
mCrashRecoveryHandler.clearState();
}
- void onSaveInstanceState(Bundle outState) {
+ void onSaveInstanceState(Bundle outState, boolean saveImages) {
// the default implementation requires each view to have an id. As the
// browser handles the state itself and it doesn't use id for the views,
// don't call the default implementation. Otherwise it will trigger the
@@ -624,7 +624,7 @@
// focused view XXX has no id".
// Save all the tabs
- mTabControl.saveState(outState);
+ mTabControl.saveState(outState, saveImages);
// Save time so that we know how old incognito tabs (if any) are.
outState.putSerializable("lastActiveDate", Calendar.getInstance());
}