Prevent outdated modules to be shown

This commit is contained in:
topjohnwu
2018-04-08 01:05:01 +08:00
parent 684c5d225a
commit ce2e6b7d35
5 changed files with 11 additions and 7 deletions
@@ -26,9 +26,9 @@ public class RepoDatabaseHelper extends SQLiteOpenHelper {
mm = Utils.getMagiskManager(context);
mDb = getWritableDatabase();
// Clear bad repos
// Remove outdated repos
mDb.delete(TABLE_NAME, "minMagisk<?",
new String[] { String.valueOf(Const.MIN_MODULE_VER) });
new String[] { String.valueOf(Const.MIN_MODULE_VER()) });
}
@Override