[Android] Clear adv options dialog on refresh
Geoffrey Métais
git at videolan.org
Fri Apr 1 12:04:05 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 31 13:25:49 2016 +0200| [48dfe09df70b3c3f1443d040464511099254feee] | committer: Geoffrey Métais
Clear adv options dialog on refresh
> https://code.videolan.org/videolan/vlc-android/commit/48dfe09df70b3c3f1443d040464511099254feee
---
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index a6621df..0c65e5c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -473,6 +473,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
@Override
public void onConnected(PlaybackService service) {
+ mAdapter.clear();
mService = service;
int large_items = 0;
boolean tvUi = VLCApplication.showTvUi();
@@ -588,6 +589,10 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
return mList.size();
}
+ public void clear() {
+ mList.clear();
+ }
+
@Override
public int getItemViewType(int position) {
return mList.get(position).id;
More information about the Android
mailing list