mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-05 12:13:54 +00:00
Hide PP category for other map objects other than track and bookmark
Signed-off-by: kavikhalique <kavikhalique3@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
89d82be2b9
commit
4052f0481e
@@ -263,6 +263,9 @@ public class PlacePageView extends Fragment
|
||||
mColorIcon = mFrame.findViewById(R.id.item_icon);
|
||||
mTvCategory = mFrame.findViewById(R.id.tv__category);
|
||||
mEditBookmark = mFrame.findViewById(R.id.edit_Bookmark);
|
||||
mColorIcon.setOnClickListener(this);
|
||||
mTvCategory.setOnClickListener(this);
|
||||
mEditBookmark.setOnClickListener(this);
|
||||
|
||||
MaterialButton shareButton = mPreview.findViewById(R.id.share_button);
|
||||
shareButton.setOnClickListener(this::shareClickListener);
|
||||
@@ -476,7 +479,6 @@ public class PlacePageView extends Fragment
|
||||
Graphics.drawCircle(track.getColor(), R.dimen.place_page_icon_size, requireContext().getResources());
|
||||
mColorIcon.setImageDrawable(circle);
|
||||
mTvCategory.setText(BookmarkManager.INSTANCE.getCategoryById(track.getCategoryId()).getName());
|
||||
UiUtils.show(mColorIcon, mTvCategory, categoryContainer);
|
||||
}
|
||||
else if (mMapObject.isBookmark())
|
||||
{
|
||||
@@ -488,13 +490,9 @@ public class PlacePageView extends Fragment
|
||||
R.dimen.place_page_icon_mark_size, requireContext());
|
||||
mColorIcon.setImageDrawable(circle);
|
||||
mTvCategory.setText(BookmarkManager.INSTANCE.getCategoryById(bookmark.getCategoryId()).getName());
|
||||
UiUtils.show(mColorIcon, mTvCategory, categoryContainer);
|
||||
}
|
||||
}
|
||||
|
||||
mColorIcon.setOnClickListener(this::onClick);
|
||||
mTvCategory.setOnClickListener(this::onClick);
|
||||
mEditBookmark.setOnClickListener(this::onClick);
|
||||
UiUtils.showIf(mMapObject.isTrack() || mMapObject.isBookmark(), categoryContainer);
|
||||
}
|
||||
|
||||
void showColorDialog()
|
||||
|
||||
Reference in New Issue
Block a user