Skip to content

Commit e2bd42b

Browse files
author
Vaibhav Devmurari
committed
Cleanup old sysprop flag for Keyboard backlight
Bug: 245989146 Test: manual Flag: EXEMPT cleanup Change-Id: I92916bfdcdbcaf9df5550a08585d7260f69907d6
1 parent 9a3ad9b commit e2bd42b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

services/inputflinger/reader/controller/PeripheralController.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int
4747
return (brightness & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff);
4848
}
4949

50-
static inline bool isKeyboardBacklightCustomLevelsEnabled() {
51-
return sysprop::InputProperties::enable_keyboard_backlight_custom_levels().value_or(true);
52-
}
53-
5450
/**
5551
* Input controller owned by InputReader device, implements the native API for querying input
5652
* lights, getting and setting the lights brightness and color, by interacting with EventHub
@@ -289,8 +285,7 @@ void PeripheralController::populateDeviceInfo(InputDeviceInfo* deviceInfo) {
289285
std::set<BrightnessLevel> PeripheralController::getPreferredBrightnessLevels(
290286
const Light* light) const {
291287
std::set<BrightnessLevel> levels;
292-
if (!isKeyboardBacklightCustomLevelsEnabled() ||
293-
light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) {
288+
if (light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) {
294289
return levels;
295290
}
296291
std::optional<std::string> keyboardBacklightLevels =

0 commit comments

Comments
 (0)