From 9e975ba713e5f4ff607b14089e06a01a5c655b59 Mon Sep 17 00:00:00 2001 From: Tanuj M Date: Thu, 10 Dec 2020 22:34:18 +0530 Subject: [PATCH] Changes in settings bottom option --- app/src/main/java/app/olauncher/data/Constants.kt | 1 + app/src/main/java/app/olauncher/ui/SettingsFragment.kt | 4 ++-- app/src/main/res/layout/fragment_settings.xml | 4 ++-- app/src/main/res/values/strings.xml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/app/olauncher/data/Constants.kt b/app/src/main/java/app/olauncher/data/Constants.kt index 9b6f21e9..8fcbdc74 100644 --- a/app/src/main/java/app/olauncher/data/Constants.kt +++ b/app/src/main/java/app/olauncher/data/Constants.kt @@ -28,6 +28,7 @@ object Constants { const val URL_ABOUT_OLAUNCHER = "https://www.notion.so/About-Olauncher-4843e398b05a455bb521b0665b26fbcd" const val URL_OLAUNCHER_PRIVACY = "https://www.notion.so/Olauncher-Privacy-Policy-dd6ac5101ddd4b3da9d27057889d44ab" const val URL_OLAUNCHER_PLAY_STORE = "https://play.google.com/store/apps/details?id=app.olauncher" + const val URL_TWITTER_TANUJ = "https://twitter.com/tanujnotes" const val WALLPAPER_WORKER_NAME = "WALLPAPER_WORKER_NAME" const val URL_DARK_WALLPAPERS = "https://gist.githubusercontent.com/tanujnotes/481074b27ad4dc2607326c97439bb3ac/raw" diff --git a/app/src/main/java/app/olauncher/ui/SettingsFragment.kt b/app/src/main/java/app/olauncher/ui/SettingsFragment.kt index 0b97fd7d..5dbff3f4 100644 --- a/app/src/main/java/app/olauncher/ui/SettingsFragment.kt +++ b/app/src/main/java/app/olauncher/ui/SettingsFragment.kt @@ -99,7 +99,7 @@ class SettingsFragment : Fragment(), View.OnClickListener, View.OnLongClickListe R.id.about -> openUrl(Constants.URL_ABOUT_OLAUNCHER) R.id.share -> shareApp() R.id.rate -> rateApp() - R.id.email -> sendEmailIntent() + R.id.tweet -> openUrl(Constants.URL_TWITTER_TANUJ) R.id.privacy -> openUrl(Constants.URL_OLAUNCHER_PRIVACY) } } @@ -137,7 +137,7 @@ class SettingsFragment : Fragment(), View.OnClickListener, View.OnLongClickListe about.setOnClickListener(this) share.setOnClickListener(this) rate.setOnClickListener(this) - email.setOnClickListener(this) + tweet.setOnClickListener(this) privacy.setOnClickListener(this) maxApps0.setOnClickListener(this) diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index ba6ad319..094a2f53 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -472,12 +472,12 @@ android:layout_weight="1" /> + android:text="@string/tweet" /> Privacy Share Rate - Twitter + Tweet Email Github Donate