Add synchronized lyrics preference

Fix animations
This commit is contained in:
tkashkin 2017-06-12 03:30:56 +03:00
commit 93e2dc0346
10 changed files with 50 additions and 18 deletions

View file

@ -69,6 +69,8 @@ public final class PreferenceUtil {
public static final String START_DIRECTORY = "start_directory";
public static final String SYNCHRONIZED_LYRICS_SHOW = "synchronized_lyrics_show";
private static PreferenceUtil sInstance;
private final SharedPreferences mPreferences;
@ -400,4 +402,8 @@ public final class PreferenceUtil {
editor.putString(START_DIRECTORY, file.getPath());
editor.apply();
}
public final boolean synchronizedLyricsShow() {
return mPreferences.getBoolean(SYNCHRONIZED_LYRICS_SHOW, true);
}
}