added a Whats new dialog

This commit is contained in:
tibbi 2017-01-06 22:48:20 +01:00
parent 7f6cbbb461
commit edb87a52a6
10 changed files with 55 additions and 0 deletions

View File

@ -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<Release>().apply {
add(Release(25, R.string.release_25))
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
}

View File

@ -26,6 +26,11 @@
<string name="center">Zentriert</string>
<string name="right">Rechtsbündig</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">Ein einfaches Textfeld für Notizen. Komplett ohne Werbung</string>

View File

@ -26,6 +26,11 @@
<string name="center">Centrado</string>
<string name="right">Derecha</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">Un simple campo de texto para añadir breves y rápidas notas, sin anuncios.</string>

View File

@ -26,6 +26,11 @@
<string name="center">Centre</string>
<string name="right">Droite</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">Un champ texte simple pour ajouter des notes rapides, sans publicités.</string>

View File

@ -26,6 +26,11 @@
<string name="center">Középre</string>
<string name="right">Jobbra</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">Egyszerű szövegmező gyors jegyzetírásra, reklámok nélkül.</string>

View File

@ -26,6 +26,11 @@
<string name="center">Center</string>
<string name="right">Right</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">A simple textfield for adding quick notes, without ads.</string>

View File

@ -26,6 +26,11 @@
<string name="center">中央</string>
<string name="right"></string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">簡単なメモを追加するためのシンプルなテキストフィールド。広告はありません。</string>

View File

@ -26,6 +26,11 @@
<string name="center">Centro</string>
<string name="right">Direita</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">Um campo de texto para adicionar as suas notas.</string>

View File

@ -26,6 +26,11 @@
<string name="center">Center</string>
<string name="right">Right</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">A simple textfield for adding quick notes, without ads.</string>

View File

@ -26,6 +26,11 @@
<string name="center">Center</string>
<string name="right">Right</string>
<!-- Release notes -->
<string name="release_25">
Added more color customization options\n
Your settings have been cleared, please reset them</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- Short description has to have less than 80 chars -->
<string name="app_short_description">A simple textfield for adding quick notes, without ads.</string>