diff --git a/app/src/main/java/app/olauncher/data/Constants.kt b/app/src/main/java/app/olauncher/data/Constants.kt index 00596b54..10509a98 100644 --- a/app/src/main/java/app/olauncher/data/Constants.kt +++ b/app/src/main/java/app/olauncher/data/Constants.kt @@ -93,6 +93,7 @@ object Constants { const val URL_DOUBLE_TAP = "https://tanujnotes.notion.site/Double-tap-to-lock-Olauncher-0f7fb103ec1f47d7a90cdfdcd7fb86ef" const val URL_OLAUNCHER_GITHUB = "https://www.github.com/tanujnotes/Olauncher" const val URL_OLAUNCHER_PLAY_STORE = "https://play.google.com/store/apps/details?id=app.olauncher" + const val URL_OLAUNCHER_PRO = "https://play.google.com/store/apps/details?id=app.prolauncher" const val URL_PLAY_STORE_DEV = "https://play.google.com/store/apps/dev?id=7198807840081074933" const val URL_TWITTER_TANUJ = "https://twitter.com/tanujnotes" const val URL_WALLPAPERS = "https://gist.githubusercontent.com/tanujnotes/85e2d0343ace71e76615ac346fbff82b/raw" diff --git a/app/src/main/java/app/olauncher/ui/SettingsFragment.kt b/app/src/main/java/app/olauncher/ui/SettingsFragment.kt index db9ac107..531e2db3 100644 --- a/app/src/main/java/app/olauncher/ui/SettingsFragment.kt +++ b/app/src/main/java/app/olauncher/ui/SettingsFragment.kt @@ -95,6 +95,7 @@ class SettingsFragment : Fragment(), View.OnClickListener, View.OnLongClickListe when (view.id) { R.id.olauncherHiddenApps -> showHiddenApps() + R.id.olauncherPro -> requireContext().openUrl(Constants.URL_OLAUNCHER_PRO) R.id.digitalWellbeing -> viewModel.showDialog.postValue(Constants.Dialog.DIGITAL_WELLBEING) R.id.appInfo -> openAppInfo(requireContext(), Process.myUserHandle(), BuildConfig.APPLICATION_ID) R.id.setLauncher -> viewModel.resetLauncherLiveData.call() @@ -198,6 +199,7 @@ class SettingsFragment : Fragment(), View.OnClickListener, View.OnLongClickListe binding.appInfo.setOnClickListener(this) binding.setLauncher.setOnClickListener(this) binding.aboutOlauncher.setOnClickListener(this) + binding.olauncherPro.setOnClickListener(this) binding.digitalWellbeing.setOnClickListener(this) binding.autoShowKeyboard.setOnClickListener(this) binding.toggleLock.setOnClickListener(this) diff --git a/app/src/main/res/layout-land/fragment_settings.xml b/app/src/main/res/layout-land/fragment_settings.xml index 6d33708f..0f513133 100644 --- a/app/src/main/res/layout-land/fragment_settings.xml +++ b/app/src/main/res/layout-land/fragment_settings.xml @@ -60,36 +60,46 @@ + + + android:text="@string/olauncher_pro" /> + android:text="@string/digital_wellbeing" + android:visibility="gone" + tools:visibility="visible" /> diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index d80617c2..f4d41425 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -80,6 +80,16 @@ android:layout_marginBottom="8dp" android:text="@string/about_olauncher" /> + + + android:text="@string/digital_minimalism" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7b49cdec..38435b2c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,7 +2,8 @@ Olauncher Github lock layout description to be used a unique id to lock screen - Olauncher Pro + Olauncher Pro + Digital Minimalism %s, %d%% 0 1