[Android] HistoryFragment: fix (null) items when deleting in HistoryFragment
Edward Wang
git at videolan.org
Thu Aug 29 12:32:25 CEST 2013
vlc-ports/android | branch: 0.1.x-bugfix | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug 29 12:21:36 2013 +0200| [31c1af04a2c6436e953f80b2b75f41f56f4f1f62] | committer: Edward Wang
HistoryFragment: fix (null) items when deleting in HistoryFragment
(cherry picked from commit fd5ba47149d97389247d27ceacc0c7611ac5fdda)
Signed-off-by: Edward Wang <edward.c.wang at compdigitec.com>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=31c1af04a2c6436e953f80b2b75f41f56f4f1f62
---
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 fec29a4..1b94430 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().removeIndex(info.position);
- mHistoryAdapter.notifyDataSetChanged();
+ mHistoryAdapter.refresh();
return true;
}
return super.onContextItemSelected(item);
More information about the Android
mailing list