Fix bluetooth sharing and slightly improved the tag editors appearance.

This commit is contained in:
Karim Abou Zeid 2015-06-01 22:16:32 +02:00
commit ab02195ed0
5 changed files with 16 additions and 12 deletions

View file

@ -47,7 +47,7 @@ public class MusicUtil {
public static Intent createShareSongFileIntent(final Context context, int songId) {
return new Intent()
.setAction(Intent.ACTION_SEND)
.putExtra(Intent.EXTRA_STREAM, Uri.parse(SongFilePathLoader.getSongFilePath(context, songId)))
.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + SongFilePathLoader.getSongFilePath(context, songId)))
.setType("audio/*");
}

View file

@ -201,7 +201,7 @@ public final class PreferenceUtils {
public final String getArtistAlbumSortOrder() {
return mPreferences.getString(ARTIST_ALBUM_SORT_ORDER,
SortOrder.ArtistAlbumSortOrder.ALBUM_YEAR);
SortOrder.ArtistAlbumSortOrder.ALBUM_YEAR_ASC);
}
// public void setAlbumSortOrder(final String value) {

View file

@ -151,6 +151,10 @@ public final class SortOrder {
/* Artist album sort order year */
String ALBUM_YEAR = MediaStore.Audio.Artists.Albums.FIRST_YEAR
+ " DESC";
/* Artist album sort order year */
String ALBUM_YEAR_ASC = MediaStore.Audio.Artists.Albums.FIRST_YEAR
+ " ASC";
}
}