Set default camera as front cam if available
This commit is contained in:
parent
d702454204
commit
afe863a235
2 changed files with 3 additions and 3 deletions
|
@ -410,8 +410,8 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
}
|
||||
}
|
||||
|
||||
public void resetCameraFromPreferences() {
|
||||
boolean useFrontCam = getPrefBoolean(R.string.pref_video_use_front_camera_key, false);
|
||||
private void resetCameraFromPreferences() {
|
||||
boolean useFrontCam = getPrefBoolean(R.string.pref_video_use_front_camera_key, mR.getBoolean(R.bool.pref_video_use_front_camera_default));
|
||||
|
||||
int camId = 0;
|
||||
AndroidCamera[] cameras = AndroidCameraConfiguration.retrieveCameras();
|
||||
|
@ -582,6 +582,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
if (routeToBT) {
|
||||
startBluetooth();
|
||||
}
|
||||
resetCameraFromPreferences();
|
||||
}
|
||||
catch (Exception e) {
|
||||
Log.e(e, "Cannot start linphone");
|
||||
|
|
|
@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
import org.linphone.LinphoneManager;
|
||||
import org.linphone.R;
|
||||
import org.linphone.mediastream.Log;
|
||||
import org.linphone.mediastream.video.capture.hwconf.Hacks;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
|
|
Loading…
Reference in a new issue