mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +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
|
||||
* case.
|
||||
*/
|
||||
reason = reason.isEmpty() ? null : reason;
|
||||
reason = "".equals(reason) ? null : reason;
|
||||
delayInformation.setReason(reason);
|
||||
|
||||
return delayInformation;
|
||||
|
|
Loading…
Reference in a new issue