[Android] Dismiss adv options on pause
Geoffrey Métais
git at videolan.org
Thu Apr 28 11:47:12 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 28 11:41:30 2016 +0200| [84024fa837c51b0e22c8115262163a445e4d1b00] | committer: Geoffrey Métais
Dismiss adv options on pause
Prevents IndexOutOfBoundsException
> https://code.videolan.org/videolan/vlc-android/commit/84024fa837c51b0e22c8115262163a445e4d1b00
---
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index d37f384..d052432 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -135,6 +135,12 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
}
@Override
+ public void onPause() {
+ super.onPause();
+ dismiss();
+ }
+
+ @Override
public void onAttach(Activity activity) {
super.onAttach(activity);
if (mMode == MODE_VIDEO) {
More information about the Android
mailing list