Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11d004dc authored by cketti's avatar cketti
Browse files

Log exception when exporting settings to a file fails

parent 35dddef4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ import androidx.lifecycle.viewModelScope
import com.fsck.k9.Preferences
import com.fsck.k9.helper.SingleLiveEvent
import com.fsck.k9.helper.measureRealtimeMillis
import com.fsck.k9.logging.Timber
import com.fsck.k9.preferences.SettingsExporter
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
@@ -146,6 +147,8 @@ class SettingsExportViewModel(
                    showSuccessText()
                }
            } catch (e: Exception) {
                Timber.e(e, "Error writing settings file")

                updateUiModel {
                    showFailureText()
                }
+0 −2
Original line number Diff line number Diff line
@@ -638,7 +638,6 @@
    <ID>SwallowedException:RealImapStore.kt$RealImapStore$e: CharacterCodingException</ID>
    <ID>SwallowedException:RealImapStore.kt$RealImapStore$ioe: IOException</ID>
    <ID>SwallowedException:SaveMessageOperations.kt$SaveMessageOperations$e: IOException</ID>
    <ID>SwallowedException:SettingsExportViewModel.kt$SettingsExportViewModel$e: Exception</ID>
    <ID>SwallowedException:SettingsExporter.kt$SettingsExporter$e: InvalidSettingValueException</ID>
    <ID>SwallowedException:SettingsListFragment.kt$SettingsListFragment$e: ActivityNotFoundException</ID>
    <ID>SwallowedException:SmtpTransport.kt$SmtpTransport$e: NegativeSmtpReplyException</ID>
@@ -802,7 +801,6 @@
    <ID>UnusedPrivateMember:HttpUriParser.kt$HttpUriParser$i</ID>
    <ID>UnusedPrivateMember:MessageListLoader.kt$MessageListLoader$account: Account</ID>
    <ID>UnusedPrivateMember:MessageViewFragment.kt$MessageViewFragment$requestKey: String</ID>
    <ID>UnusedPrivateMember:NewSetupUiHack.kt$NewSetupUiHack$builder: SettingsListBuilder</ID>
    <ID>UseCheckOrError:OutboxStateRepository.kt$OutboxStateRepository$throw IllegalStateException("No outbox_state entry for message with id $messageId")</ID>
    <ID>UseCheckOrError:ThemeExtensions.kt$throw IllegalStateException("Couldn't resolve attribute ($attrId)")</ID>
    <ID>UseRequire:MimeParameterEncoder.kt$MimeParameterEncoder$throw IllegalArgumentException("Unsupported character: $c")</ID>