mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 12:11:59 +00:00
fix NPE when call is joined by notification
add ability to have PIP mode for calls joined by notification Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
51b86b5a88
commit
0d1e0af9d1
@ -82,7 +82,7 @@ class MagicCallActivity : BaseActivity() {
|
||||
RouterTransaction.with(CallController(intent.extras))
|
||||
.pushChangeHandler(HorizontalChangeHandler())
|
||||
.popChangeHandler(HorizontalChangeHandler())
|
||||
.tag("CallController")
|
||||
.tag(CallController.TAG)
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -153,7 +153,7 @@ class MagicCallActivity : BaseActivity() {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
isInPipMode = isInPictureInPictureMode
|
||||
|
||||
val callController = router?.getControllerWithTag("CallController") as CallController
|
||||
val callController = router?.getControllerWithTag(CallController.TAG) as CallController
|
||||
if (isInPictureInPictureMode) {
|
||||
callController.updateUiForPipMode()
|
||||
} else {
|
||||
|
@ -161,7 +161,7 @@ import pub.devrel.easypermissions.AfterPermissionGranted;
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class CallController extends BaseController {
|
||||
|
||||
private static final String TAG = "CallController";
|
||||
public static final String TAG = "CallController";
|
||||
|
||||
private static final String[] PERMISSIONS_CALL = {
|
||||
android.Manifest.permission.CAMERA,
|
||||
|
@ -200,7 +200,8 @@ public class CallNotificationController extends BaseController {
|
||||
|
||||
getRouter().replaceTopController(RouterTransaction.with(new CallController(originalBundle))
|
||||
.popChangeHandler(new HorizontalChangeHandler())
|
||||
.pushChangeHandler(new HorizontalChangeHandler()));
|
||||
.pushChangeHandler(new HorizontalChangeHandler())
|
||||
.tag(CallController.TAG));
|
||||
}
|
||||
|
||||
private void checkIfAnyParticipantsRemainInRoom() {
|
||||
|
Loading…
Reference in New Issue
Block a user