@Override
public void onColorSelection(@NonNull ColorChooserDialog dialog, @ColorInt int colorInt) {
if (ArrayUtils.indexOf(itemColor.getColorButtonRecents(), colorInt) >= 0) {
// the value exists, show toast
Toast.makeText(activity, R.string.settings_color_dialog_duplicate, Toast.LENGTH_SHORT).show();
} else if (itemColor.getColorButton() == colorInt) {
// the value is same to current color
Toast.makeText(activity, R.string.settings_color_dialog_duplicate_current, Toast.LENGTH_SHORT).show();
} else {
insertNewColor(colorInt);
}
}
ColorActivity.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:Tapad
作者:
评论列表
文章目录