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

Commit 686bc8ac authored by Alisa Hung's avatar Alisa Hung
Browse files

Apply the @Importance annotation to the getImportance(),...

Apply the @Importance annotation to the getImportance(), getOriginalImportance(), and setOriginalImportance methods of NotificationChannel

Bug: 417629953
Test: NotificationChannelTest
Change-Id: I9e68d4d50e0919b940318b6f905a3724944f24ab
Flag: android.service.notification.notification_get_original_importance
parent ae7d70f1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -928,7 +928,7 @@ public final class NotificationChannel implements Parcelable {
     * See {@link NotificationChannelGroup#isBlocked()} and
     * {@link NotificationManager#areNotificationsEnabled()}.
     */
    public int getImportance() {
    public @Importance int getImportance() {
        return mImportance;
    }

@@ -1156,7 +1156,7 @@ public final class NotificationChannel implements Parcelable {
     * @see #getImportance()
     */
    @FlaggedApi(FLAG_NOTIFICATION_GET_ORIGINAL_IMPORTANCE)
    public int getOriginalImportance() {
    public @Importance int getOriginalImportance() {
        return mOriginalImportance;
    }

@@ -1164,7 +1164,7 @@ public final class NotificationChannel implements Parcelable {
     * @hide
     */
    @TestApi
    public void setOriginalImportance(int importance) {
    public void setOriginalImportance(@Importance int importance) {
        mOriginalImportance = importance;
    }