[Android] no isEmpty() before Android 9...

Geoffrey Métais git at videolan.org
Mon Nov 17 19:01:33 CET 2014


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 17 18:55:58 2014 +0100| [afd8cf0b6b90abcb391749bcfe29a10383ec5708] | committer: Jean-Baptiste Kempf

no isEmpty() before Android 9...

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=afd8cf0b6b90abcb391749bcfe29a10383ec5708
---

 vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index 0706f6e..3c1ed56 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -351,7 +351,7 @@ public class DirectoryAdapter extends BaseAdapter {
                         R.plurals.mediafiles_quantity, mediaFileCount,
                         mediaFileCount);
         }
-        if (holderText.isEmpty())
+        if ("".equals(holderText))
             holder.text.setVisibility(View.INVISIBLE);
         else {
             holder.text.setVisibility(View.VISIBLE);



More information about the Android mailing list