parent
48ead285b3
commit
8e25f188c5
|
@ -272,7 +272,9 @@ public class QueueFragment extends Fragment {
|
||||||
boolean newLockState = !UserPreferences.isQueueLocked();
|
boolean newLockState = !UserPreferences.isQueueLocked();
|
||||||
UserPreferences.setQueueLocked(newLockState);
|
UserPreferences.setQueueLocked(newLockState);
|
||||||
getActivity().supportInvalidateOptionsMenu();
|
getActivity().supportInvalidateOptionsMenu();
|
||||||
recyclerAdapter.setLocked(newLockState);
|
if (recyclerAdapter != null) {
|
||||||
|
recyclerAdapter.setLocked(newLockState);
|
||||||
|
}
|
||||||
if (newLockState) {
|
if (newLockState) {
|
||||||
Snackbar.make(getActivity().findViewById(R.id.content), R.string
|
Snackbar.make(getActivity().findViewById(R.id.content), R.string
|
||||||
.queue_locked, Snackbar.LENGTH_SHORT).show();
|
.queue_locked, Snackbar.LENGTH_SHORT).show();
|
||||||
|
|
Loading…
Reference in New Issue