diff options
| author | John Reck <jreck@google.com> | 2011-05-27 16:08:53 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2011-05-27 16:08:53 -0700 |
| commit | aed9c54d8e67bb683a5a415b3775525a3ac00508 (patch) | |
| tree | e82411fbc093c966790e4cd70f04f2ccebcdef22 /src/com/android/browser/Controller.java | |
| parent | 9465f4db222d280118ecd9a45261a62389dda520 (diff) | |
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/Controller.java')
| -rw-r--r-- | src/com/android/browser/Controller.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index e089f5dd..1f5c8f01 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -616,7 +616,7 @@ public class Controller 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 @@ public class Controller // 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()); } |
