Bug fixes, UI flow improvements.

Bug: 3173067 - Auto timezone checkbox out of sync with dependency
Bug: 3175116 - Crash when launching Manage Accounts screen
Move "Add Account" to a menu item from a button at the bottom.
This commit is contained in:
Amith Yamasani
2010-11-08 14:28:05 -08:00
parent 38f8a1d0fa
commit ea07165ef2
4 changed files with 34 additions and 36 deletions

View File

@@ -86,6 +86,9 @@ public class DateTimeSettings extends SettingsPreferenceFragment
mAutoTimePref = (CheckBoxPreference) findPreference(KEY_AUTO_TIME);
mAutoTimePref.setChecked(autoTimeEnabled);
mAutoTimeZonePref = (CheckBoxPreference) findPreference(KEY_AUTO_TIME_ZONE);
mAutoTimeZonePref.setChecked(autoTimeZoneEnabled);
mTimePref = findPreference("time");
mTime24Pref = findPreference("24 hour");
mTimeZone = findPreference("timezone");
@@ -313,7 +316,7 @@ public class DateTimeSettings extends SettingsPreferenceFragment
try {
return Settings.System.getInt(getContentResolver(), name) > 0;
} catch (SettingNotFoundException snfe) {
return true;
return false;
}
}