Don't show "Where: " in invite text if there's no location
Bug: 2563275
Change-Id: I2e978bc46b2ef292d749138500b53d61aefc4672
diff --git a/src/com/android/exchange/utility/CalendarUtilities.java b/src/com/android/exchange/utility/CalendarUtilities.java
index a458b24..dde2115 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.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 @@
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));
}