[Android] VideoPlayer: use the @TargetApi on the method, not the main class
Jean-Baptiste Kempf
git at videolan.org
Fri Jul 4 00:59:32 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jul 4 00:58:56 2014 +0200| [db4ffea0bf0cc5ca5d49562f746cd44b8e8dfa64] | committer: Jean-Baptiste Kempf
VideoPlayer: use the @TargetApi on the method, not the main class
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=db4ffea0bf0cc5ca5d49562f746cd44b8e8dfa64
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 8869350..70295b6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -110,7 +110,6 @@ import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
- at TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public class VideoPlayerActivity extends Activity implements IVideoPlayer {
public final static String TAG = "VLC/VideoPlayerActivity";
@@ -483,6 +482,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
AudioServiceController.getInstance().unbindAudioService(this);
}
+ @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
@Override
protected void onStop() {
super.onStop();
@@ -1000,6 +1000,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
finish();
}
+ @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
private void changeSurfaceSize() {
int sw;
int sh;
More information about the Android
mailing list