mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-05 02:05:25 +08:00
linter: fix wakelock log tag
See https://github.com/termux/termux-app/issues/1670.
This commit is contained in:
@@ -106,7 +106,7 @@ public final class TermuxService extends Service implements SessionChangedCallba
|
|||||||
} else if (ACTION_LOCK_WAKE.equals(action)) {
|
} else if (ACTION_LOCK_WAKE.equals(action)) {
|
||||||
if (mWakeLock == null) {
|
if (mWakeLock == null) {
|
||||||
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
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();
|
mWakeLock.acquire();
|
||||||
|
|
||||||
// http://tools.android.com/tech-docs/lint-in-studio-2-3#TOC-WifiManager-Leak
|
// http://tools.android.com/tech-docs/lint-in-studio-2-3#TOC-WifiManager-Leak
|
||||||
|
Reference in New Issue
Block a user