Skip to content

Commit b63051f

Browse files
committed
Suppress no root exception
1 parent 8343c83 commit b63051f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/be/mygod/reactmap/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class MainActivity : FragmentActivity() {
173173
}
174174
startActivity(intent)
175175
} catch (e: Exception) {
176-
Timber.w(e)
176+
if (e is IOException) Timber.d(e) else Timber.w(e)
177177
withContext(Dispatchers.Main) {
178178
Snackbar.make(findViewById(android.R.id.content), e.readableMessage, Snackbar.LENGTH_LONG).show()
179179
}

0 commit comments

Comments
 (0)