New colors

This commit is contained in:
Karim Abou Zeid 2015-03-30 21:42:54 +02:00
commit 696299b960
32 changed files with 116 additions and 164 deletions

View file

@ -58,6 +58,9 @@ public final class PreferenceUtils {
// Key used to en or disable the colored navigation bar
public static final String PLAYBACK_CONTROLLER_BOX = "playback_controller_card";
/* Saves the last page the pager was on in {@link MainActivity} */
public static final String TRANSPARENT_TOOLBAR = "transparent_toolbar";
private static PreferenceUtils sInstance;
private final SharedPreferences mPreferences;
@ -182,6 +185,16 @@ public final class PreferenceUtils {
editor.apply();
}
public final boolean transparentToolbar() {
return mPreferences.getBoolean(TRANSPARENT_TOOLBAR, true);
}
public void setTransparentToolbar(final boolean value) {
final SharedPreferences.Editor editor = mPreferences.edit();
editor.putBoolean(TRANSPARENT_TOOLBAR, value);
editor.apply();
}
public final boolean downloadMissingArtistImages() {
return mPreferences.getBoolean(DOWNLOAD_MISSING_ARTIST_IMAGES, true);
}