summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2018-10-16 16:54:52 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-10-16 16:54:52 +0000
commite7feb320756b0d80fedd03fd2802af80e8a2055c (patch)
tree00106406d5856d00325d1f168c4640a4cc90b866
parentdbd6e3fd88330206abb9431efa784b90ef7a1858 (diff)
parent8736e952916c4473d462a04f3011f2fcab9eae62 (diff)
Merge "Disabled that wtfs crash when plugins are running"
-rw-r--r--packages/SystemUI/src/com/android/systemui/plugins/PluginInitializerImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/plugins/PluginInitializerImpl.java b/packages/SystemUI/src/com/android/systemui/plugins/PluginInitializerImpl.java
index 774567ef8bb1..95029c013ab6 100644
--- a/packages/SystemUI/src/com/android/systemui/plugins/PluginInitializerImpl.java
+++ b/packages/SystemUI/src/com/android/systemui/plugins/PluginInitializerImpl.java
@@ -26,6 +26,10 @@ import com.android.systemui.shared.plugins.PluginManagerImpl;
public class PluginInitializerImpl implements PluginInitializer {
+ /**
+ * True if WTFs should lead to crashes
+ */
+ private static final boolean WTFS_SHOULD_CRASH = false;
private boolean mWtfsSet;
@Override
@@ -52,7 +56,7 @@ public class PluginInitializerImpl implements PluginInitializer {
@Override
public void handleWtfs() {
- if (!mWtfsSet) {
+ if (WTFS_SHOULD_CRASH && !mWtfsSet) {
mWtfsSet = true;
Log.setWtfHandler(new Log.TerribleFailureHandler() {
@Override