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) {
|
public void setPosition(int position) {
|
||||||
this.position = position;
|
this.position = position;
|
||||||
if(position > 0) {
|
if(position > 0 && item.isNew()) {
|
||||||
this.item.setPlayed(false);
|
this.item.setPlayed(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -877,12 +877,10 @@ public class PodDBAdapter {
|
||||||
|
|
||||||
public void setQueue(List<FeedItem> queue) {
|
public void setQueue(List<FeedItem> queue) {
|
||||||
ContentValues values = new ContentValues();
|
ContentValues values = new ContentValues();
|
||||||
long[] ids = new long[queue.size()];
|
|
||||||
db.beginTransaction();
|
db.beginTransaction();
|
||||||
db.delete(TABLE_NAME_QUEUE, null, null);
|
db.delete(TABLE_NAME_QUEUE, null, null);
|
||||||
for (int i = 0; i < queue.size(); i++) {
|
for (int i = 0; i < queue.size(); i++) {
|
||||||
FeedItem item = queue.get(i);
|
FeedItem item = queue.get(i);
|
||||||
ids[i] = item.getId();
|
|
||||||
values.put(KEY_ID, i);
|
values.put(KEY_ID, i);
|
||||||
values.put(KEY_FEEDITEM, item.getId());
|
values.put(KEY_FEEDITEM, item.getId());
|
||||||
values.put(KEY_FEED, item.getFeed().getId());
|
values.put(KEY_FEED, item.getFeed().getId());
|
||||||
|
|
Loading…
Reference in New Issue