node = find_node(S_NORMAL, pid);
if (node) {
node->background = true;
- _I("Process(%d) is background, then PM will be unlocked LCD_NORMAL.", pid);
+ _I("Process(%d) goes background. LCD_NORMAL will be unlocked.", pid);
+ }
+
+ node = find_node(S_LCDDIM, pid);
+ if (node) {
+ node->background = true;
+ _I("Process(%d) goes background. LCD_DIM will be unlocked.", pid);
}
return 0;
node = find_node(S_NORMAL, pid);
if (node) {
node->background = false;
- _I("Process(%d) is foreground, then PM will be locked LCD_NORMAL.", pid);
+ _I("Process(%d) goes foreground. LCD_NORMAL will be locked.", pid);
+ }
+
+ node = find_node(S_LCDDIM, pid);
+ if (node) {
+ node->background = false;
+ _I("Process(%d) goes foreground. LCD_DIM will be locked.", pid);
}
return 0;