[Android] MainActivity: oops

Edward Wang git at videolan.org
Tue Oct 2 02:01:06 CEST 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Oct  1 20:01:02 2012 -0400| [96094751515dcf1bfbaec3ff8041d39c08f44b84] | committer: Edward Wang

MainActivity: oops

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index e5f3567..7bcf2c8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -286,7 +286,7 @@ public class MainActivity extends SherlockFragmentActivity {
         boolean found = false;
         if(current != null) {
             for(int i = 0; i < SidebarAdapter.entries.size(); i++) {
-                if(SidebarAdapter.entries.get(i).id == current.getTag()) {
+                if(SidebarAdapter.entries.get(i).id.equals(current.getTag())) {
                     found = true;
                     break;
                 }



More information about the Android mailing list