/**
* Set the new text or background color for {@link #tempTag}.
* @param dialog Dialog whose title string's resource ID will determine if we're setting the text or
* background color.
* @param selectedColor New text or background color.
*/
@Override
public void onColorSelection(@NonNull ColorChooserDialog dialog, @ColorInt int selectedColor) {
if (dialog.getTitle() == R.string.title_tag_text_color) // Text color dialog.
ActionHelper.setTagTextColor(realm, tempTag, selectedColor);
else // Background color dialog.
ActionHelper.setTagBgColor(realm, tempTag, selectedColor);
// Notify the adapter that it needs to re-draw the tag's card.
adapter.notifyItemChanged(items.indexOf(tempTag));
// Indicate that we might need an explicit update.
taggingHelper.markForExplicitUpdateIfNecessary();
}
TaggingActivity.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:Minerva
作者:
评论列表
文章目录