aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-20 21:55:32 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-20 21:55:32 -0700
commitc17cb83c346f72af80cd286a60f70bc1a15c57b5 (patch)
tree3acbce39d269b217b45d15aa0ccf9e09ace85a3a /src
parent6d38bace78ebb7789b5d57e4146099577e73beca (diff)
downloaddsub-c17cb83c346f72af80cd286a60f70bc1a15c57b5.tar.gz
dsub-c17cb83c346f72af80cd286a60f70bc1a15c57b5.tar.bz2
dsub-c17cb83c346f72af80cd286a60f70bc1a15c57b5.zip
#349 Add colors to refresh indicator
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectListFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java6
2 files changed, 6 insertions, 1 deletions
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() {