mirror of
https://github.com/etesync/android
synced 2024-12-23 07:08:16 +00:00
Remove unused setting to get caldav past days.
This commit is contained in:
parent
69864ac781
commit
ff5c5b5230
@ -184,20 +184,6 @@ public class AccountSettings {
|
||||
|
||||
// CalDAV settings
|
||||
|
||||
@Nullable
|
||||
public Integer getTimeRangePastDays() {
|
||||
String strDays = accountManager.getUserData(account, KEY_TIME_RANGE_PAST_DAYS);
|
||||
if (strDays != null) {
|
||||
int days = Integer.valueOf(strDays);
|
||||
return days < 0 ? null : days;
|
||||
} else
|
||||
return DEFAULT_TIME_RANGE_PAST_DAYS;
|
||||
}
|
||||
|
||||
public void setTimeRangePastDays(@Nullable Integer days) {
|
||||
accountManager.setUserData(account, KEY_TIME_RANGE_PAST_DAYS, String.valueOf(days == null ? -1 : days));
|
||||
}
|
||||
|
||||
public boolean getManageCalendarColors() {
|
||||
return accountManager.getUserData(account, KEY_MANAGE_CALENDAR_COLORS) == null;
|
||||
}
|
||||
|
@ -229,7 +229,6 @@ public class DebugInfoActivity extends AppCompatActivity implements LoaderManage
|
||||
if (settings.getSyncWifiOnlySSID() != null)
|
||||
report.append(", SSID: ").append(settings.getSyncWifiOnlySSID());
|
||||
report.append("\n [CardDAV] Contact group method: ").append(settings.getGroupMethod())
|
||||
.append("\n [CalDAV] Time range (past days): ").append(settings.getTimeRangePastDays())
|
||||
.append("\n Manage calendar colors: ").append(settings.getManageCalendarColors())
|
||||
.append("\n");
|
||||
} catch(InvalidAccountException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user