mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
modify call screen design for pip mode
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ea8e45e934
commit
d482d8603e
@ -82,6 +82,7 @@ class MagicCallActivity : BaseActivity() {
|
|||||||
RouterTransaction.with(CallController(intent.extras))
|
RouterTransaction.with(CallController(intent.extras))
|
||||||
.pushChangeHandler(HorizontalChangeHandler())
|
.pushChangeHandler(HorizontalChangeHandler())
|
||||||
.popChangeHandler(HorizontalChangeHandler())
|
.popChangeHandler(HorizontalChangeHandler())
|
||||||
|
.tag("CallController")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -147,10 +148,11 @@ class MagicCallActivity : BaseActivity() {
|
|||||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||||
isInPipMode = isInPictureInPictureMode
|
isInPipMode = isInPictureInPictureMode
|
||||||
|
|
||||||
|
var callController = router?.getControllerWithTag("CallController") as CallController
|
||||||
if (isInPictureInPictureMode) {
|
if (isInPictureInPictureMode) {
|
||||||
Log.d(TAG, "Hide the full-screen UI (controls, etc.) while in picture-in-picture mode.")
|
callController.updateUiForPipMode()
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG,"Restore the full-screen UI.")
|
callController.updateUiForNormalMode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2359,6 +2359,19 @@ public class CallController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateUiForPipMode(){
|
||||||
|
callControls.setVisibility(View.GONE);
|
||||||
|
callInfosLinearLayout.setVisibility(View.GONE);
|
||||||
|
selfVideoView.setVisibility(View.GONE);
|
||||||
|
callStateView.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void updateUiForNormalMode(){
|
||||||
|
callControls.setVisibility(View.VISIBLE);
|
||||||
|
callInfosLinearLayout.setVisibility(View.VISIBLE);
|
||||||
|
selfVideoView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
private String getDescriptionForCallType() {
|
private String getDescriptionForCallType() {
|
||||||
String appName = getResources().getString(R.string.nc_app_product_name);
|
String appName = getResources().getString(R.string.nc_app_product_name);
|
||||||
if (isVoiceOnlyCall) {
|
if (isVoiceOnlyCall) {
|
||||||
|
Loading…
Reference in New Issue
Block a user