1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-19 10:32:05 +01:00

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

View file

@ -65,7 +65,7 @@ public class DelayInformationProvider implements PacketExtensionProvider {
* DelayInformation API specifies that null should be returned in that * DelayInformation API specifies that null should be returned in that
* case. * case.
*/ */
reason = reason.isEmpty() ? null : reason; reason = "".equals(reason) ? null : reason;
delayInformation.setReason(reason); delayInformation.setReason(reason);
return delayInformation; return delayInformation;