File tree Expand file tree Collapse file tree
kotlin/com/simplemobiletools/clock/activities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ class MainActivity : SimpleActivity() {
125125 main_toolbar.setOnMenuItemClickListener { menuItem ->
126126 when (menuItem.itemId) {
127127 R .id.sort -> getViewPagerAdapter()?.showAlarmSortDialog()
128+ R .id.more_apps_from_us -> launchMoreAppsFromUsIntent()
128129 R .id.settings -> launchSettings()
129130 R .id.about -> launchAbout()
130131 else -> return @setOnMenuItemClickListener false
@@ -136,6 +137,7 @@ class MainActivity : SimpleActivity() {
136137 private fun refreshMenuItems () {
137138 main_toolbar.menu.apply {
138139 findItem(R .id.sort).isVisible = view_pager.currentItem == TAB_ALARM
140+ findItem(R .id.more_apps_from_us).isVisible = ! resources.getBoolean(R .bool.hide_google_relations)
139141 }
140142 }
141143
Original file line number Diff line number Diff line change 66 android : icon =" @drawable/ic_sort_vector"
77 android : title =" @string/sort_by"
88 app : showAsAction =" ifRoom" />
9+ <item
10+ android : id =" @+id/more_apps_from_us"
11+ android : title =" @string/more_apps_from_us"
12+ app : showAsAction =" never" />
913 <item
1014 android : id =" @+id/settings"
1115 android : icon =" @drawable/ic_settings_cog_vector"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ buildscript {
99 }
1010
1111 dependencies {
12- classpath ' com.android.tools.build:gradle:7.3.0 '
12+ classpath ' com.android.tools.build:gradle:7.3.1 '
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414
1515 // NOTE: Do not place your application dependencies here; they belong
You can’t perform that action at this time.
0 commit comments