Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8736e952 authored by Selim Cinek's avatar Selim Cinek
Browse files

Disabled that wtfs crash when plugins are running

Since we have persistent plugins now, it doesn't
make sense to crash on each wtf.

Bug: 117607819
Change-Id: Ic00a75ed796cd71a36dc6f056cc92be5b190536b
Fixes: 117564930
Test: observe no crash on wtf
parent 5fe29966
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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