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

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

Clarify the relationship between owner and configurationActivity of AZR

Bug: 308673538
Test: N/A, documentation change only.
Change-Id: I0518b5af6697075e4a92fc7f1d48a06a149df4fc
parent c73e2e20
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -702,7 +702,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;
@@ -740,6 +748,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) {