mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[android] Fix collor selector issue
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
committed by
Konstantin Pastbin
parent
f1f5ccd778
commit
ea99e26404
@@ -60,9 +60,9 @@ public class BookmarkColorDialogFragment extends BaseMwmDialogFragment
|
||||
final GridView gView =
|
||||
(GridView) LayoutInflater.from(requireActivity()).inflate(R.layout.fragment_color_grid, null);
|
||||
gView.setAdapter(adapter);
|
||||
gView.setOnItemClickListener((parent, view, predefinedColor, id) -> {
|
||||
gView.setOnItemClickListener((parent, view, pos, id) -> {
|
||||
if (mColorSetListener != null)
|
||||
mColorSetListener.onBookmarkColorSet(predefinedColor);
|
||||
mColorSetListener.onBookmarkColorSet(adapter.getItem(pos));
|
||||
dismiss();
|
||||
});
|
||||
|
||||
|
||||
@@ -318,7 +318,7 @@ public class EditBookmarkFragment extends BaseMwmDialogFragment implements View.
|
||||
{
|
||||
case TYPE_BOOKMARK ->
|
||||
dialogFragment.setOnColorSetListener(colorPos -> {
|
||||
if (mIcon != null & mIcon.getColor() == colorPos)
|
||||
if (mIcon != null && mIcon.getColor() == colorPos)
|
||||
return;
|
||||
|
||||
mIcon = new Icon(colorPos);
|
||||
|
||||
Reference in New Issue
Block a user