diff options
author | Michael Chan <mchan@android.com> | 2010-01-27 18:03:25 -0800 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2010-02-03 11:35:26 -0800 |
commit | ad36a3c3cde7a2ec6d3a35d2529d46f03bd8d59d (patch) | |
tree | 5cd6ef148b147de38fbba38c5501340d0c6364d4 /src/com/android/calendar/Utils.java | |
parent | 33d09a18f5176f6384aa5ce199485c8fb6a33c3a (diff) | |
download | android_packages_apps_Calendar-ad36a3c3cde7a2ec6d3a35d2529d46f03bd8d59d.tar.gz android_packages_apps_Calendar-ad36a3c3cde7a2ec6d3a35d2529d46f03bd8d59d.tar.bz2 android_packages_apps_Calendar-ad36a3c3cde7a2ec6d3a35d2529d46f03bd8d59d.zip |
First step in unbundling Calendar
Change-Id: I12cf0e4141c069514dec78344592532848983abc
Diffstat (limited to 'src/com/android/calendar/Utils.java')
-rw-r--r-- | src/com/android/calendar/Utils.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index f8c69f66..019cecb3 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -97,9 +97,8 @@ public class Utils { * @param time the time to format * @return the string containing the weekday and the date */ - public static String formatMonthYear(Time time) { - Resources res = Resources.getSystem(); - return time.format(res.getString(com.android.internal.R.string.month_year)); + public static String formatMonthYear(Context context, Time time) { + return time.format(context.getResources().getString(R.string.month_year)); } // TODO: replace this with the correct i18n way to do this |