diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-01-12 11:51:21 -0800 |
---|---|---|
committer | Luis Vidal <lvidal@cyngn.com> | 2016-01-12 11:51:21 -0800 |
commit | 3b82b9cbc34178e641bb8cf5d8a2676a6e586950 (patch) | |
tree | 47356d3f90ad11191ee0ae9983b17b1211a5ea98 | |
parent | c9796fc67dde6572bb369d52f3b47510d47f3e54 (diff) | |
download | android_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.tar.gz android_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.tar.bz2 android_packages_providers_ThemesProvider-3b82b9cbc34178e641bb8cf5d8a2676a6e586950.zip |
Queries live lock screen preview path
Includes the live lock screen path in the currently applied
components query
Change-Id: I00a4290c96b3c87b3e3d7d1fefc22219440822f9
-rw-r--r-- | src/org/cyanogenmod/themes/provider/ThemesProvider.java | 7 |
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 = ","; } } } |