public void showUpdated() {
new MaterialDialog.Builder(this)
.title("RadioControl has been updated")
.theme(Theme.LIGHT)
.positiveText("GOT IT")
.negativeText("WHAT'S NEW")
.onAny(new MaterialDialog.SingleButtonCallback() {
@Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
String chk = which.name();
Log.d("RadioControl", "Updated: " + chk);
if(chk.equals("POSITIVE")){
dialog.dismiss();
}
else if(chk.equals("NEGATIVE")){
startChangelogActivity();
}
}
})
.show();
}
MainActivity.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:RadioControl
作者:
评论列表
文章目录