aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/values/colors.xml5
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectListFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java6
3 files changed, 11 insertions, 1 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 0ce98fc9..b1422ad6 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -9,4 +9,9 @@
<color name="overlayColor">#80000000</color>
<color name="ics_opaque">#8033b5e5</color>
<color name="cyan">#ff0099cc</color>
+
+ <color name="holo_blue_light">#ff33b5e5</color>
+ <color name="holo_orange_light">#ffffbb33</color>
+ <color name="holo_green_light">#ff99cc00</color>
+ <color name="holo_red_light">#ffff4444</color>
</resources> \ No newline at end of file
diff --git a/src/github/daneren2005/dsub/fragments/SelectListFragment.java b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
index 751b840f..57e3e2d2 100644
--- a/src/github/daneren2005/dsub/fragments/SelectListFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
@@ -138,7 +138,6 @@ public abstract class SelectListFragment<T> extends SubsonicFragment implements
listView.setVisibility(View.VISIBLE);
} else {
setEmpty(true);
- refreshLayout.setEnabled(true);
}
}
};
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index a9d6d06d..9078ccec 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -498,6 +498,12 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
refreshLayout.setEnabled(topRowVerticalPosition >= 0 && listView.getFirstVisiblePosition() == 0);
}
});
+
+ refreshLayout.setColorScheme(
+ R.color.holo_blue_light,
+ R.color.holo_orange_light,
+ R.color.holo_green_light,
+ R.color.holo_red_light);
}
protected void warnIfNetworkOrStorageUnavailable() {