From ca78c5be49615d14ae18a366b62362be209b8ba0 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 4 Feb 2013 11:04:00 +0000 Subject: [PATCH] String.isEmpty() only comes with Android API level 9 (or higher). Switching back to old isEmptyString check, making Smack Android compatible again git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13432 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/provider/DelayInformationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java b/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java index 77bf6114f..43ad8ab38 100644 --- a/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java +++ b/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java @@ -65,7 +65,7 @@ public class DelayInformationProvider implements PacketExtensionProvider { * DelayInformation API specifies that null should be returned in that * case. */ - reason = reason.isEmpty() ? null : reason; + reason = "".equals(reason) ? null : reason; delayInformation.setReason(reason); return delayInformation;