[Android] Fix directory settings actions with remote control

Geoffrey Métais git at videolan.org
Tue Jan 31 17:51:49 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 31 17:51:01 2017 +0100| [88294a84c5d5a93ab6e10b09b8d8c3cf3174bfa7] | committer: Geoffrey Métais

Fix directory settings actions with remote control

> https://code.videolan.org/videolan/vlc-android/commit/88294a84c5d5a93ab6e10b09b8d8c3cf3174bfa7
---

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index 56a13b5..1d7e40a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -160,6 +160,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<BaseBrowserAdapter.
                 @Override
                 public boolean onLongClick(View v) {
                     binding.browserCheckbox.toggle();
+                    onCheckBoxClick(binding.browserCheckbox);
                     return true;
                 }
             });
@@ -175,7 +176,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<BaseBrowserAdapter.
             fragment.browse(mw, getAdapterPosition(), binding.browserCheckbox.isChecked());
         }
 
-        public void onCheckBoxClick(View v){
+        public void onCheckBoxClick(View v) {
             if (getItem(getAdapterPosition()).getItemType() == TYPE_STORAGE)
                 checkBoxAction(v, ((Storage) getItem(getAdapterPosition())).getUri().getPath());
         }



More information about the Android mailing list