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/TabControl.java b/src/com/android/browser/TabControl.java
index 1fe9053..0aaf3d6 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -272,15 +272,17 @@
* position sorted array of tab ids
* for each tab id, save the tab state
* @param outState
+ * @param saveImages
*/
- void saveState(Bundle outState) {
+ void saveState(Bundle outState, boolean saveImages) {
final int numTabs = getTabCount();
long[] ids = new long[numTabs];
int i = 0;
for (Tab tab : mTabs) {
ids[i++] = tab.getId();
if (tab.saveState()) {
- outState.putBundle(Long.toString(tab.getId()), tab.getSavedState());
+ outState.putBundle(Long.toString(tab.getId()),
+ tab.getSavedState(saveImages));
}
}
outState.putLongArray(POSITIONS, ids);