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

Commit def340d4 authored by baik.han's avatar baik.han
Browse files

fix return value scale of notifyANR()



fix return value scale of notifyANR()
from milliseconds to nanoseconds when windowState is not null
This prevent unintended frequent method calls of notifyANR()
in a very short time.

Change-Id: Icc1f363b3ed3538821a42c080809567473bfb833
Signed-off-by: default avatarBaik Han <baik.han@lge.com>
parent 82992b72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ final class InputMonitor implements InputManagerService.WindowManagerCallbacks {
                if (timeout >= 0) {
                    // The activity manager declined to abort dispatching.
                    // Wait a bit longer and timeout again later.
                    return timeout;
                    return timeout * 1000000L; // nanoseconds
                }
            } catch (RemoteException ex) {
            }