Loading app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/export/SettingsExportViewModel.kt +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -146,6 +147,8 @@ class SettingsExportViewModel( showSuccessText() } } catch (e: Exception) { Timber.e(e, "Error writing settings file") updateUiModel { showFailureText() } Loading config/detekt/baseline.xml +0 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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> Loading Loading
app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/export/SettingsExportViewModel.kt +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -146,6 +147,8 @@ class SettingsExportViewModel( showSuccessText() } } catch (e: Exception) { Timber.e(e, "Error writing settings file") updateUiModel { showFailureText() } Loading
config/detekt/baseline.xml +0 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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> Loading