Support for Android Marshmallow's permission system
This commit is contained in:
parent
193f716029
commit
6f3617650a
12 changed files with 305 additions and 176 deletions
|
|
@ -4,7 +4,6 @@ import android.app.PendingIntent;
|
|||
import android.app.Service;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentUris;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
|
|
@ -139,7 +138,7 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
private boolean isServiceInUse;
|
||||
|
||||
private static String getTrackUri(@NonNull Song song) {
|
||||
return ContentUris.withAppendedId(android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, song.id).toString();
|
||||
return MusicUtil.getSongUri(song.id).toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue