Code cleanup

This commit is contained in:
Christopher Eby 2012-03-14 16:18:12 -05:00
parent ac8ae6dc9f
commit 467009169b
6 changed files with 4 additions and 10 deletions

View File

@ -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";

View File

@ -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();

View File

@ -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;
}

View File

@ -72,7 +72,7 @@ public class MusicAlphabetIndexer {
/**
* Returns the latin alphabet.
*/
public Object[] getSections()
public static Object[] getSections()
{
return ALPHABET;
}

View File

@ -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_*.
*/

View File

@ -120,7 +120,7 @@ public class Song implements Comparable<Song> {
{
return value.getRowBytes() * value.getHeight();
}
};
}
/**
* The cache instance.