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

Commit 0622f209 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Expose NotificationChannel#setBlockableSystem as SystemApi"

parents 3de6f570 7c4dd3a5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package android.app {

  public final class NotificationChannel implements android.os.Parcelable {
    method public void setBlockableSystem(boolean);
  }

}
+7 −1
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */
package android.app;

import static android.annotation.SystemApi.Client.MODULE_APPS;

import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
@@ -354,9 +356,13 @@ public final class NotificationChannel implements Parcelable {
    }

    /**
     * Allows users to block notifications sent through this channel, if this channel belongs to
     * a package that is signed with the system signature. If the channel does not belong to a
     * package that is signed with the system signature, this method does nothing.
     * @param blockableSystem if {@code true}, allows users to block notifications on this channel.
     * @hide
     */
    @UnsupportedAppUsage
    @SystemApi(client = MODULE_APPS)
    @TestApi
    public void setBlockableSystem(boolean blockableSystem) {
        mBlockableSystem = blockableSystem;