Skip to content

Commit

Permalink
Add Google Play icon
Browse files Browse the repository at this point in the history
Taken from Font Awesome.
  • Loading branch information
Slion committed Apr 4, 2024
1 parent 2f2fadc commit b231dc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ abstract class RedirectSponsorshipSettingsFragment : AbstractSettingsFragment()
* Add a preference that opens up our play store page.
*/
private fun addPreferenceLinkToGooglePlayStore() {
// We invite user to installer our Google Play Store release
// We invite user to install our Google Play Store release
val pref = Preference(requireContext())
pref.isSingleLineTitle = false
pref.title = resources.getString(R.string.pref_title_no_sponsorship)
pref.summary = resources.getString(R.string.pref_summary_no_sponsorship)
pref.icon = ResourcesCompat.getDrawable(resources, R.drawable.ic_play_arrow, activity?.theme)
pref.icon = ResourcesCompat.getDrawable(resources, R.drawable.ic_google_play, activity?.theme)
pref.onPreferenceClickListener = Preference.OnPreferenceClickListener {
// Open up Fulguris play store page
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=net.slions.fulguris.full.playstore")))
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/drawable/ic_google_play.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:tint="?attr/colorControlNormal"
android:height="24dp" android:viewportHeight="512" android:viewportWidth="512" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M325.3,234.3L104.6,13l280.8,161.2 -60.1,60.1zM47,0C34,6.8 25.3,19.2 25.3,35.3v441.3c0,16.1 8.7,28.5 21.7,35.3l256.6,-256L47,0zM472.2,225.6l-58.9,-34.1 -65.7,64.5 65.7,64.5 60.1,-34.1c18,-14.3 18,-46.5 -1.2,-60.8zM104.6,499l280.8,-161.2 -60.1,-60.1L104.6,499z"/>

</vector>

0 comments on commit b231dc3

Please sign in to comment.