Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Fix bug where instances didn't regen. Do not merge
Browse files Browse the repository at this point in the history
Instances table wasn't regenerating when the user switched to auto.

Change-Id: I43a40699f6fa99c3c90f3005ce464d50ef56b45a
  • Loading branch information
RoboErikG committed Sep 10, 2010
1 parent 68040cf commit 830f982
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/android/providers/calendar/CalendarProvider2.java
Expand Up @@ -17,6 +17,8 @@

package com.android.providers.calendar;

import com.google.common.annotations.VisibleForTesting;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.OnAccountsUpdateListener;
Expand Down Expand Up @@ -55,7 +57,6 @@
import android.util.Log;
import android.util.TimeFormatException;
import android.util.TimeUtils;
import com.google.common.annotations.VisibleForTesting;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -2866,6 +2867,9 @@ protected int updateInTransaction(Uri uri, ContentValues values, String selectio
else if (value.equals(CalendarCache.TIMEZONE_TYPE_AUTO)) {
String localTimezone = TimeZone.getDefault().getID();
mCalendarCache.writeTimezoneInstances(localTimezone);
if (!timezoneInstancesBeforeUpdate.equals(localTimezone)) {
regenerateInstancesTable();
}
}
}
}
Expand Down

0 comments on commit 830f982

Please sign in to comment.