Code cleanup
This commit is contained in:
parent
ac8ae6dc9f
commit
467009169b
@ -547,7 +547,7 @@ public class FullPlaybackActivity extends PlaybackActivity
|
||||
/**
|
||||
* Decode the given mime type into a more human-friendly description.
|
||||
*/
|
||||
private String decodeMimeType(String mime)
|
||||
private static String decodeMimeType(String mime)
|
||||
{
|
||||
if ("audio/mpeg".equals(mime)) {
|
||||
return "MP3";
|
||||
|
@ -793,7 +793,7 @@ public class LibraryPagerAdapter
|
||||
/**
|
||||
* Creates the row data used by LibraryActivity.
|
||||
*/
|
||||
private Intent createHeaderIntent(View header)
|
||||
private static Intent createHeaderIntent(View header)
|
||||
{
|
||||
int type = (Integer)header.getTag();
|
||||
Intent intent = new Intent();
|
||||
|
@ -171,7 +171,6 @@ public class MediaUtils {
|
||||
String sort = MediaStore.Audio.Playlists.Members.PLAY_ORDER;
|
||||
QueryTask result = new QueryTask(uri, projection, selection, null, sort);
|
||||
result.type = TYPE_PLAYLIST;
|
||||
result.id = id;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class MusicAlphabetIndexer {
|
||||
/**
|
||||
* Returns the latin alphabet.
|
||||
*/
|
||||
public Object[] getSections()
|
||||
public static Object[] getSections()
|
||||
{
|
||||
return ALPHABET;
|
||||
}
|
||||
|
@ -42,11 +42,6 @@ public class QueryTask {
|
||||
*/
|
||||
public int mode;
|
||||
|
||||
/**
|
||||
* Id of the group being queried.
|
||||
*/
|
||||
public long id;
|
||||
|
||||
/**
|
||||
* Type of the group being query. One of MediaUtils.TYPE_*.
|
||||
*/
|
||||
|
@ -120,7 +120,7 @@ public class Song implements Comparable<Song> {
|
||||
{
|
||||
return value.getRowBytes() * value.getHeight();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache instance.
|
||||
|
Loading…
x
Reference in New Issue
Block a user