Skip to content

Commit

Permalink
Fix the bookmark navigation bar button tooltip (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Mar 11, 2020
1 parent e08227a commit 09f721f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/navigation_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
style="@style/urlBarIconThemeEnd"
android:src="@{viewmodel.isBookmarked ? @drawable/ic_icon_bookmarked_active : @drawable/ic_icon_bookmarked}"
android:tint="@color/fog"
android:tooltipText="@string/bookmark_tooltip"
android:tooltipText="@{viewmodel.isBookmarked ? @string/remove_bookmark_tooltip : @string/bookmark_tooltip}"
app:privateMode="@{viewmodel.isPrivateSession}"
app:visibleGone="@{!(viewmodel.isLibraryVisible || viewmodel.isUrlEmpty) && !viewmodel.isFocused}"
tools:src="@drawable/ic_icon_bookmarked" />
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,11 @@
browser's navigation bar. The button it labels, when pressed, bookmarks the currently open web site. -->
<string name="bookmark_tooltip">Bookmark this page</string>

<!-- This string is for the tooltip that appears when the user hovers over the 'Bookmark' icon in the
browser's navigation bar if the site is already bookmarked. The button it labels, when pressed,
removes the currently open web site from bookmarks. -->
<string name="remove_bookmark_tooltip">Remove from Bookmarks</string>

<!-- This string is for the tooltip that appears when the user hovers over the 'Bookmarks' icon in the
tray. The button it labels, when pressed, opens a list view of the user's saved
Bookmarks. -->
Expand Down

0 comments on commit 09f721f

Please sign in to comment.