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

Commit daab716f authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Disabling crash dialogs on TV

Bug: 34518944
Test: threw an exception and saw the app nicely disappear without a dialog
Change-Id: I08ccfe7b34af6e2af6f91fea8750e81955901f40
parent 5559543e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19615,7 +19615,8 @@ public class ActivityManagerService extends IActivityManager.Stub
                                   && config.navigation == Configuration.NAVIGATION_NONAV);
        int modeType = config.uiMode & Configuration.UI_MODE_TYPE_MASK;
        final boolean uiModeSupportsDialogs = (modeType != Configuration.UI_MODE_TYPE_CAR
                && !(modeType == Configuration.UI_MODE_TYPE_WATCH && "user".equals(Build.TYPE)));
                && !(modeType == Configuration.UI_MODE_TYPE_WATCH && "user".equals(Build.TYPE))
                && modeType != Configuration.UI_MODE_TYPE_TELEVISION);
        return inputMethodExists && uiModeSupportsDialogs && !inVrMode;
    }