summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/CrashRecoveryHandler.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-05-27 16:08:53 -0700
committerJohn Reck <jreck@google.com>2011-05-27 16:08:53 -0700
commitaed9c54d8e67bb683a5a415b3775525a3ac00508 (patch)
treee82411fbc093c966790e4cd70f04f2ccebcdef22 /src/com/android/browser/CrashRecoveryHandler.java
parent9465f4db222d280118ecd9a45261a62389dda520 (diff)
downloadpackages_apps_Browser-aed9c54d8e67bb683a5a415b3775525a3ac00508.zip
packages_apps_Browser-aed9c54d8e67bb683a5a415b3775525a3ac00508.tar.gz
packages_apps_Browser-aed9c54d8e67bb683a5a415b3775525a3ac00508.tar.bz2
Prevent crashing in CrashRecoveryHandler
Catch Throwable instead of Exception Don't save screenshots for crash recovery Change-Id: I22c36dc644ae597c609880d2ced79436918d83a6
Diffstat (limited to 'src/com/android/browser/CrashRecoveryHandler.java')
-rw-r--r--src/com/android/browser/CrashRecoveryHandler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java
index 9e98e76..60e39da 100644
--- a/src/com/android/browser/CrashRecoveryHandler.java
+++ b/src/com/android/browser/CrashRecoveryHandler.java
@@ -22,7 +22,6 @@ import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
-import android.os.Debug;
import android.os.Parcel;
import android.util.Log;
@@ -45,7 +44,7 @@ public class CrashRecoveryHandler {
public void backupState() {
final Bundle state = new Bundle();
- mController.onSaveInstanceState(state);
+ mController.onSaveInstanceState(state, false);
final Context context = mController.getActivity();
new Thread() {
@Override
@@ -57,7 +56,7 @@ public class CrashRecoveryHandler {
Context.MODE_PRIVATE);
fout.write(p.marshall());
fout.close();
- } catch (Exception e) {
+ } catch (Throwable e) {
Log.i(LOGTAG, "Failed to save persistent state", e);
} finally {
p.recycle();