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
... | |
<com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView ... /> | |
<!-- Translucent gradient overlay background to make chat more visible --> | |
<View | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:background="@drawable/bg_chat" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintTop_toTopOf="@+id/messagesList" /> |
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 MyUnitTest { | |
@get:Rule | |
val coroutineRule = TestCoroutineRule() | |
@Test | |
fun `my test executed on TestCoroutineDispatcher`() = coroutineRule.runBlockingTest { | |
assertEquals(42, answer()) | |
} | |
} |
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 LifecycleAwareLazy<T>(lifecycle: Lifecycle, private val initializer: () -> T) : | |
Lazy<T>, GenericLifecycleObserver { | |
init { | |
lifecycle.addObserver(this) | |
} | |
private object UNINITIALIZED_VALUE | |
private var _value: Any? = UNINITIALIZED_VALUE |
NewerOlder