mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 06:12:11 +08:00
enable event processing in UI
old-commit-hash: 9807361ef21e2d9a338ab1e858597b90fb8d9071
This commit is contained in:
@@ -59,6 +59,10 @@ static void handle_display_state(UIState *s, bool user_input) {
|
||||
int display_mode = s->awake ? HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
|
||||
LOGW("setting display mode %d", display_mode);
|
||||
framebuffer_set_power(s->fb, display_mode);
|
||||
|
||||
if (s->awake) {
|
||||
system("service call window 18 i32 1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user