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
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue