Don't show images without data under "all images"

This affects images
- that have yet to be downloaded (using media download controls)
- that are currently being downloaded
- that failed to download

closes #4507
This commit is contained in:
brumsel 2015-11-13 00:07:05 +01:00 committed by Jake McGinty
parent 61386e9ca9
commit 06f2908d78

View File

@ -26,7 +26,8 @@ public class ImageDatabase extends Database {
+ "WHERE " + AttachmentDatabase.MMS_ID + " IN (SELECT " + MmsSmsColumns.ID
+ " FROM " + MmsDatabase.TABLE_NAME
+ " WHERE " + MmsDatabase.THREAD_ID + " = ?) AND "
+ AttachmentDatabase.CONTENT_TYPE + " LIKE 'image/%' "
+ AttachmentDatabase.CONTENT_TYPE + " LIKE 'image/%' AND "
+ AttachmentDatabase.DATA + " IS NOT NULL "
+ "ORDER BY " + AttachmentDatabase.TABLE_NAME + "." + AttachmentDatabase.ROW_ID + " DESC";
public ImageDatabase(Context context, SQLiteOpenHelper databaseHelper) {