commit | 3eab82e7e22205c21431fffda067b98b61cc82ad | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Fri Jan 13 16:51:36 2017 -0800 |
committer | Garfield Tan <xutan@google.com> | Tue Jan 17 19:15:55 2017 +0000 |
tree | 3e86fc8cb07ba7aae03e7b24066e0d95bd70bb14 | |
parent | e77419c6b4aecf4eb71b49898d6b63034a0771e4 [diff] |
Fix the use of WakeLock. WakeLock is reference counted, so we need to call release() once for each acquire(). Otherwise when WakeLock is GC'ed it kills DocumentsUI by Log.wtf(). Unit tests will then fail to run on eng build. Test: Tests pass. Change-Id: I98889e1d99c9b814abf0746de1cfbc59737f05d2 (cherry picked from commit 8b98ab7dba92ec3c9bfe293e7ba24359abd6ddcb)