Fix settings when build in no video mode

This commit is contained in:
Sylvain Berfini 2014-04-03 15:34:21 +02:00
parent d9bf5cc212
commit f409ba1ab1

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()) {