Fixed crashes while in call
This commit is contained in:
parent
e0b19d9345
commit
43090dd342
2 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ public class CallAudioFragment extends Fragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAttach(Activity activity) {
|
public void onAttach(Activity activity) {
|
||||||
|
super.onAttach(activity);
|
||||||
incallActvityInstance = (CallActivity) activity;
|
incallActvityInstance = (CallActivity) activity;
|
||||||
|
|
||||||
if (incallActvityInstance != null) {
|
if (incallActvityInstance != null) {
|
||||||
|
|
|
@ -259,6 +259,7 @@ public class CallVideoFragment extends Fragment implements OnGestureListener, On
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAttach(Activity activity) {
|
public void onAttach(Activity activity) {
|
||||||
|
super.onAttach(activity);
|
||||||
inCallActivity = (CallActivity) activity;
|
inCallActivity = (CallActivity) activity;
|
||||||
if (inCallActivity != null) {
|
if (inCallActivity != null) {
|
||||||
inCallActivity.bindVideoFragment(this);
|
inCallActivity.bindVideoFragment(this);
|
||||||
|
|
Loading…
Reference in a new issue