Remove raster graphics and probably broken
No clue if the search provider works and I don't care
|
@ -139,30 +139,6 @@ public class AudinautSearchProvider extends ContentProvider {
|
|||
cursor.addRow(new Object[]{artist.getId().hashCode(), artist.getName(), null, "ar-" + artist.getId(), artist.getName(), icon});
|
||||
} else {
|
||||
MusicDirectory.Entry entry = (MusicDirectory.Entry) obj;
|
||||
|
||||
if (entry.isDirectory()) {
|
||||
String icon = RESOURCE_PREFIX + R.drawable.ic_action_album;
|
||||
cursor.addRow(new Object[]{entry.getId().hashCode(), entry.getTitle(), entry.getArtist(), entry.getId(), entry.getTitle(), icon});
|
||||
} else {
|
||||
String icon = RESOURCE_PREFIX + R.drawable.ic_action_song;
|
||||
String id;
|
||||
id = entry.getAlbumId();
|
||||
|
||||
String artistDisplay;
|
||||
if (entry.getArtist() == null) {
|
||||
if (entry.getAlbum() != null) {
|
||||
artistDisplay = entry.getAlbumDisplay();
|
||||
} else {
|
||||
artistDisplay = "";
|
||||
}
|
||||
} else if (entry.getAlbum() != null) {
|
||||
artistDisplay = entry.getArtist() + " - " + entry.getAlbumDisplay();
|
||||
} else {
|
||||
artistDisplay = entry.getArtist();
|
||||
}
|
||||
|
||||
cursor.addRow(new Object[]{entry.getId().hashCode(), entry.getTitle(), artistDisplay, "so-" + id, entry.getTitle(), icon});
|
||||
}
|
||||
}
|
||||
}
|
||||
return cursor;
|
||||
|
|
Before Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 747 B |
Before Width: | Height: | Size: 586 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.3 KiB |
|
@ -25,7 +25,6 @@
|
|||
android:layout_marginBottom="4dp"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:background="@drawable/ic_number_border"
|
||||
android:focusable="false"
|
||||
android:gravity="right|center_vertical"
|
||||
android:paddingRight="10dp"
|
||||
|
|