Revert "Add a new smart playlist "Not played lately" playlist (#613)"
This reverts commit 764751381a.
This commit is contained in:
parent
b4d3470096
commit
29371671ee
9 changed files with 8 additions and 144 deletions
|
|
@ -25,7 +25,7 @@ import androidx.annotation.NonNull;
|
|||
import androidx.annotation.Nullable;
|
||||
|
||||
public class HistoryStore extends SQLiteOpenHelper {
|
||||
private static final int MAX_ITEMS_IN_DB = 5000;
|
||||
private static final int MAX_ITEMS_IN_DB = 100;
|
||||
|
||||
public static final String DATABASE_NAME = "history.db";
|
||||
private static final int VERSION = 1;
|
||||
|
|
@ -136,14 +136,10 @@ public class HistoryStore extends SQLiteOpenHelper {
|
|||
return containsId;
|
||||
}
|
||||
|
||||
public Cursor queryRecentIds(long cutoff) {
|
||||
public Cursor queryRecentIds() {
|
||||
final SQLiteDatabase database = getReadableDatabase();
|
||||
|
||||
return database.query(RecentStoreColumns.NAME,
|
||||
new String[]{RecentStoreColumns.ID},
|
||||
RecentStoreColumns.TIME_PLAYED + ">?",
|
||||
new String[]{String.valueOf(cutoff)},
|
||||
null, null,
|
||||
new String[]{RecentStoreColumns.ID}, null, null, null, null,
|
||||
RecentStoreColumns.TIME_PLAYED + " DESC");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue