diff options
author | Sara Ting <sarating@google.com> | 2012-05-31 14:59:57 -0700 |
---|---|---|
committer | Sara Ting <sarating@google.com> | 2012-06-04 10:29:48 -0700 |
commit | fac2d1594f7ecae8e50dc7790ce67de0c9b70d22 (patch) | |
tree | ad138852c3ff4821c737a31e768cae660e2c964e /src/com/android/calendar/AllInOneActivity.java | |
parent | 9b05ed077ddf7ac6fe8786611f9a036c6ebade7f (diff) | |
download | android_packages_apps_Calendar-fac2d1594f7ecae8e50dc7790ce67de0c9b70d22.tar.gz android_packages_apps_Calendar-fac2d1594f7ecae8e50dc7790ce67de0c9b70d22.tar.bz2 android_packages_apps_Calendar-fac2d1594f7ecae8e50dc7790ce67de0c9b70d22.zip |
Make notifications code ICS compatible.
Change-Id: Ie91183c8fd8cb48d5f5acc40335e6e123d34d56f
Diffstat (limited to 'src/com/android/calendar/AllInOneActivity.java')
-rw-r--r-- | src/com/android/calendar/AllInOneActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/calendar/AllInOneActivity.java b/src/com/android/calendar/AllInOneActivity.java index 47d8db93..5094a17a 100644 --- a/src/com/android/calendar/AllInOneActivity.java +++ b/src/com/android/calendar/AllInOneActivity.java @@ -758,13 +758,13 @@ public class AllInOneActivity extends Activity implements EventHandler, } MenuItem menuItem = menu.findItem(R.id.action_today); - if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { - menuItem.setIcon(R.drawable.ic_menu_today_no_date_holo_light); - } else { + if (Utils.isJellybeanOrLater()) { // replace the default top layer drawable of the today icon with a // custom drawable that shows the day of the month of today LayerDrawable icon = (LayerDrawable) menuItem.getIcon(); Utils.setTodayIcon(icon, this, mTimeZone); + } else { + menuItem.setIcon(R.drawable.ic_menu_today_no_date_holo_light); } return true; } |