[Android] Annotate use of VIBRATE permission
Geoffrey Métais
git at videolan.org
Tue Oct 27 18:43:23 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 27 18:35:11 2015 +0100| [9d4d04c94a364bf7773da676db5e69e8e841c43c] | committer: Geoffrey Métais
Annotate use of VIBRATE permission
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9d4d04c94a364bf7773da676db5e69e8e841c43c
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 4 ++++
1 file changed, 4 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 bf1ffdb..1acd287 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -20,6 +20,7 @@
package org.videolan.vlc.gui.audio;
+import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
@@ -27,6 +28,7 @@ import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
+import android.support.annotation.RequiresPermission;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
@@ -707,6 +709,8 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
int possibleSeek;
boolean vibrated;
+
+ @RequiresPermission(Manifest.permission.VIBRATE)
Runnable seekRunnable = new Runnable() {
@Override
public void run() {
More information about the Android
mailing list