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

Commit 4056d870 authored by Makoto Onuki's avatar Makoto Onuki Committed by Anton Hansson
Browse files

Do not use @SystemApi(client = MODULE_APPS) (documents/settings)

There will be no special protection mechanisms around MODULE_APPS,
so we're going to remove it for now.

All the MODULE_APPS should be protected with a permission, etc, so
the change should be safe.

Bug: 148177503
Test: Build / treehugger
Change-Id: I76328c2d5aaa3f171bf8afde5b3d1accad8c2e2b
Merged-In: I76328c2d5aaa3f171bf8afde5b3d1accad8c2e2b
parent 55d16fac
Loading
Loading
Loading
Loading
+0 −8
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);
  }

}
+1 −0
Original line number Diff line number Diff line
@@ -553,6 +553,7 @@ package android.app {
    method public int getUserLockedFields();
    method public boolean isDeleted();
    method public void populateFromXml(org.xmlpull.v1.XmlPullParser);
    method public void setBlockableSystem(boolean);
    method public org.json.JSONObject toJson() throws org.json.JSONException;
    method public void writeXml(org.xmlpull.v1.XmlSerializer) throws java.io.IOException;
  }
+1 −3
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@
 */
package android.app;

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

import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
@@ -325,7 +323,7 @@ public final class NotificationChannel implements Parcelable {
     * @param blockableSystem if {@code true}, allows users to block notifications on this channel.
     * @hide
     */
    @SystemApi(client = MODULE_APPS)
    @SystemApi
    @TestApi
    public void setBlockableSystem(boolean blockableSystem) {
        mBlockableSystem = blockableSystem;