Added an explanation for Android 1.6 users

pull/14/head 3.7.3.1
Tim Su 13 years ago
parent 64e9bb854e
commit bdb5c62f03

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid"
android:versionName="3.7.3.1"
android:versionCode="176">
android:versionCode="177">
<!-- widgets, alarms, and services will break if Astrid is installed on SD card -->
<!-- android:installLocation="internalOnly"> -->

@ -347,6 +347,8 @@
<string name="EPr_transparent_desc_disabled">Desktop wallpaper will not be shown</string>
<!-- Preference: Transparent Description (enabled) -->
<string name="EPr_transparent_desc_enabled">Desktop wallpaper will be shown</string>
<!-- Preference: Transparent Description (android 1.6) -->
<string name="EPr_transparent_desc_unsupported">Setting requires Android 2.0+</string>
<!-- Preference Category: Defaults Title -->
<string name="EPr_defaults_header">New Task Defaults</string>

@ -227,9 +227,10 @@ public class EditPreferences extends TodorooPreferences {
Flags.set(Flags.REFRESH);
}
} else if (r.getString(R.string.p_transparent).equals(preference.getKey())) {
if(AndroidUtilities.getSdkVersion() < 5)
if(AndroidUtilities.getSdkVersion() < 5) {
preference.setEnabled(false);
if (value != null && !(Boolean)value)
preference.setSummary(R.string.EPr_transparent_desc_unsupported);
} else if (value != null && !(Boolean)value)
preference.setSummary(R.string.EPr_transparent_desc_disabled);
else
preference.setSummary(R.string.EPr_transparent_desc_enabled);

Loading…
Cancel
Save