This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestObserver<T> : Observer<T> { | |
private val values = mutableListOf<T>() | |
fun getValues(): List<T> = values | |
override fun onChanged(value: T) { | |
values.add(value) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.x.y.authentication | |
import android.os.Bundle | |
import android.view.View | |
import androidx.fragment.app.viewModels | |
import com.x.y.R | |
import com.x.y.common.BaseFragment | |
import com.x.y.common.extensions.observeNonNull | |
import com.x.y.common.viewBinding | |
import com.x.y.databinding.FragmentAuthenticationBinding |