[Android] Do not dismiss dialog once paused

Geoffrey Métais git at videolan.org
Fri Jun 24 16:09:06 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 24 16:06:46 2016 +0200| [90500e42626ed5fd0845c4a1acde7d8c15cae8a1] | committer: Geoffrey Métais

Do not dismiss dialog once paused

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.java
index a58c28a..180c7a7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.java
@@ -76,6 +76,7 @@ public abstract class VlcDialog<T extends Dialog, B extends android.databinding.
     }
 
     public void onCancel(View v) {
-        dismiss();
+        if (isResumed())
+            dismiss();
     }
 }



More information about the Android mailing list