Fix incall crash for tablets
This commit is contained in:
parent
7899a0f811
commit
ceff51c34b
1 changed files with 4 additions and 4 deletions
|
@ -252,15 +252,15 @@ public class InCallActivity extends FragmentActivity implements
|
|||
if (LinphoneManager.getInstance().isBluetoothScoConnected) {
|
||||
try {
|
||||
routeLayout.setVisibility(View.VISIBLE);
|
||||
} catch (NullPointerException npe) {}
|
||||
audioRoute.setVisibility(View.VISIBLE);
|
||||
speaker.setVisibility(View.GONE);
|
||||
} catch (NullPointerException npe) {}
|
||||
} else {
|
||||
try {
|
||||
routeLayout.setVisibility(View.GONE);
|
||||
} catch (NullPointerException npe) {}
|
||||
audioRoute.setVisibility(View.GONE);
|
||||
speaker.setVisibility(View.VISIBLE);
|
||||
} catch (NullPointerException npe) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue