Skip to content

Commit

Permalink
Fix share message and download link
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravkhunger committed Mar 11, 2022
1 parent e4ec7c7 commit c528100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ object ShareUtils {
intent.putExtra(Intent.EXTRA_STREAM, uri)
intent.putExtra(
Intent.EXTRA_TEXT,
"Shared from QuotesApp built by Gourav Khunger. " +
"Download the latest version of the app from GitHub: " +
context.getString(R.string.repo_url)
"Shared from QuotesApp built by Gourav Khunger.\n\n" +
"Download the app now: " +
context.getString(R.string.download_url)
)
} catch (e: Exception) {
Toast.makeText(
context,
"failed to share! try again",
"Failed to share!\nPlease try again.",
Toast.LENGTH_SHORT
).show()
}
Expand Down
7 changes: 5 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

<resources>
<string name="app_name">QuotesApp</string>
<string name="repo_url">https://github.com/gouravkhunger/QuotesApp</string>
<string name="myBookMarks">My Bookmarks</string>

<string name="quote">\"%1$s\"</string>
Expand All @@ -40,12 +39,16 @@
Release to load the next Quote!
</string>

<string name="noBookmarks">No Bookmarked Quotes to show!!</string>
<string name="noBookmarks">No Bookmarked Quote to show!</string>

<string name="bookmarks">Go to your Bookmarked Quotes.</string>
<string name="back">Go back to Quotes page.</string>

<string name="toogleBookMark">Bookmark</string>
<string name="share_description">Share Quote as an image</string>
<string name="save_quote">Save quote</string>

<string name="download">Download</string>
<string name="update_text">v%s of QuotesApp is available!</string>
<string name="download_url">http://quotes.gouravkhunger.xyz</string>
</resources>

0 comments on commit c528100

Please sign in to comment.