From 3944915061fc1f4206e2201376945e9295086591 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 15 Apr 2016 22:42:29 -0700 Subject: [PATCH] livedisplay: Fix validator for the nudge counter * This is a range counter starting from -3 (initial value) which counts upwards once a day. It's finally set to 1 when either the feature is used or we gave up with the nudges. Change-Id: Ia19b381aa35c598b31b46071479ae590dc8d9ffd --- sdk/src/java/cyanogenmod/providers/CMSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/java/cyanogenmod/providers/CMSettings.java b/sdk/src/java/cyanogenmod/providers/CMSettings.java index e25ad96..a350438 100644 --- a/sdk/src/java/cyanogenmod/providers/CMSettings.java +++ b/sdk/src/java/cyanogenmod/providers/CMSettings.java @@ -1390,7 +1390,7 @@ public final class CMSettings { /** @hide */ public static final Validator LIVE_DISPLAY_HINTED_VALIDATOR = - sBooleanValidator; + new InclusiveIntegerRangeValidator(-3, 1); /** * Enable statusbar double tap gesture on to put device to sleep