Simplify code.
This commit is contained in:
parent
c993daab44
commit
ca6fe31ff8
1 changed files with 4 additions and 8 deletions
|
|
@ -260,18 +260,14 @@ class ElementCallActivity :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
override fun setPipParams() {
|
override fun setPipParams() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
setPictureInPictureParams(getPictureInPictureParams())
|
||||||
setPictureInPictureParams(getPictureInPictureParams())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
override fun enterPipMode(): Boolean {
|
override fun enterPipMode(): Boolean {
|
||||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
return enterPictureInPictureMode(getPictureInPictureParams())
|
||||||
enterPictureInPictureMode(getPictureInPictureParams())
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue