Refine code style
This commit is contained in:
@@ -67,7 +67,7 @@ class ClientsFragment : Fragment(), MainScope by MainScope.Supervisor() {
|
||||
override fun onClick(dialog: DialogInterface?, which: Int) {
|
||||
when (which) {
|
||||
DialogInterface.BUTTON_POSITIVE -> {
|
||||
val newNickname = this@NicknameDialogFragment.dialog!!.findViewById<EditText>(android.R.id.edit).text
|
||||
val newNickname = this.dialog!!.findViewById<EditText>(android.R.id.edit).text
|
||||
MacLookup.abort(arg.mac)
|
||||
GlobalScope.launch(Dispatchers.Unconfined) {
|
||||
AppDatabase.instance.clientRecordDao.upsert(arg.mac) { nickname = newNickname }
|
||||
|
||||
Reference in New Issue
Block a user