Fix code styles

This commit is contained in:
Mygod
2018-04-21 13:16:39 -07:00
parent 958b1ec350
commit 4d58c81a30
3 changed files with 4 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
VIEW_TYPE_WIFI -> R.string.tethering_manage_wifi
VIEW_TYPE_WIFI_LEGACY -> R.string.tethering_manage_wifi_legacy
VIEW_TYPE_BLUETOOTH -> R.string.tethering_manage_bluetooth
else -> throw IllegalStateException()
else -> throw IllegalStateException("Unexpected view type")
})
binding.tetherListener = tetherListener
binding.type = tetherType
@@ -155,7 +155,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
override fun onTetheringStarted() = tetherListener.notifyPropertyChanged(BR.enabledTypes)
override fun onTetheringFailed() {
app.handler.post {
Toast.makeText(requireContext(), "Android system has failed to start tethering.", Toast.LENGTH_SHORT).show()
Toast.makeText(requireContext(), R.string.tethering_manage_failed, Toast.LENGTH_SHORT).show()
}
}
}