Changed to use the new hidden API.
Bug: 372700957 Test: refactoring Flag: EXEMPT Refactoring Change-Id: I5eb7d5ab94ebd273aea9226cd3cbed5de0d49baa
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user