[Android] LibVLC Dialog: expose dismiss for every dialog type (to squash)

Thomas Guillem git at videolan.org
Wed Feb 3 17:11:33 CET 2016


vlc-android | branch: dialog | Thomas Guillem <thomas at gllm.fr> | Wed Feb  3 17:11:07 2016 +0100| [bf7b5e8b942f1dc6728ee0e6305ab5e87898d505] | committer: Thomas Guillem

LibVLC Dialog: expose dismiss for every dialog type (to squash)

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

 libvlc/src/org/videolan/libvlc/Dialog.java | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/libvlc/src/org/videolan/libvlc/Dialog.java b/libvlc/src/org/videolan/libvlc/Dialog.java
index afc0cf6..330587a 100644
--- a/libvlc/src/org/videolan/libvlc/Dialog.java
+++ b/libvlc/src/org/videolan/libvlc/Dialog.java
@@ -154,6 +154,13 @@ public abstract class Dialog {
     }
 
     /**
+     * Dismiss the dialog
+     */
+    @MainThread
+    public void dismiss() {
+    }
+
+    /**
      * Register callbacks in order to handle VLC dialogs
      *
      * @param libVLC valid LibVLC object
@@ -179,7 +186,7 @@ public abstract class Dialog {
         }
     }
 
-    public static abstract class IdDialog extends Dialog {
+    protected static abstract class IdDialog extends Dialog {
         protected long mId;
 
         protected IdDialog(long id, int type, String title, String text) {
@@ -187,9 +194,6 @@ public abstract class Dialog {
             mId = id;
         }
 
-        /**
-         *
-         */
         @MainThread
         public void dismiss() {
             if (mId != 0) {



More information about the Android mailing list