-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent using archive
table if it doesn't exist
#775
Prevent using archive
table if it doesn't exist
#775
Conversation
This closes #773
try { | ||
contentResolver.update(uri, values, selection, selectionArgs) | ||
} catch (sqliteException: SQLiteException) { | ||
if (sqliteException.message?.contains("no such column: archived") == true && config.useThreadsArchive) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure how reliable is this, we will see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was worried about disabling archive on any kind of SQLiteException
, especially since that option is hidden to the users, so I tried to make it a bit more specific.
app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt
Outdated
Show resolved
Hide resolved
ok thanks, should be good |
This closes #773