From 3c95db1c6cceff1bad0954a0a60dde4639c0ef00 Mon Sep 17 00:00:00 2001
From: Pawit Pornkitprasan
Date: Tue, 3 Jan 2012 10:32:44 +0700
Subject: AriesParts: Don't disable TV Out service on sleep
The underlying library will not disable and release the service
properly causing TV Out to be broken until next reboot.
---
AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'AriesParts')
diff --git a/AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java b/AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java
index 408587d..bb2797e 100644
--- a/AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java
+++ b/AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java
@@ -46,14 +46,14 @@ public class TvOutService extends Service {
}
else if (Intent.ACTION_SCREEN_ON.equals(action)) {
if (mWasOn) {
- enable();
+ SystemProperties.set("ctl.start", "tvouthack");
mWasOn = false;
}
}
else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
if (mTvOut._isEnabled()) {
mWasOn = true;
- disable();
+ SystemProperties.set("ctl.stop", "tvouthack");
}
}
}
--
cgit v1.1