[Android] LibVLC dialog: dismiss on cancel (to squash)
Thomas Guillem
git at videolan.org
Wed Feb 3 09:32:13 CET 2016
vlc-android | branch: dialog | Thomas Guillem <thomas at gllm.fr> | Wed Feb 3 09:31:30 2016 +0100| [d5402569af02d00e59ee02813c85228ef1fcd0af] | committer: Thomas Guillem
LibVLC dialog: dismiss on cancel (to squash)
> https://code.videolan.org/videolan/vlc-android/commit/d5402569af02d00e59ee02813c85228ef1fcd0af
---
libvlc/src/org/videolan/libvlc/Dialog.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/Dialog.java b/libvlc/src/org/videolan/libvlc/Dialog.java
index e987ffe..7867179 100644
--- a/libvlc/src/org/videolan/libvlc/Dialog.java
+++ b/libvlc/src/org/videolan/libvlc/Dialog.java
@@ -187,10 +187,6 @@ public abstract class Dialog {
mId = id;
}
- private void cancel() {
- mId = 0;
- }
-
/**
*
*/
@@ -451,7 +447,7 @@ public abstract class Dialog {
@Override
public void run() {
if (dialog instanceof IdDialog)
- ((IdDialog) dialog).cancel();
+ ((IdDialog) dialog).dismiss();
if (sCallbacks != null)
sCallbacks.onCanceled(dialog);
}
More information about the Android
mailing list