From 35833f1c65fb9545edc70096fdfdb54ba64ac74c Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Wed, 8 Feb 2017 18:32:49 +0100 Subject: [PATCH] Do *not* set mtime to 0 if we are triggering a lazy rescan mtime==0 means: item does not exist and it will never be get correctly re-indexed in this state --- src/ch/blinkenlights/android/medialibrary/MediaSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/blinkenlights/android/medialibrary/MediaSchema.java b/src/ch/blinkenlights/android/medialibrary/MediaSchema.java index d7dbc321..6fc886a6 100644 --- a/src/ch/blinkenlights/android/medialibrary/MediaSchema.java +++ b/src/ch/blinkenlights/android/medialibrary/MediaSchema.java @@ -243,7 +243,7 @@ public class MediaSchema { * @param dbh the writeable dbh to use */ private static void triggerFullMediaScan(SQLiteDatabase dbh) { - dbh.execSQL("UPDATE "+MediaLibrary.TABLE_SONGS+" SET "+MediaLibrary.SongColumns.MTIME+"=0"); + dbh.execSQL("UPDATE "+MediaLibrary.TABLE_SONGS+" SET "+MediaLibrary.SongColumns.MTIME+"=1"); // wipes non-bools only - not nice but good enough for now dbh.execSQL("DELETE FROM "+MediaLibrary.TABLE_PREFERENCES+" WHERE "+MediaLibrary.PreferenceColumns.VALUE+" < 2"); }