Suppress more CancellationException

This commit is contained in:
Mygod
2021-04-16 15:21:17 -04:00
parent c26da4e5ba
commit 7cdae63085

View File

@@ -118,7 +118,7 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() {
it.execute(Dump(logFile.absolutePath))
}
} catch (e: Exception) {
Timber.w(e)
if (e !is CancellationException) Timber.w(e)
PrintWriter(FileOutputStream(logFile, true)).use { e.printStackTrace(it) }
}
context.startActivity(Intent.createChooser(Intent(Intent.ACTION_SEND)