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:
parent
bfefbdb777
commit
ca78c5be49
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue