This file contains hidden or 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
<activity android:name="VideoActivity" | |
android:supportsPictureInPicture=“true" | |
android:autoRemoveFromRecents=“true” | |
android:configChanges= | |
"screenSize|smallestScreenSize|screenLayout|orientation" | |
... |
This file contains hidden or 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
override fun onUserLeaveHint() { | |
if (iWantToBeInPipModeNow()) { | |
enterPictureInPictureMode() | |
} | |
} |
This file contains hidden or 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
activity?.enterPictureInPictureMode() |
This file contains hidden or 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
<activity android:name="VideoActivity" | |
android:supportsPictureInPicture="true" | |
android:configChanges= | |
"screenSize|smallestScreenSize|screenLayout|orientation" | |
... |
This file contains hidden or 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
abstract class BaseBuilder<T> { | |
abstract fun buildInternal(): T | |
} | |
fun <T, R: BaseBuilder<T>> R.build(block: R.() -> Unit): T { | |
block.invoke(this) | |
return this.buildInternal() | |
} |
This file contains hidden or 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
apply plugin: "jacoco" | |
jacoco { | |
toolVersion = deps.test.jacocoVersion | |
} | |
tasks.withType(Test) { | |
jacoco.includeNoLocationClasses = true | |
} |
NewerOlder