[Android] Do not dismiss dialog once paused
Geoffrey Métais
git at videolan.org
Fri Jun 24 16:09:55 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 24 16:06:46 2016 +0200| [4a82dcd844695aa039a2d9c7ea8d7454f16ab8f9] | committer: Geoffrey Métais
Do not dismiss dialog once paused
> https://code.videolan.org/videolan/vlc-android/commit/4a82dcd844695aa039a2d9c7ea8d7454f16ab8f9
---
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