Fix possible npe
This commit is contained in:
parent
e9925fbddd
commit
f1597a3a1c
1 changed files with 3 additions and 1 deletions
|
@ -618,8 +618,10 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
sortByMode = mode;
|
||||
tracksCard.setSortByMode(mode);
|
||||
sortButton.setImageResource(mode.getIconId());
|
||||
if (tracksCard != null) {
|
||||
tracksCard.setSortByMode(mode);
|
||||
}
|
||||
}
|
||||
}, sortByMode == mode
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue