[Android] HistoryFragment: fix (null) items when deleting in HistoryFragment

Edward Wang git at videolan.org
Thu Aug 29 12:32:19 CEST 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug 29 12:21:36 2013 +0200| [fd5ba47149d97389247d27ceacc0c7611ac5fdda] | committer: Edward Wang

HistoryFragment: fix (null) items when deleting in HistoryFragment

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
index 549163b..9491398 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -99,7 +99,7 @@ public class HistoryFragment extends SherlockListFragment {
             return true;
         } else if(id == R.id.history_view_delete) {
             LibVLC.getExistingInstance().getPrimaryMediaList().remove(info.position);
-            mHistoryAdapter.notifyDataSetChanged();
+            mHistoryAdapter.refresh();
             return true;
         }
         return super.onContextItemSelected(item);



More information about the Android mailing list