mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-12 04:25:08 -05:00
Hide "condensed layout" setting instead of disabling it
This commit is contained in:
parent
e15409bafa
commit
5f49195a0a
@ -17,6 +17,7 @@ import android.preference.CheckBoxPreference;
|
|||||||
import android.preference.ListPreference;
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.Preference.OnPreferenceClickListener;
|
import android.preference.Preference.OnPreferenceClickListener;
|
||||||
|
import android.preference.PreferenceCategory;
|
||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
@ -283,8 +284,8 @@ public class Prefs extends K9PreferenceActivity {
|
|||||||
|
|
||||||
mMobileOptimizedLayout = (CheckBoxPreference) findPreference(PREFERENCE_MESSAGEVIEW_MOBILE_LAYOUT);
|
mMobileOptimizedLayout = (CheckBoxPreference) findPreference(PREFERENCE_MESSAGEVIEW_MOBILE_LAYOUT);
|
||||||
if (!MessageWebView.isSingleColumnLayoutSupported()) {
|
if (!MessageWebView.isSingleColumnLayoutSupported()) {
|
||||||
mMobileOptimizedLayout.setEnabled(false);
|
PreferenceCategory prefs = (PreferenceCategory) findPreference("messageview_preferences");
|
||||||
mMobileOptimizedLayout.setChecked(false);
|
prefs.removePreference(mMobileOptimizedLayout);
|
||||||
} else {
|
} else {
|
||||||
mMobileOptimizedLayout.setChecked(K9.mobileOptimizedLayout());
|
mMobileOptimizedLayout.setChecked(K9.mobileOptimizedLayout());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user