Prevent toCompat crash

This commit is contained in:
Mygod
2020-07-31 04:23:43 +08:00
parent 0bb756daeb
commit 1d0422a8ec

View File

@@ -202,6 +202,10 @@ class TetheringFragment : Fragment(), ServiceConnection, Toolbar.OnMenuItemClick
SmartSnackbar.make(eRoot).show() SmartSnackbar.make(eRoot).show()
null null
} }
} catch (e: IllegalArgumentException) {
Timber.w(e)
SmartSnackbar.make(e).show()
null
}?.let { configuration -> }?.let { configuration ->
WifiApDialogFragment().apply { WifiApDialogFragment().apply {
arg(WifiApDialogFragment.Arg(configuration)) arg(WifiApDialogFragment.Arg(configuration))