diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/cyanogenmod/themes/provider/util/ProviderUtils.java | 5 | ||||
-rw-r--r-- | src/org/cyanogenmod/themes/provider/util/WallpaperPreviewGenerator.java | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java b/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java index 66db924..59b3d2e 100644 --- a/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java +++ b/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java @@ -146,7 +146,7 @@ public class ProviderUtils { String newSelection = ""; if (!TextUtils.isEmpty(selection)) { - newSelection += selection; + newSelection += "(" + selection; } List<String> projectionItems = getPreviewProjectionItems(projection); if (projectionItems != null && projectionItems.size() > 0) { @@ -162,6 +162,9 @@ public class ProviderUtils { } newSelection += ")"; } + if (!TextUtils.isEmpty(selection)) { + newSelection += ")"; + } return newSelection; } diff --git a/src/org/cyanogenmod/themes/provider/util/WallpaperPreviewGenerator.java b/src/org/cyanogenmod/themes/provider/util/WallpaperPreviewGenerator.java index 0e90f48..f1a040c 100644 --- a/src/org/cyanogenmod/themes/provider/util/WallpaperPreviewGenerator.java +++ b/src/org/cyanogenmod/themes/provider/util/WallpaperPreviewGenerator.java @@ -120,7 +120,7 @@ public class WallpaperPreviewGenerator { Bitmap thumbnail = Bitmap.createScaledBitmap(preview, mThumbnailSize, mThumbnailSize, true); filePrefix = isLockWallpaper ? PreviewColumns.LOCK_WALLPAPER_THUMBNAIL : - PreviewColumns.LOCK_WALLPAPER_THUMBNAIL; + PreviewColumns.WALLPAPER_THUMBNAIL; fileName = filePrefix + componentID; item.thumbnailPath = PreviewUtils.compressAndSavePng(thumbnail, baseDir, pkgName, fileName); |