Make root unavailable more informative
This commit is contained in:
@@ -27,9 +27,9 @@ sealed class SmartSnackbar {
|
||||
} else SnackbarWrapper(Snackbar.make(holder, text ?: null.toString(), Snackbar.LENGTH_LONG))
|
||||
}
|
||||
fun make(e: Throwable) = make(when (e) {
|
||||
is NoShellException -> app.getText(R.string.root_unavailable)
|
||||
else -> e.localizedMessage
|
||||
})
|
||||
is NoShellException -> e.cause ?: e
|
||||
else -> e
|
||||
}.localizedMessage)
|
||||
}
|
||||
|
||||
class Register(lifecycle: Lifecycle, private val view: View) : LifecycleObserver {
|
||||
|
||||
@@ -121,7 +121,6 @@
|
||||
<item quantity="other">%d 个接口</item>
|
||||
</plurals>
|
||||
|
||||
<string name="root_unavailable">似乎没有 root</string>
|
||||
<string name="failure_reason_unknown">未知 #%d</string>
|
||||
<string name="exception_interface_not_found">错误:未找到下游接口</string>
|
||||
<string name="noisy_su_failure">发生异常,详情请查看调试信息。</string>
|
||||
|
||||
@@ -132,7 +132,6 @@
|
||||
<item quantity="other">%d interfaces</item>
|
||||
</plurals>
|
||||
|
||||
<string name="root_unavailable">Root unavailable</string>
|
||||
<string name="failure_reason_unknown">unknown #%d</string>
|
||||
<string name="exception_interface_not_found">Fatal: Downstream interface not found</string>
|
||||
<string name="noisy_su_failure">Something went wrong, please check the debug information.</string>
|
||||
|
||||
Reference in New Issue
Block a user