adding a More Apps From Us top menu button

This commit is contained in:
tibbi 2022-11-18 20:06:29 +01:00
parent d66b5589fd
commit 532a45e91b
2 changed files with 7 additions and 0 deletions

View File

@ -238,6 +238,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
findItem(R.id.go_to_today).isVisible = shouldGoToTodayBeVisible && !mIsSearchOpen
findItem(R.id.go_to_date).isVisible = config.storedView != EVENTS_LIST_VIEW
findItem(R.id.refresh_caldav_calendars).isVisible = config.caldavSync
findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations)
}
}
@ -260,6 +261,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
R.id.add_anniversaries -> tryAddAnniversaries()
R.id.import_events -> tryImportEvents()
R.id.export_events -> tryExportEvents()
R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
R.id.settings -> launchSettings()
R.id.about -> launchAbout()
else -> return@setOnMenuItemClickListener false

View File

@ -64,6 +64,11 @@
android:showAsAction="never"
android:title="@string/export_events_to_ics"
app:showAsAction="never" />
<item
android:id="@+id/more_apps_from_us"
android:showAsAction="never"
android:title="@string/more_apps_from_us"
app:showAsAction="never" />
<item
android:id="@+id/settings"
android:icon="@drawable/ic_settings_cog_vector"