crashfix: use getActivity() instead of getContext() to avoid crashes on Android <= 5.x
This commit is contained in:
parent
3e4efdb989
commit
e9e131a575
@ -128,7 +128,7 @@ public class PlaylistInputDialog extends DialogFragment
|
||||
mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false);
|
||||
} else {
|
||||
mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(true);
|
||||
ContentResolver resolver = getContext().getContentResolver();
|
||||
ContentResolver resolver = getActivity().getContentResolver();
|
||||
int res = Playlist.getPlaylist(resolver, string) == -1 ? mActionRes : R.string.overwrite;
|
||||
mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setText(res);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user