aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-02-19 18:07:07 -0800
committerScott Jackson <daneren2005@gmail.com>2015-02-19 18:07:07 -0800
commitd3eeab82aeb7b1c1d6c882e7cbc693e4e7878bdb (patch)
treead9254e0667549a0faed99b2c12dfe99098c2fd8
parent46f1bef7a8b729699e60e85217e91c4c20dfb7a3 (diff)
downloaddsub-d3eeab82aeb7b1c1d6c882e7cbc693e4e7878bdb.tar.gz
dsub-d3eeab82aeb7b1c1d6c882e7cbc693e4e7878bdb.tar.bz2
dsub-d3eeab82aeb7b1c1d6c882e7cbc693e4e7878bdb.zip
If we open up to a hidden drawer item, display it
-rw-r--r--src/github/daneren2005/dsub/view/DrawerAdapter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/view/DrawerAdapter.java b/src/github/daneren2005/dsub/view/DrawerAdapter.java
index 924df743..1f2c7f4f 100644
--- a/src/github/daneren2005/dsub/view/DrawerAdapter.java
+++ b/src/github/daneren2005/dsub/view/DrawerAdapter.java
@@ -98,6 +98,11 @@ public class DrawerAdapter extends ArrayAdapter<String> {
return position;
}
public int getAdapterPosition(int position) {
+ if(!visible.get(position)) {
+ visible.set(position, true);
+ notifyDataSetChanged();
+ }
+
for(int i = position; i >= 0; i--) {
if(!visible.get(i)) {
position--;