show the changes in Whats New

This commit is contained in:
tibbi 2022-02-26 19:29:43 +01:00
parent 93fd90c6f4
commit a993ccf004
2 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.FAQItem
import com.simplemobiletools.commons.models.Release
import com.simplemobiletools.smsmessenger.BuildConfig
import com.simplemobiletools.smsmessenger.R
import com.simplemobiletools.smsmessenger.adapters.ConversationsAdapter
@ -184,6 +185,7 @@ class MainActivity : SimpleActivity() {
}
private fun initMessenger() {
checkWhatsNewDialog()
storeStateVariables()
getCachedConversations()
@ -451,4 +453,11 @@ class MainActivity : SimpleActivity() {
fun refreshMessages(event: Events.RefreshMessages) {
initMessenger()
}
private fun checkWhatsNewDialog() {
arrayListOf<Release>().apply {
add(Release(47, R.string.release_47))
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
}

View File

@ -9,4 +9,9 @@
<string name="mms_file_size_limit_1mb">1MB</string>
<string name="mms_file_size_limit_2mb">2MB</string>
<string name="release_47">
Disabled delivery reports by default\n
Avoid sending long messages as MMS
</string>
</resources>