Fix settings when build in no video mode

This commit is contained in:
Sylvain Berfini 2014-04-03 15:34:21 +02:00
parent 579c3a89a4
commit 97a39a495a

View file

@ -145,7 +145,7 @@ public class SettingsFragment extends PreferencesListFragment implements EcCalib
hidePreference(R.string.pref_push_notification_key);
}
if (!Version.isVideoCapable()) {
if (!Version.isVideoCapable() || !LinphoneManager.getLcIfManagerNotDestroyedOrNull().isVideoSupported()) {
uncheckAndHidePreference(R.string.pref_video_enable_key);
} else {
if (!AndroidCameraConfiguration.hasFrontCamera()) {