summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-01-03 10:32:44 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-01-03 10:32:44 +0700
commit3c95db1c6cceff1bad0954a0a60dde4639c0ef00 (patch)
tree66f86d8651e353317af87ec320ef226e7915a01f
parent8e400b59609659355895ec95bf9256f619991d18 (diff)
downloaddevice_samsung_aries-common-3c95db1c6cceff1bad0954a0a60dde4639c0ef00.zip
device_samsung_aries-common-3c95db1c6cceff1bad0954a0a60dde4639c0ef00.tar.gz
device_samsung_aries-common-3c95db1c6cceff1bad0954a0a60dde4639c0ef00.tar.bz2
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.
-rw-r--r--AriesParts/src/com/cyanogenmod/settings/device/TvOutService.java4
1 files changed, 2 insertions, 2 deletions
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");
}
}
}