Skip to content

Commit a87f33f

Browse files
committed
Reset database on app update (again)
1 parent e255d72 commit a87f33f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ fun Context.getFileSizeFromUri(uri: Uri): Long {
988988

989989
// fix a glitch at enabling Release version minifying from 5.12.3
990990
// reset messages in 5.14.3 again, as PhoneNumber is no longer minified
991+
// reset messages in 5.19.1 again, as SimpleContact is no longer minified
991992
fun Context.clearAllMessagesIfNeeded() {
992993
if (!config.wasDbCleared) {
993994
ensureBackgroundThread {

app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const val XML_MIME_TYPE = "text/xml"
3434
const val TXT_MIME_TYPE = "text/plain"
3535
const val IMPORT_SMS = "import_sms"
3636
const val IMPORT_MMS = "import_mms"
37-
const val WAS_DB_CLEARED = "was_db_cleared_2"
37+
const val WAS_DB_CLEARED = "was_db_cleared_3"
3838
const val EXTRA_VCARD_URI = "vcard"
3939
const val SCHEDULED_MESSAGE_ID = "scheduled_message_id"
4040
const val SOFT_KEYBOARD_HEIGHT = "soft_keyboard_height"

0 commit comments

Comments
 (0)