Fix white settings when using light theme

This commit is contained in:
Sylvain Berfini 2015-07-10 14:17:55 +02:00
parent 0fa37940c0
commit 7bb7acce16

View file

@ -319,7 +319,7 @@ public class SettingsFragment extends PreferencesListFragment {
// For each, add menus to configure it // For each, add menus to configure it
String username = mPrefs.getAccountUsername(accountId); String username = mPrefs.getAccountUsername(accountId);
String domain = mPrefs.getAccountDomain(accountId); String domain = mPrefs.getAccountDomain(accountId);
LedPreference account = new LedPreference(LinphoneService.instance()); LedPreference account = new LedPreference(getActivity());
if (username == null) { if (username == null) {
account.setTitle(getString(R.string.pref_sipaccount)); account.setTitle(getString(R.string.pref_sipaccount));
@ -625,7 +625,7 @@ public class SettingsFragment extends PreferencesListFragment {
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull(); LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
for (final PayloadType pt : lc.getVideoCodecs()) { for (final PayloadType pt : lc.getVideoCodecs()) {
CheckBoxPreference codec = new CheckBoxPreference(LinphoneService.instance()); CheckBoxPreference codec = new CheckBoxPreference(getActivity());
codec.setTitle(pt.getMime()); codec.setTitle(pt.getMime());
if (!pt.getMime().equals("VP8")) { if (!pt.getMime().equals("VP8")) {