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:
parent
61386e9ca9
commit
06f2908d78
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ public class ImageDatabase extends Database {
|
||||||
+ "WHERE " + AttachmentDatabase.MMS_ID + " IN (SELECT " + MmsSmsColumns.ID
|
+ "WHERE " + AttachmentDatabase.MMS_ID + " IN (SELECT " + MmsSmsColumns.ID
|
||||||
+ " FROM " + MmsDatabase.TABLE_NAME
|
+ " FROM " + MmsDatabase.TABLE_NAME
|
||||||
+ " WHERE " + MmsDatabase.THREAD_ID + " = ?) AND "
|
+ " 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";
|
+ "ORDER BY " + AttachmentDatabase.TABLE_NAME + "." + AttachmentDatabase.ROW_ID + " DESC";
|
||||||
|
|
||||||
public ImageDatabase(Context context, SQLiteOpenHelper databaseHelper) {
|
public ImageDatabase(Context context, SQLiteOpenHelper databaseHelper) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue