delete all messages to reset the db

This commit is contained in:
tibbi 2022-06-26 12:59:44 +02:00
parent f45e5ddf7f
commit 0031c7bb1d
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class MainActivity : SimpleActivity() {
}
// fix a glitch at enabling Release version minifying from 5.12.3
// reset messages in 5.14.3 again, as PhoneNumber is no longer minified
if (!config.wasDbCleared) {
ensureBackgroundThread {
messagesDB.deleteAll()

View File

@ -27,7 +27,7 @@ const val EXPORT_MIME_TYPE = "application/json"
const val EXPORT_FILE_EXT = ".json"
const val IMPORT_SMS = "import_sms"
const val IMPORT_MMS = "import_mms"
const val WAS_DB_CLEARED = "was_db_cleared"
const val WAS_DB_CLEARED = "was_db_cleared_2"
private const val PATH = "com.simplemobiletools.smsmessenger.action."
const val MARK_AS_READ = PATH + "mark_as_read"