summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/EngineInitializer.java
diff options
context:
space:
mode:
authorKevin Hart <khart@codeaurora.org>2015-02-09 17:14:14 -0800
committerTom Zakrajsek <tomz@codeaurora.org>2015-02-11 08:33:56 -0800
commit60a37f7469148b6ca4b5f701ebcc15d5cb440b83 (patch)
tree1898ac32e5402853bc1a464c0d0e445556c673e3 /src/com/android/browser/EngineInitializer.java
parent9e4211cafce59a6cb5c4ba56c6663af0490a5be5 (diff)
downloadandroid_packages_apps_Gello-60a37f7469148b6ca4b5f701ebcc15d5cb440b83.tar.gz
android_packages_apps_Gello-60a37f7469148b6ca4b5f701ebcc15d5cb440b83.tar.bz2
android_packages_apps_Gello-60a37f7469148b6ca4b5f701ebcc15d5cb440b83.zip
Fixed crash when restoring settings to default
As part of restoring settings, the browser activity is restarted. The pre-created sandbox process was causing a crash during the restart, so we now make sure to release the pre-created process before restarting the browser activity. Change-Id: I580c1e828f801f443e2a9f51010deb2ff00249fd
Diffstat (limited to 'src/com/android/browser/EngineInitializer.java')
-rw-r--r--src/com/android/browser/EngineInitializer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/browser/EngineInitializer.java b/src/com/android/browser/EngineInitializer.java
index 19b553de..6556abbe 100644
--- a/src/com/android/browser/EngineInitializer.java
+++ b/src/com/android/browser/EngineInitializer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2015 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -330,6 +330,9 @@ public class EngineInitializer {
}
public void onNewIntent(Intent intent) {
+ if (BrowserActivity.ACTION_RESTART.equals(intent.getAction())) {
+ Engine.releaseSpareChildProcess();
+ }
if (mActivityReady) {
mActivity.handleOnNewIntent(intent);
return;