From 1866bf1f8f888f1828daef9b23be78a6abe78b47 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Oct 2016 18:36:53 +0200 Subject: [PATCH] add a menu button for setting yearly view --- .../com/simplemobiletools/calendar/activities/MainActivity.kt | 3 +++ app/src/main/res/menu/menu.xml | 4 ++++ app/src/main/res/values-de/strings.xml | 2 ++ app/src/main/res/values-it/strings.xml | 2 ++ app/src/main/res/values-ja/strings.xml | 2 ++ app/src/main/res/values-pt-rPT/strings.xml | 2 ++ app/src/main/res/values-sv/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 8 files changed, 19 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index a7c725b67..8a86bcc29 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -43,6 +43,9 @@ class MainActivity : SimpleActivity(), NavigationListener { override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { + R.id.yearly_view -> { + return true + } R.id.settings -> { startActivity(Intent(applicationContext, SettingsActivity::class.java)) return true diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 815619cdb..f1bf614ba 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -1,6 +1,10 @@ + Rückgängig OK Abbrechen + Monthly view + Yearly view Termin diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index ff4e6517a..31f9179b4 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -4,6 +4,8 @@ Annulla OK Cancel + Monthly view + Yearly view Evento diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 339ecc97c..720bc4d6c 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -4,6 +4,8 @@ 元に戻す OK Cancel + Monthly view + Yearly view イベント diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 7b4cfc090..93f735a0c 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -4,6 +4,8 @@ Desfazer OK Cancelar + Monthly view + Yearly view Evento diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 3ce2f54d9..3f3cbd97c 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -4,6 +4,8 @@ Ångra OK Cancel + Monthly view + Yearly view Händelse diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8f49d34b5..288b03cab 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,6 +4,8 @@ Undo OK Cancel + Monthly view + Yearly view Event