Exporting failed error removed if user cancelled his action on the file picker screen

This commit is contained in:
merkost
2023-07-02 22:45:03 +10:00
parent 6fc028db33
commit 931a2f63d1

View File

@@ -33,8 +33,6 @@ class SettingsActivity : SimpleActivity() {
if (uri != null) {
toast(R.string.importing)
importCallHistory(uri)
} else {
toast(R.string.importing_failed)
}
}
@@ -44,8 +42,6 @@ class SettingsActivity : SimpleActivity() {
RecentsHelper(this).getRecentCalls(false, Int.MAX_VALUE) { recents ->
exportCallHistory(recents, uri)
}
} else {
toast(R.string.exporting_failed)
}
}