Refine code style
This commit is contained in:
@@ -18,7 +18,7 @@ abstract class AlertDialogFragment<Arg : Parcelable, Ret : Parcelable> :
|
|||||||
companion object {
|
companion object {
|
||||||
private const val KEY_ARG = "arg"
|
private const val KEY_ARG = "arg"
|
||||||
private const val KEY_RET = "ret"
|
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)
|
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package be.mygod.vpnhotspot.room
|
|||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.room.*
|
import androidx.room.*
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
data class ClientRecord(@PrimaryKey
|
data class ClientRecord(@PrimaryKey
|
||||||
|
|||||||
Reference in New Issue
Block a user