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
This commit is contained in:
Florian Schmaus 2013-02-04 11:04:00 +00:00 committed by flow
parent bfefbdb777
commit ca78c5be49
1 changed files with 1 additions and 1 deletions

View File

@ -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;