[Android] AudioService: Fix wrong version check.

Ludovic Fauvet git at videolan.org
Thu Nov 1 13:30:20 CET 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct 30 16:56:06 2012 +0100| [ad38b0a1a4bcabdcdb5f567c42f0e5495be1168a] | committer: Ludovic Fauvet

AudioService: Fix wrong version check.

API 8 is Froyo, not Gingerbread.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ad38b0a1a4bcabdcdb5f567c42f0e5495be1168a
---

 vlc-android/src/org/videolan/vlc/AudioService.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 622608d..45afc34 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -191,7 +191,7 @@ public class AudioService extends Service {
 
     @TargetApi(8)
     private void changeAudioFocus(boolean gain) {
-        if(!Util.isGingerbreadOrLater()) // NOP if not supported
+        if(!Util.isFroyoOrLater()) // NOP if not supported
             return;
 
         audioFocusListener = new OnAudioFocusChangeListener() {



More information about the Android mailing list