[android] fix: Changing bookmark color resets other content.

This commit is contained in:
a.marchuk 2015-07-22 18:03:39 +03:00 committed by Alex Zolotarev
parent 4048fff173
commit bab6d4cb56

View file

@ -143,13 +143,18 @@ public class EditBookmarkFragment extends BaseMwmDialogFragment implements View.
mBookmark.setParams(mBookmark.getName(), newIcon, mBookmark.getBookmarkDescription());
mBookmark = BookmarkManager.INSTANCE.getBookmark(mBookmark.getCategoryId(), mBookmark.getBookmarkId());
refreshBookmark();
refreshColorMarker();
}
});
dialogFragment.show(getActivity().getSupportFragmentManager(), null);
}
private void refreshColorMarker()
{
mIvColor.setImageResource(mBookmark.getIcon().getSelectedResId());
}
private void refreshBookmark()
{
mEtName.setText(mBookmark.getName());
@ -158,6 +163,6 @@ public class EditBookmarkFragment extends BaseMwmDialogFragment implements View.
mEtDescription.setText(mBookmark.getBookmarkDescription());
mTvBookmarkGroup.setText(mBookmark.getCategoryName(getActivity()));
mIvColor.setImageResource(mBookmark.getIcon().getSelectedResId());
refreshColorMarker();
}
}