aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-06 19:33:08 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-06 19:33:08 -0700
commit004c2673df85881a82b7cc993f6984eb60a2641b (patch)
tree3d5b0b0d42694347e79396ed194e1d832649e8b3
parent85cb808de5638f883a781d04bebde5a36c2d624d (diff)
downloaddsub-004c2673df85881a82b7cc993f6984eb60a2641b.tar.gz
dsub-004c2673df85881a82b7cc993f6984eb60a2641b.tar.bz2
dsub-004c2673df85881a82b7cc993f6984eb60a2641b.zip
Release Dsub 4.7.6 with fix for getResources crash
-rw-r--r--AndroidManifest.xml2
-rw-r--r--src/github/daneren2005/dsub/fragments/NowPlayingFragment.java14
2 files changed, 8 insertions, 8 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 1227c37d..c7d08081 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="github.daneren2005.dsub"
android:installLocation="internalOnly"
- android:versionCode="123"
+ android:versionCode="124"
android:versionName="4.7.6">
<uses-permission android:name="android.permission.INTERNET"/>
diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
index 82f82064..23e71047 100644
--- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -388,7 +388,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(entry.getRating() == 1) {
setRating(entry, 0);
- if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_dark);
} else {
rateBadButton.setImageResource(Util.getAttribute(context, R.attr.rating_bad));
@@ -402,7 +402,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_selected);
// Make sure good rating is blank
- if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_dark);
} else {
rateGoodButton.setImageResource(Util.getAttribute(context, R.attr.rating_good));
@@ -428,7 +428,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(entry.getRating() == 5) {
setRating(entry, 0);
- if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_dark);
} else {
rateGoodButton.setImageResource(Util.getAttribute(context, R.attr.rating_good));
@@ -439,7 +439,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_selected);
// Make sure bad rating is blank
- if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_dark);
} else {
rateBadButton.setImageResource(Util.getAttribute(context, R.attr.rating_bad));
@@ -1181,7 +1181,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
int badRating, goodRating, bookmark;
if(song.getRating() == 1) {
badRating = R.drawable.ic_action_rating_bad_selected;
- } else if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
badRating = R.drawable.ic_action_rating_bad_dark;
} else {
badRating = Util.getAttribute(context, R.attr.rating_bad);
@@ -1190,7 +1190,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(song.getRating() == 5) {
goodRating = R.drawable.ic_action_rating_good_selected;
- } else if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
goodRating = R.drawable.ic_action_rating_good_dark;
} else {
goodRating = Util.getAttribute(context, R.attr.rating_good);
@@ -1199,7 +1199,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
if(song.getBookmark() != null) {
bookmark = R.drawable.ic_menu_bookmark_selected;
- } else if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
+ } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
bookmark = R.drawable.ic_menu_bookmark_dark;
} else {
bookmark = Util.getAttribute(context, R.attr.bookmark);