Changed to use the new hidden API.

Bug: 372700957
Test: refactoring
Flag: EXEMPT Refactoring
Change-Id: I5eb7d5ab94ebd273aea9226cd3cbed5de0d49baa
This commit is contained in:
Rupesh Bansal
2024-11-03 22:14:35 +00:00
parent 214a71a697
commit 24f961a07a
3 changed files with 7 additions and 6 deletions

View File

@@ -107,7 +107,8 @@ class BrightnessLevelRestrictedPreference :
context.displayManager.registerDisplayListener(
listener,
HandlerExecutor.main,
DisplayManager.EVENT_FLAG_DISPLAY_BRIGHTNESS,
/* eventFlags= */ 0,
DisplayManager.PRIVATE_EVENT_FLAG_DISPLAY_BRIGHTNESS,
)
}