Fix notification panel not expanding and added user option to toggle

This commit is contained in:
h4h13 2020-03-01 22:13:31 +05:30
parent 19c7b826f4
commit e6fb122796
8 changed files with 30 additions and 13 deletions

View file

@ -216,6 +216,7 @@ public final class PreferenceUtil {
private static final String FILTER_SONG = "filter_song";
private static final String TAG = "PreferenceUtil";
private static final String EXPAND_NOW_PLAYING_PANEL = "expand_now_playing_panel";
private static PreferenceUtil sInstance;
private final SharedPreferences mPreferences;
@ -974,4 +975,8 @@ public final class PreferenceUtil {
@NonNull OnSharedPreferenceChangeListener sharedPreferenceChangeListener) {
mPreferences.unregisterOnSharedPreferenceChangeListener(sharedPreferenceChangeListener);
}
public boolean isExpandPanel() {
return mPreferences.getBoolean(EXPAND_NOW_PLAYING_PANEL, false);
}
}