|
|
@ -18,8 +18,6 @@ import java.io.File;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.inject.Inject;
|
|
|
|
import javax.inject.Inject;
|
|
|
|
|
|
|
|
|
|
|
|
import static com.todoroo.andlib.utility.AndroidUtilities.preFroyo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class MiscellaneousPreferences extends InjectingPreferenceActivity {
|
|
|
|
public class MiscellaneousPreferences extends InjectingPreferenceActivity {
|
|
|
|
|
|
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(MiscellaneousPreferences.class);
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(MiscellaneousPreferences.class);
|
|
|
@ -106,9 +104,6 @@ public class MiscellaneousPreferences extends InjectingPreferenceActivity {
|
|
|
|
|
|
|
|
|
|
|
|
private void initializeCalendarReminderPreference() {
|
|
|
|
private void initializeCalendarReminderPreference() {
|
|
|
|
Preference calendarReminderPreference = findPreference(getString(R.string.p_calendar_reminders));
|
|
|
|
Preference calendarReminderPreference = findPreference(getString(R.string.p_calendar_reminders));
|
|
|
|
if (preFroyo()) {
|
|
|
|
|
|
|
|
getPreferenceScreen().removePreference(calendarReminderPreference);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
calendarReminderPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
|
|
|
calendarReminderPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
|
|
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
|
|
@ -119,7 +114,6 @@ public class MiscellaneousPreferences extends InjectingPreferenceActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initializeVoiceReminderPreference() {
|
|
|
|
private void initializeVoiceReminderPreference() {
|
|
|
|
findPreference(getString(R.string.p_voiceRemindersEnabled)).setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
|
|
|
findPreference(getString(R.string.p_voiceRemindersEnabled)).setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
|
|
|