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

Commit bd6a4f90 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Protect against work conditional crash" into nyc-mr1-dev

parents b57ee0e0 31678f14
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -90,7 +90,9 @@ public class WorkModeCondition extends Condition {
    @Override
    public void onActionClick(int index) {
        if (index == 0) {
            if (mUserHandle != null) {
                mUm.trySetQuietModeDisabled(mUserHandle.getIdentifier(), null);
            }
            setActive(false);
        } else {
            throw new IllegalArgumentException("Unexpected index " + index);