summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-01-12 19:51:21 (GMT)
committerLuis Vidal <lvidal@cyngn.com>2016-01-12 19:51:21 (GMT)
commit3b82b9cbc34178e641bb8cf5d8a2676a6e586950 (patch)
tree47356d3f90ad11191ee0ae9983b17b1211a5ea98 /src
parentc9796fc67dde6572bb369d52f3b47510d47f3e54 (diff)
downloadandroid_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.zip
android_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.tar.gz
android_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.tar.bz2
Queries live lock screen preview path
Includes the live lock screen path in the currently applied components query Change-Id: I00a4290c96b3c87b3e3d7d1fefc22219440822f9
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index ca24162..1dec10b 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -424,6 +424,13 @@ public class ThemesProvider extends ContentProvider {
PreviewColumns.COL_VALUE, previewKey, PreviewColumns.THEME_ID,
id, PreviewColumns.COL_KEY, previewKey));
delimeter = ",";
+ } else if (ThemesColumns.MODIFIES_LIVE_LOCK_SCREEN.equals(component)) {
+ String previewKey = PreviewColumns.LIVE_LOCK_SCREEN_PREVIEW;
+ sb.append(delimeter).append(String.format(Locale.US,
+ "(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
+ PreviewColumns.COL_VALUE, previewKey, PreviewColumns.THEME_ID,
+ id, PreviewColumns.COL_KEY, previewKey));
+ delimeter = ",";
}
}
}