diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-16 17:01:29 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-16 17:01:29 -0800 |
commit | c1e6ce3cd20d53b40a7a5085254b6565f65088ac (patch) | |
tree | 469848cc8abf715f87c4e60d79234fb0b04b9de9 /src | |
parent | c7109e9e119f1406cb0408363b8b7385d15c1933 (diff) | |
download | dsub-c1e6ce3cd20d53b40a7a5085254b6565f65088ac.tar.gz dsub-c1e6ce3cd20d53b40a7a5085254b6565f65088ac.tar.bz2 dsub-c1e6ce3cd20d53b40a7a5085254b6565f65088ac.zip |
Fix header space not updating with HeaderGridView
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 805c0de0..9587ff4e 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -27,6 +27,8 @@ import android.view.MenuItem; import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
+import android.widget.BaseAdapter;
+import android.widget.FrameLayout;
import android.widget.GridView;
import android.widget.ImageButton;
import android.widget.ImageView;
@@ -1414,10 +1416,20 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter artistView.setText(ss);
artistView.setMaxLines(100);
+ if(albumList instanceof HeaderGridView) {
+ HeaderGridView headerGridView = (HeaderGridView) albumList;
+ ((BaseAdapter) headerGridView.getAdapter()).notifyDataSetChanged();
+ }
+
vlp = (ViewGroup.MarginLayoutParams) titleView.getLayoutParams();
vlp.leftMargin = width;
} else {
artistView.setMaxLines(5);
+
+ if(albumList instanceof HeaderGridView) {
+ HeaderGridView headerGridView = (HeaderGridView) albumList;
+ ((BaseAdapter) headerGridView.getAdapter()).notifyDataSetChanged();
+ }
}
}
});
|