aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-27 17:10:40 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-27 17:10:40 -0800
commit23c989ef9b9aeb0656909aab50434e337905551a (patch)
treee729172637667bb049b7368cd720e6f5be0b453c /src/github/daneren2005
parent88a88aa43f2d5696e08cc036659b1464af3805e6 (diff)
downloaddsub-23c989ef9b9aeb0656909aab50434e337905551a.tar.gz
dsub-23c989ef9b9aeb0656909aab50434e337905551a.tar.bz2
dsub-23c989ef9b9aeb0656909aab50434e337905551a.zip
Refactor header notify
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 0bd03136..1e6218d1 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -1419,20 +1419,15 @@ 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(minLines);
+ }
- if(albumList instanceof HeaderGridView) {
- HeaderGridView headerGridView = (HeaderGridView) albumList;
- ((BaseAdapter) headerGridView.getAdapter()).notifyDataSetChanged();
- }
+ if(albumList instanceof HeaderGridView) {
+ HeaderGridView headerGridView = (HeaderGridView) albumList;
+ ((BaseAdapter) headerGridView.getAdapter()).notifyDataSetChanged();
}
}
});