Small fixes.
This commit is contained in:
parent
bcff6277f2
commit
9cae7c5bfb
|
@ -186,7 +186,7 @@ public class FeedMedia extends FeedFile implements Playable {
|
|||
|
||||
public void setPosition(int position) {
|
||||
this.position = position;
|
||||
if(position > 0) {
|
||||
if(position > 0 && item.isNew()) {
|
||||
this.item.setPlayed(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -877,12 +877,10 @@ public class PodDBAdapter {
|
|||
|
||||
public void setQueue(List<FeedItem> queue) {
|
||||
ContentValues values = new ContentValues();
|
||||
long[] ids = new long[queue.size()];
|
||||
db.beginTransaction();
|
||||
db.delete(TABLE_NAME_QUEUE, null, null);
|
||||
for (int i = 0; i < queue.size(); i++) {
|
||||
FeedItem item = queue.get(i);
|
||||
ids[i] = item.getId();
|
||||
values.put(KEY_ID, i);
|
||||
values.put(KEY_FEEDITEM, item.getId());
|
||||
values.put(KEY_FEED, item.getFeed().getId());
|
||||
|
|
Loading…
Reference in New Issue