aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/MainFragment.java2
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java4
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java4
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java4
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java5
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicTabFragment.java4
6 files changed, 13 insertions, 10 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/MainFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/MainFragment.java
index eb3ee575..390f92fc 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/MainFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/MainFragment.java
@@ -134,7 +134,7 @@ public class MainFragment extends SubsonicTabFragment {
}
@Override
- protected void refresh() {
+ protected void refresh(boolean refresh) {
createLayout();
}
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
index 20bd63a5..bac9c71d 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
@@ -174,8 +174,8 @@ public class SelectArtistFragment extends SubsonicTabFragment implements Adapter
}
@Override
- protected void refresh() {
- load(true);
+ protected void refresh(boolean refresh) {
+ load(refresh);
}
private void load(final boolean refresh) {
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 87ca2c68..5bc15fb7 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -319,8 +319,8 @@ public class SelectDirectoryFragment extends SubsonicTabFragment implements Adap
}
@Override
- protected void refresh() {
- load(true);
+ protected void refresh(boolean refresh) {
+ load(refresh);
}
private void load(boolean refresh) {
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index 5581cae5..79b8280a 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -152,8 +152,8 @@ public class SelectPlaylistFragment extends SubsonicTabFragment implements Adapt
}
@Override
- protected void refresh() {
- load(true);
+ protected void refresh(boolean refresh) {
+ load(refresh);
}
private void load(final boolean refresh) {
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 8cc6badd..9fc1308e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -89,7 +89,7 @@ public class SubsonicFragment extends SherlockFragment {
public boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_refresh:
- refresh();
+ refresh(true);
return true;
case R.id.menu_shuffle:
onShuffleRequested();
@@ -116,6 +116,9 @@ public class SubsonicFragment extends SherlockFragment {
}
protected void refresh() {
+ refresh(true);
+ }
+ protected void refresh(boolean refresh) {
}
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicTabFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicTabFragment.java
index a1cd9557..eeed999a 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicTabFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicTabFragment.java
@@ -39,14 +39,14 @@ public class SubsonicTabFragment extends SubsonicFragment {
}
if(invalidated) {
invalidated = false;
- refresh();
+ refresh(false);
}
}
}
public void invalidate() {
if(primaryFragment) {
- refresh();
+ refresh(false);
} else {
invalidated = true;
}