Browse files

Added an explanation for Android 1.6 users

  • Loading branch information...
1 parent 64e9bb8 commit bdb5c62f03c3713cb7c0640a3bd8a559ead978b2 @timsu timsu committed Apr 27, 2011
View
2 astrid/AndroidManifest.xml
@@ -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"> -->
View
2 astrid/res/values/strings-core.xml
@@ -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>
View
5 astrid/src/com/todoroo/astrid/activity/EditPreferences.java
@@ -227,9 +227,10 @@ public void updatePreferences(final Preference preference, Object value) {
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);

0 comments on commit bdb5c62

Please sign in to comment.