/**
* Delete playlist Dialog
*
* @param context
* @param Playlistname
*/
public static void deletePlaylistDailog(@NonNull Context context, String Playlistname, RefreshPlaylist refreshPlaylist) {
MaterialDialog.Builder builder = new MaterialDialog.Builder(context);
builder.title(Playlistname);
builder.content(R.string.deleteplaylist);
builder.positiveText(R.string.delete);
builder.onPositive(new MaterialDialog.SingleButtonCallback() {
@Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
deletePlaylist(context, Playlistname);
Toast.makeText(context, Playlistname + " Deleted", Toast.LENGTH_SHORT).show();
refreshPlaylist.refresh();
}
});
builder.typeface(Helper.getFont(context), Helper.getFont(context));
builder.negativeText(R.string.cancel);
builder.show();
}
PlaylistHelper.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:MusicX-music-player
作者:
评论列表
文章目录