mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Fix a crash when starting call
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b4bf672062
commit
7622ffc090
@ -556,14 +556,16 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(RoomOverall roomOverall) {
|
public void onNext(RoomOverall roomOverall) {
|
||||||
overridePushHandler(new NoOpControllerChangeHandler());
|
if (getActivity() != null) {
|
||||||
overridePopHandler(new NoOpControllerChangeHandler());
|
overridePushHandler(new NoOpControllerChangeHandler());
|
||||||
Intent callIntent = new Intent(getActivity(), CallActivity.class);
|
overridePopHandler(new NoOpControllerChangeHandler());
|
||||||
Bundle bundle = new Bundle();
|
Intent callIntent = new Intent(getActivity(), CallActivity.class);
|
||||||
bundle.putString(BundleKeys.KEY_ROOM_TOKEN, roomOverall.getOcs().getData().getToken());
|
Bundle bundle = new Bundle();
|
||||||
bundle.putParcelable(BundleKeys.KEY_USER_ENTITY, Parcels.wrap(userEntity));
|
bundle.putString(BundleKeys.KEY_ROOM_TOKEN, roomOverall.getOcs().getData().getToken());
|
||||||
callIntent.putExtras(bundle);
|
bundle.putParcelable(BundleKeys.KEY_USER_ENTITY, Parcels.wrap(userEntity));
|
||||||
startActivity(callIntent);
|
callIntent.putExtras(bundle);
|
||||||
|
startActivity(callIntent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user