Remove pre Android 4.x leftovers
This commit is contained in:
parent
2a633893b6
commit
c0b125d5a5
@ -90,28 +90,4 @@ public class CompatHoneycomb {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Call {@link android.provider.MediaStore.Audio.Genres#getContentUriForAudioId(String,int)}
|
|
||||||
* on the external volume.
|
|
||||||
*/
|
|
||||||
public static Uri getContentUriForAudioId(int id)
|
|
||||||
{
|
|
||||||
return MediaStore.Audio.Genres.getContentUriForAudioId("external", id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call {@link KeyEvent#hasNoModifiers()}.
|
|
||||||
*/
|
|
||||||
public static boolean hasNoModifiers(KeyEvent event)
|
|
||||||
{
|
|
||||||
return event.hasNoModifiers();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call {@link KeyEvent#hasModifiers(int)}.
|
|
||||||
*/
|
|
||||||
public static boolean hasModifiers(KeyEvent event, int modifiers)
|
|
||||||
{
|
|
||||||
return event.hasModifiers(modifiers);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,7 @@ public class MediaUtils {
|
|||||||
public static long queryGenreForSong(ContentResolver resolver, long id)
|
public static long queryGenreForSong(ContentResolver resolver, long id)
|
||||||
{
|
{
|
||||||
String[] projection = { "_id" };
|
String[] projection = { "_id" };
|
||||||
Uri uri = CompatHoneycomb.getContentUriForAudioId((int)id);
|
Uri uri = MediaStore.Audio.Genres.getContentUriForAudioId("external", (int)id);
|
||||||
Cursor cursor = queryResolver(resolver, uri, projection, null, null, null);
|
Cursor cursor = queryResolver(resolver, uri, projection, null, null, null);
|
||||||
|
|
||||||
if (cursor != null) {
|
if (cursor != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user