Force speaker since dialer is shown for tablets
This commit is contained in:
parent
4c99a6f202
commit
129b1e7207
2 changed files with 6 additions and 1 deletions
|
@ -148,6 +148,11 @@ public class DialerFragment extends Fragment {
|
|||
LinphoneActivity.instance().updateDialerFragment(this);
|
||||
}
|
||||
|
||||
// Force speaker for tablets
|
||||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||
if (lc != null)
|
||||
lc.enableSpeaker(getResources().getBoolean(R.bool.isTablet));
|
||||
|
||||
if (shouldEmptyAddressField) {
|
||||
mAddress.setText("");
|
||||
} else {
|
||||
|
|
|
@ -124,7 +124,7 @@ public class InCallActivity extends FragmentActivity implements
|
|||
isVideoEnabled = getIntent().getExtras() != null && getIntent().getExtras().getBoolean("VideoEnabled");
|
||||
isTransferAllowed = getApplicationContext().getResources().getBoolean(R.bool.allow_transfers);
|
||||
showCallListInVideo = getApplicationContext().getResources().getBoolean(R.bool.show_current_calls_above_video);
|
||||
isSpeakerEnabled = getResources().getBoolean(R.bool.isTablet); // Speaker default value to true if tablet, else false
|
||||
isSpeakerEnabled = LinphoneManager.getLcIfManagerNotDestroyedOrNull().isSpeakerEnabled();
|
||||
|
||||
isAnimationDisabled = getApplicationContext().getResources().getBoolean(R.bool.disable_animations) || !LinphonePreferences.instance().areAnimationsEnabled();
|
||||
cameraNumber = AndroidCameraConfiguration.retrieveCameras().length;
|
||||
|
|
Loading…
Reference in a new issue