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

@@ -133,8 +133,8 @@ public class BrightnessLevelPreferenceController extends BasePreferenceControlle
@Override
public void onStart() {
mContentResolver.registerContentObserver(BRIGHTNESS_ADJ_URI, false, mBrightnessObserver);
mDisplayManager.registerDisplayListener(mDisplayListener, mHandler,
DisplayManager.EVENT_FLAG_DISPLAY_BRIGHTNESS);
mDisplayManager.registerDisplayListener(mDisplayListener, mHandler, /* eventFlags= */ 0,
DisplayManager.PRIVATE_EVENT_FLAG_DISPLAY_BRIGHTNESS);
updatedSummary(mPreference);
}