mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Use a more backward compatible os version check, since the "current"
best practice is incompatible with 1.5
This commit is contained in:
parent
e0d6a55d06
commit
7db384fc08
@ -891,7 +891,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
||||
// SINGLE_COLUMN layout was broken on Android < 2.2, so we
|
||||
// administratively disable it
|
||||
if (
|
||||
( Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO)
|
||||
( Integer.parseInt(Build.VERSION.SDK) > Build.VERSION_CODES.ECLAIR)
|
||||
&& K9.mobileOptimizedLayout())
|
||||
{
|
||||
webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
|
||||
|
@ -228,7 +228,7 @@ public class Prefs extends K9PreferenceActivity
|
||||
mZoomControlsEnabled.setChecked(K9.zoomControlsEnabled());
|
||||
|
||||
mMobileOptimizedLayout = (CheckBoxPreference) findPreference(PREFERENCE_MESSAGEVIEW_MOBILE_LAYOUT);
|
||||
if ( Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO)
|
||||
if (Integer.parseInt(Build.VERSION.SDK) <= Build.VERSION_CODES.ECLAIR)
|
||||
{
|
||||
mMobileOptimizedLayout.setEnabled(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user