Skip to content

Commit

Permalink
NPE fix, beta release 2.0-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
indywidualny committed Jun 4, 2016
1 parent 56c1f50 commit ec45059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 15
targetSdkVersion 23
versionCode 11
versionName "1.1"
versionName "2.0-beta1"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,12 @@ public void onClick(View view) {
snackbar.setCallback(new Snackbar.Callback() {
@Override
public void onDismissed(Snackbar snackbar, int event) {
if (event != DISMISS_EVENT_ACTION)
mCallback.unfavouriteSong(removed);
if (event != DISMISS_EVENT_ACTION) {
if (mCallback != null)
mCallback.unfavouriteSong(removed);
else
AsyncWrapper.removeFavouriteSong(removed);
}
}
});
snackbar.show();
Expand Down

0 comments on commit ec45059

Please sign in to comment.