summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/cyanogenmod/hardware/SunlightEnhancement.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/SunlightEnhancement.java b/src/org/cyanogenmod/hardware/SunlightEnhancement.java
index 0045eed..7ddbf41 100644
--- a/src/org/cyanogenmod/hardware/SunlightEnhancement.java
+++ b/src/org/cyanogenmod/hardware/SunlightEnhancement.java
@@ -55,4 +55,17 @@ public class SunlightEnhancement {
* @return boolean False if adaptive backlight is not a dependency
*/
public static boolean isAdaptiveBacklightRequired() { return true; }
+
+ /**
+ * Set this to true if the implementation is self-managed and does
+ * it's own ambient sensing. In this case, setEnabled is assumed
+ * to toggle the feature on or off, but not activate it. If set
+ * to false, LiveDisplay will call setEnabled when the ambient lux
+ * threshold is crossed.
+ *
+ * @return true if this enhancement is self-managed
+ */
+ public static boolean isSelfManaged() {
+ return false;
+ }
}