@@ -98,7 +98,7 @@ void ntf_add_listener(void (*f)(char* event, int num_param, char* str_param)) {
98
98
}
99
99
EXPORT_SYMBOL (ntf_add_listener );
100
100
101
- static bool screen_on = false , screen_on_early = false, screen_off_early = false;
101
+ static bool screen_on = true , screen_on_early = false, screen_off_early = false;
102
102
static long last_input_event = 0 ;
103
103
104
104
// ======= SCREEN ON/OFF
@@ -389,13 +389,10 @@ bool ntf_wake_by_user(void) {
389
389
}
390
390
EXPORT_SYMBOL (ntf_wake_by_user );
391
391
392
- void set_last_input_event (const char * caller ) {
393
- //I("%s caller %s",__func__,caller);
394
- last_input_event = get_global_mseconds ();
395
- }
396
392
void ntf_input_event (const char * caller , const char * param ) {
397
393
// input event happened, stop stuff, store timesamp, set wake_by_user
398
- set_last_input_event (__func__ );
394
+ //pr_info("%s called by %s",__func__,caller);
395
+ last_input_event = get_global_mseconds ();
399
396
wake_by_user = true;
400
397
smart_set_last_user_activity_time ();
401
398
ntf_notify_listeners (NTF_EVENT_INPUT ,1 ,(char * )param );
@@ -417,9 +414,9 @@ void ntf_vibration(int length) {
417
414
ntf_notify_listeners (NTF_EVENT_NOTIFICATION , 1 , NTF_EVENT_NOTIFICATION_ARG_HAPTIC );
418
415
}
419
416
}
420
- #if 1
417
+ #if 0
421
418
// htc u12
422
- // if (length==TD_VALUE_HTC_U12_FINGERPRINT) register_fp_vibration();//ntf_input_event(__func__,"fp");
419
+ if (length == TD_VALUE_HTC_U12_FINGERPRINT ) register_fp_vibration ();//ntf_input_event(__func__,"fp");
423
420
#endif
424
421
}
425
422
EXPORT_SYMBOL (ntf_vibration );
0 commit comments