Fix permission

This commit is contained in:
vvb2060 2021-01-25 03:44:54 +08:00 committed by topjohnwu
parent e8d4e492d6
commit 8f08ae59ac

View File

@ -119,8 +119,9 @@ class HomeViewModel(
else -> SnackbarEvent(R.string.no_connection).publish() else -> SnackbarEvent(R.string.no_connection).publish()
} }
fun onMagiskPressed() = fun onMagiskPressed() = withExternalRW {
HomeFragmentDirections.actionHomeFragmentToInstallFragment().publish() HomeFragmentDirections.actionHomeFragmentToInstallFragment().publish()
}
fun onSafetyNetPressed() = fun onSafetyNetPressed() =
HomeFragmentDirections.actionHomeFragmentToSafetynetFragment().publish() HomeFragmentDirections.actionHomeFragmentToSafetynetFragment().publish()