From edb87a52a64398d042a6b557cc9126c934843b30 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 6 Jan 2017 22:48:20 +0100 Subject: [PATCH] added a Whats new dialog --- .../simplemobiletools/notes/activities/MainActivity.kt | 10 ++++++++++ app/src/main/res/values-de/strings.xml | 5 +++++ app/src/main/res/values-es/strings.xml | 5 +++++ app/src/main/res/values-fr/strings.xml | 5 +++++ app/src/main/res/values-hu/strings.xml | 5 +++++ app/src/main/res/values-it/strings.xml | 5 +++++ app/src/main/res/values-ja/strings.xml | 5 +++++ app/src/main/res/values-pt-rPT/strings.xml | 5 +++++ app/src/main/res/values-sv/strings.xml | 5 +++++ app/src/main/res/values/strings.xml | 5 +++++ 10 files changed, 55 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt index d1e002c3..2af42449 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt @@ -9,6 +9,7 @@ import android.view.Menu import android.view.MenuItem import android.view.View import com.simplemobiletools.commons.dialogs.ConfirmationDialog +import com.simplemobiletools.commons.extensions.checkWhatsNew import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.commons.extensions.value @@ -16,6 +17,7 @@ import com.simplemobiletools.commons.helpers.LICENSE_AMBILWARNA import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN import com.simplemobiletools.commons.helpers.LICENSE_RTL import com.simplemobiletools.commons.helpers.LICENSE_STETHO +import com.simplemobiletools.commons.models.Release import com.simplemobiletools.notes.BuildConfig import com.simplemobiletools.notes.R import com.simplemobiletools.notes.adapters.NotesPagerAdapter @@ -44,6 +46,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener { pager_title_strip.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize()) pager_title_strip.layoutParams.height = (pager_title_strip.height + resources.getDimension(R.dimen.activity_margin) * 2).toInt() + checkWhatsNewDialog() } fun initViewPager() { @@ -202,4 +205,11 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener { mCurrentNote = mNotes[position] config.currentNoteId = mCurrentNote.id } + + private fun checkWhatsNewDialog() { + arrayListOf().apply { + add(Release(25, R.string.release_25)) + checkWhatsNew(this, BuildConfig.VERSION_CODE) + } + } } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f59c0373..4af1df60 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -26,6 +26,11 @@ Zentriert Rechtsbündig + + + Added more color customization options\n + Your settings have been cleared, please reset them + Ein einfaches Textfeld für Notizen. Komplett ohne Werbung diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 4c5b78ea..0f2e9397 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -26,6 +26,11 @@ Centrado Derecha + + + Added more color customization options\n + Your settings have been cleared, please reset them + Un simple campo de texto para añadir breves y rápidas notas, sin anuncios. diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 2398c4a7..b100a2ad 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -26,6 +26,11 @@ Centre Droite + + + Added more color customization options\n + Your settings have been cleared, please reset them + Un champ texte simple pour ajouter des notes rapides, sans publicités. diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index c2afd215..040436fd 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -26,6 +26,11 @@ Középre Jobbra + + + Added more color customization options\n + Your settings have been cleared, please reset them + Egyszerű szövegmező gyors jegyzetírásra, reklámok nélkül. diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 05535583..fadddf22 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -26,6 +26,11 @@ Center Right + + + Added more color customization options\n + Your settings have been cleared, please reset them + A simple textfield for adding quick notes, without ads. diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 5447fca2..5d7081c2 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -26,6 +26,11 @@ 中央 + + + Added more color customization options\n + Your settings have been cleared, please reset them + 簡単なメモを追加するためのシンプルなテキストフィールド。広告はありません。 diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 43ab885c..dfd954c2 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -26,6 +26,11 @@ Centro Direita + + + Added more color customization options\n + Your settings have been cleared, please reset them + Um campo de texto para adicionar as suas notas. diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index b084e21c..2fe137ef 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -26,6 +26,11 @@ Center Right + + + Added more color customization options\n + Your settings have been cleared, please reset them + A simple textfield for adding quick notes, without ads. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index df66c43f..8d88774c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -26,6 +26,11 @@ Center Right + + + Added more color customization options\n + Your settings have been cleared, please reset them + A simple textfield for adding quick notes, without ads.