[Android] BrowserActivity: fix bug where action randomly fails to trigger

Edward Wang git at videolan.org
Tue Apr 16 04:58:10 CEST 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Apr 15 22:56:23 2013 -0400| [460c869186288c0415183c62dcb13ad14b1027f8] | committer: Edward Wang

BrowserActivity: fix bug where action randomly fails to trigger

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
index cb0e806..33e4043 100644
--- a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
@@ -175,7 +175,7 @@ public class BrowserActivity extends ListActivity {
     @Override
     protected void onListItemClick(ListView l, View v, int position, long id) {
         File file = mAdapter.getItem(position);
-        if(file.getPath() == BrowserAdapter.ADD_ITEM_PATH) {
+        if(file.getPath().equals(BrowserAdapter.ADD_ITEM_PATH)) {
             AlertDialog.Builder b = new AlertDialog.Builder(this);
             final EditText input = new EditText(this);
             input.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);



More information about the Android mailing list