mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
Fix a crash when initiating call
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
328009f186
commit
ec7aecef46
@ -532,17 +532,20 @@ public class OperationsMenuController extends BaseController {
|
|||||||
}
|
}
|
||||||
bundle.putString(BundleKeys.KEY_CALL_SESSION, callSession);
|
bundle.putString(BundleKeys.KEY_CALL_SESSION, callSession);
|
||||||
|
|
||||||
|
if (getActivity() != null) {
|
||||||
|
|
||||||
Intent callIntent = new Intent(getActivity(), CallActivity.class);
|
Intent callIntent = new Intent(getActivity(), CallActivity.class);
|
||||||
callIntent.putExtras(bundle);
|
callIntent.putExtras(bundle);
|
||||||
|
|
||||||
if (getActivity() != null) {
|
|
||||||
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);
|
||||||
if (imm != null) {
|
if (imm != null) {
|
||||||
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
|
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
startActivity(callIntent);
|
startActivity(callIntent);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OperationsObserver implements Observer {
|
private class OperationsObserver implements Observer {
|
||||||
|
Loading…
Reference in New Issue
Block a user