Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b23bdf51 authored by Jeff Brown's avatar Jeff Brown
Browse files

Eliminate some accidental log spam. (DO NOT MERGE)

Used #ifdef where I should have used #if.

Change-Id: Ie3a083d601c89f4fc4d83244bb5060a202574dc2
parent 823f5bf3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -727,14 +727,14 @@ void NativeInputManager::handleInterceptActions(jint wmActions, nsecs_t when,
    };

    if (wmActions & WM_ACTION_GO_TO_SLEEP) {
#ifdef DEBUG_INPUT_DISPATCHER_POLICY
#if DEBUG_INPUT_DISPATCHER_POLICY
        LOGD("handleInterceptActions: Going to sleep.");
#endif
        android_server_PowerManagerService_goToSleep(when);
    }

    if (wmActions & WM_ACTION_POKE_USER_ACTIVITY) {
#ifdef DEBUG_INPUT_DISPATCHER_POLICY
#if DEBUG_INPUT_DISPATCHER_POLICY
        LOGD("handleInterceptActions: Poking user activity.");
#endif
        android_server_PowerManagerService_userActivity(when, POWER_MANAGER_BUTTON_EVENT);
@@ -743,7 +743,7 @@ void NativeInputManager::handleInterceptActions(jint wmActions, nsecs_t when,
    if (wmActions & WM_ACTION_PASS_TO_USER) {
        policyFlags |= POLICY_FLAG_PASS_TO_USER;
    } else {
#ifdef DEBUG_INPUT_DISPATCHER_POLICY
#if DEBUG_INPUT_DISPATCHER_POLICY
        LOGD("handleInterceptActions: Not passing key to user.");
#endif
    }