diff options
Diffstat (limited to 'java/com/android/dialer/callcomposer/GalleryCursorLoader.java')
-rw-r--r-- | java/com/android/dialer/callcomposer/GalleryCursorLoader.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/java/com/android/dialer/callcomposer/GalleryCursorLoader.java b/java/com/android/dialer/callcomposer/GalleryCursorLoader.java index d33bfb398..39d6a4a6d 100644 --- a/java/com/android/dialer/callcomposer/GalleryCursorLoader.java +++ b/java/com/android/dialer/callcomposer/GalleryCursorLoader.java @@ -16,6 +16,7 @@ package com.android.dialer.callcomposer; +import android.annotation.SuppressLint; import android.content.Context; import android.net.Uri; import android.provider.MediaStore.Files; @@ -43,10 +44,11 @@ public class GalleryCursorLoader extends CursorLoader { SORT_ORDER); } + @SuppressLint("DefaultLocale") private static String createSelection() { - return "mime_type IN ('image/jpeg', 'image/jpg', 'image/png', 'image/webp')" - + " AND media_type in (" - + FileColumns.MEDIA_TYPE_IMAGE - + ")"; + return String.format( + "mime_type IN ('image/jpeg', 'image/jpg', 'image/png', 'image/webp')" + + " AND media_type in (%d)", + FileColumns.MEDIA_TYPE_IMAGE); } } |