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

Commit 800a39d4 authored by Matías Hernández's avatar Matías Hernández Committed by Android (Google) Code Review
Browse files

Merge "Clarify the relationship between owner and configurationActivity of AZR" into main

parents ffd6576a 9a18a292
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -705,7 +705,15 @@ public final class AutomaticZenRule implements Parcelable {
        }

        /**
         * Sets the component (service or activity) that owns this rule.
         * Sets the component name of the
         * {@link android.service.notification.ConditionProviderService} that manages this rule
         * (but note that {@link android.service.notification.ConditionProviderService} is
         * deprecated in favor of using {@link NotificationManager#setAutomaticZenRuleState} to
         * notify the system about the state of your rule).
         *
         * <p>This is exclusive with {@link #setConfigurationActivity}; rules where a configuration
         * activity is set will not use the component set here to determine whether the rule
         * should be active.
         */
        public @NonNull Builder setOwner(@Nullable ComponentName owner) {
            mOwner = owner;
@@ -743,6 +751,11 @@ public final class AutomaticZenRule implements Parcelable {
         * information about this rule and/or allows them to configure it. This is required to be
         * non-null for rules that are not backed by a
         * {@link android.service.notification.ConditionProviderService}.
         *
         * <p>This is exclusive with {@link #setOwner}; rules where a configuration
         * activity is set will not use the
         * {@link android.service.notification.ConditionProviderService} supplied there to determine
         * whether the rule should be active.
         */
        public @NonNull Builder setConfigurationActivity(
                @Nullable ComponentName configurationActivity) {