mirror of https://github.com/termux/termux-app
linter: fix wakelock log tag
See https://github.com/termux/termux-app/issues/1670.
This commit is contained in:
parent
b486d29d23
commit
784affe39c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue