diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/clock/activities/MainActivity.kt index 2a40519..8fb7284 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/MainActivity.kt @@ -125,6 +125,7 @@ class MainActivity : SimpleActivity() { main_toolbar.setOnMenuItemClickListener { menuItem -> when (menuItem.itemId) { R.id.sort -> getViewPagerAdapter()?.showAlarmSortDialog() + R.id.more_apps_from_us -> launchMoreAppsFromUsIntent() R.id.settings -> launchSettings() R.id.about -> launchAbout() else -> return@setOnMenuItemClickListener false @@ -136,6 +137,7 @@ class MainActivity : SimpleActivity() { private fun refreshMenuItems() { main_toolbar.menu.apply { findItem(R.id.sort).isVisible = view_pager.currentItem == TAB_ALARM + findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations) } } diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index cad6537..272f9b2 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -6,6 +6,10 @@ android:icon="@drawable/ic_sort_vector" android:title="@string/sort_by" app:showAsAction="ifRoom" /> +