linter: fix wakelock log tag

See https://github.com/termux/termux-app/issues/1670.
This commit is contained in:
Leonid Pliushch 2020-08-14 15:03:14 +03:00
parent b486d29d23
commit 784affe39c
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public final class TermuxService extends Service implements SessionChangedCallba
} else if (ACTION_LOCK_WAKE.equals(action)) {
if (mWakeLock == null) {
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, EmulatorDebug.LOG_TAG);
mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, EmulatorDebug.LOG_TAG + ":service-wakelock");
mWakeLock.acquire();
// http://tools.android.com/tech-docs/lint-in-studio-2-3#TOC-WifiManager-Leak