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

@ -170,7 +170,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity
registerReceiver(mBroadcastReceiver, mIntentFilter);
PreferenceUtil.getInstance(this).registerOnSharedPreferenceChangedListener(this);
if (getIntent().hasExtra(EXPAND_PANEL)) {
if (getIntent().hasExtra(EXPAND_PANEL) && PreferenceUtil.getInstance(this).isExpandPanel()) {
if (getIntent().getBooleanExtra(EXPAND_PANEL, false)) {
expandPanel();
getIntent().putExtra(EXPAND_PANEL, false);