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

Commit ed724509 authored by Matías Hernández's avatar Matías Hernández
Browse files

Add ZenMode.isEnabled()

Bug: 354867828
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: I54a8f4e5d44a982c18756c67d43cf5995037d4d3
parent d2043307
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -298,6 +298,10 @@ public class ZenMode implements Parcelable {
        return mIsManualDnd;
    }

    public boolean isEnabled() {
        return mRule.isEnabled();
    }

    public boolean isActive() {
        return mStatus == Status.ENABLED_AND_ACTIVE;
    }