[Android] SidebarAdapter: kill a TODO

Edward Wang git at videolan.org
Wed Jul 3 05:38:18 CEST 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Tue Jul  2 23:31:01 2013 -0400| [774ee9952b509bf8b6fb6b23e0581af65b401406] | committer: Edward Wang

SidebarAdapter: kill a TODO

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

 vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
index 56a9eb2..060d757 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * SidebarAdapter.java
  *****************************************************************************
- * Copyright © 2012 VLC authors and VideoLAN
- * Copyright © 2012 Edward Wang
+ * Copyright © 2012-2013 VLC authors and VideoLAN
+ * Copyright © 2012-2013 Edward Wang
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -92,9 +92,8 @@ public class SidebarAdapter extends BaseAdapter {
     }
 
     @Override
-    public long getItemId(int arg0) {
-        // TODO Auto-generated method stub
-        return 0;
+    public long getItemId(int position) {
+        return (long)position; // The SidebarEntry list is unique
     }
 
     @Override



More information about the Android mailing list