File tree 2 files changed +15
-15
lines changed
java/fr/free/nrw/commons/nearby
2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ fun placeAdapterDelegate(
37
37
}
38
38
cameraButton.setOnClickListener { onCameraClicked(item) }
39
39
galleryButton.setOnClickListener { onGalleryClicked(item) }
40
- bookmarkRowButton .setOnClickListener {
40
+ bookmarkButtonImage .setOnClickListener {
41
41
val isBookmarked = bookmarkLocationDao.updateBookmarkLocation(item)
42
- bookmarkRowButtonImage .setImageResource(if (isBookmarked) R .drawable.ic_round_star_filled_24px else R .drawable.ic_round_star_border_24px)
42
+ bookmarkButtonImage .setImageResource(if (isBookmarked) R .drawable.ic_round_star_filled_24px else R .drawable.ic_round_star_border_24px)
43
43
onBookmarkClicked(item, isBookmarked)
44
44
}
45
45
iconOverflow.setOnClickListener { onOverflowIconClicked(item, it) }
@@ -59,7 +59,7 @@ fun placeAdapterDelegate(
59
59
if (item.hasCommonsLink() || item.hasWikidataLink()) VISIBLE
60
60
else GONE
61
61
62
- bookmarkRowButtonImage .setImageResource(
62
+ bookmarkButtonImage .setImageResource(
63
63
if (bookmarkLocationDao.findBookmarkLocation(item))
64
64
R .drawable.ic_round_star_filled_24px
65
65
else
Original file line number Diff line number Diff line change 1
- <LinearLayout
2
- android : layout_width = " match_parent "
3
- android : layout_height = " wrap_content "
4
- android : id =" @+id/buttonLayout"
5
- xmlns : app =" http://schemas.android.com/apk/res-auto"
6
- android : orientation =" horizontal"
7
- android : visibility =" gone"
8
- android : layout_marginTop = " @dimen/standard_gap "
9
- android : layout_below =" @+id/icon "
10
- xmlns : android = " http://schemas.android.com/apk/res/android "
11
- >
1
+ <LinearLayout android : layout_width = " match_parent "
2
+ android : layout_height = " wrap_content "
3
+ xmlns : tools = " http://schemas.android.com/tools "
4
+ android : id =" @+id/buttonLayout"
5
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
6
+ android : orientation =" horizontal"
7
+ android : visibility =" gone"
8
+ tools : visibility = " visible "
9
+ android : layout_marginTop =" @dimen/standard_gap "
10
+ android : layout_below = " @+id/icon "
11
+ xmlns : android = " http://schemas.android.com/apk/res/android " >
12
12
13
13
<LinearLayout
14
14
android : id =" @+id/cameraButton"
123
123
124
124
</LinearLayout >
125
125
126
- </LinearLayout >
126
+ </LinearLayout >
You can’t perform that action at this time.
0 commit comments