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

Commit ea305dc0 authored by chenjean's avatar chenjean
Browse files

fix(HCT):Ensure HCT Notification ID does not conflict in the Settings app

The current HCT notification uses NOTIFICATION_ID=1. The Settings app has a few other notifications also use NOTIFICATION_ID=1 like Bluetooth and Sim etc. When using the same NOTIFICATION_ID for a notification, it updates the existing notification, causing the original one to disappear. To avoid this, we use a unique NOTIFICATION_ID.

Bug: 388530317
Flag: EXEMPT resource only update
Test: manual
Test: atest HighContrastTextMigrationReceiverTest
Change-Id: Ieda6836190726b14cd3522f61e7992e5a5698231
parent e61a297e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class HighContrastTextMigrationReceiver extends BroadcastReceiver {
    static final String ACTION_OPEN_SETTINGS =
            "com.android.settings.accessibility.ACTION_OPEN_HIGH_CONTRAST_TEXT_SETTINGS";
    @VisibleForTesting
    static final int NOTIFICATION_ID = 1;
    static final int NOTIFICATION_ID = R.string.accessibility_notification_high_contrast_text_title;

    @Retention(RetentionPolicy.SOURCE)
    @IntDef({