Refine code style

This commit is contained in:
Mygod
2019-03-18 21:43:32 +08:00
parent e112b10c55
commit 48024d2dfd
2 changed files with 1 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ abstract class AlertDialogFragment<Arg : Parcelable, Ret : Parcelable> :
companion object {
private const val KEY_ARG = "arg"
private const val KEY_RET = "ret"
fun <T : Parcelable> getRet(data: Intent) = data.extras!!.getParcelable<T>(KEY_RET)!!
fun <T : Parcelable> getRet(data: Intent) = data.getParcelableExtra<T>(KEY_RET)!!
}
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)

View File

@@ -2,7 +2,6 @@ package be.mygod.vpnhotspot.room
import androidx.lifecycle.LiveData
import androidx.room.*
import kotlinx.coroutines.runBlocking
@Entity
data class ClientRecord(@PrimaryKey