[Android] Prevent IllegalStateException
Geoffrey Métais
git at videolan.org
Thu Apr 28 11:17:14 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 28 10:31:02 2016 +0200| [dddf710b48ac20c85e3c53161ec3df50baf8ad9b] | committer: Geoffrey Métais
Prevent IllegalStateException
> https://code.videolan.org/videolan/vlc-android/commit/dddf710b48ac20c85e3c53161ec3df50baf8ad9b
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index bf52f6a..061c7a2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -537,6 +537,8 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
}
public void showAdvancedOptions(View v) {
+ if (!isResumed())
+ return;
FragmentManager fm = getActivity().getSupportFragmentManager();
AdvOptionsDialog advOptionsDialog = new AdvOptionsDialog();
Bundle args = new Bundle();
More information about the Android
mailing list