From 802459f4d8f5d5c0cfce1c72fc36528cb3899122 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 1 Apr 2010 19:14:02 -0700 Subject: [PATCH] Don't show "Where: " in invite text if there's no location Bug: 2563275 Change-Id: I2e978bc46b2ef292d749138500b53d61aefc4672 --- src/com/android/exchange/utility/CalendarUtilities.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/exchange/utility/CalendarUtilities.java b/src/com/android/exchange/utility/CalendarUtilities.java index a458b24d8..dde2115d3 100644 --- a/src/com/android/exchange/utility/CalendarUtilities.java +++ b/src/com/android/exchange/utility/CalendarUtilities.java @@ -43,6 +43,7 @@ import android.provider.Calendar.Attendees; import android.provider.Calendar.Calendars; import android.provider.Calendar.Events; import android.provider.Calendar.EventsEntity; +import android.text.TextUtils; import android.text.format.Time; import android.util.Base64; import android.util.Log; @@ -1177,7 +1178,7 @@ public class CalendarUtilities { String location = null; if (entityValues.containsKey(Events.EVENT_LOCATION)) { location = entityValues.getAsString(Events.EVENT_LOCATION); - if (location != null) { + if (!TextUtils.isEmpty(location)) { sb.append("\n"); sb.append(resources.getString(R.string.meeting_where, location)); }