aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-09-09 08:53:24 -0700
committerScott Jackson <daneren2005@gmail.com>2015-09-09 08:53:24 -0700
commitd0c06a17cf1ced28e4765585b5d103f644d6ed3d (patch)
tree9cfc6a7d807067efe1326c82dd25d4c12066d7c9 /app
parenta3e6a41d34715b45d50c5a47d9f431140857d30d (diff)
downloaddsub-d0c06a17cf1ced28e4765585b5d103f644d6ed3d.tar.gz
dsub-d0c06a17cf1ced28e4765585b5d103f644d6ed3d.tar.bz2
dsub-d0c06a17cf1ced28e4765585b5d103f644d6ed3d.zip
Fix crash on remove from playlist
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/adapter/EntryGridAdapter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/EntryGridAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/EntryGridAdapter.java
index a9a7a3cf..d1ee4bea 100644
--- a/app/src/main/java/github/daneren2005/dsub/adapter/EntryGridAdapter.java
+++ b/app/src/main/java/github/daneren2005/dsub/adapter/EntryGridAdapter.java
@@ -124,6 +124,9 @@ public class EntryGridAdapter extends SectionAdapter<Entry> {
public void removeAt(int index) {
sections.get(0).remove(index);
+ if(header != null) {
+ index++;
+ }
notifyItemRemoved(index);
}