Yining Liu 1436bcff72 Fix the toggle status for show sensitive content switches
We need to make the show sensitive content switch checked by default.
The old implementation misses calling to super.updateState(), which
caused lacking of UI refreshment.
This change also added validation to the preference id that is used
to construct the LockScreenNotificationShowSensitiveController, which
avoids misusage.
Added unit tests to verify that the UI is also updated upon Settings
change, and the preference IDs are verified.

Fix: 392621932
Flag: com.android.server.notification.notification_lock_screen_settings
Test: manual
Change-Id: I31fe602d5b5439515e5fdf5c706b420edaf79042
2025-01-29 12:59:53 -08:00
2022-04-14 09:55:36 +00:00
2024-07-30 11:34:24 +08:00
2023-09-28 10:40:22 -07:00
2024-11-28 09:15:16 +00:00
2024-11-22 12:59:43 +00:00
2024-06-27 08:46:17 +00:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%