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: Baik Han <baik.han@lge.com>
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user