summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authortiger_huang <tiger_huang@htc.com>2014-10-14 14:48:00 +0800
committerTiger Huang <tiger_huang@htc.com>2014-11-25 12:29:37 +0000
commit1b33b497239d783ea25acd31764836818ebd65b5 (patch)
tree62b7c83ee12e7dc6e1a37fb6b9747e62762393df /tools/aapt2/java/JavaClassGenerator_test.cpp
parent71f83672f297b116988defbe989869e5744cda5e (diff)
Prevent showing immersive confirmation unexpectedly
By design, if the user presses the power key twice within 5 seconds (panic), it will show immersive confirmation again at the next time entering immersive mode. But there is a bug on calculating the time between pressing the power key. The time get from event.getDownTime() will stop when the device is sleeping without being charged. So here uses SystemClock.elapsedRealtime() instead. https://code.google.com/p/android/issues/detail?id=80772 Change-Id: I4dca9dc260904f1c5b60464834781e2a82a9bcf4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions