Skip to content

Commit

Permalink
Fix project and bump to 3.3
Browse files Browse the repository at this point in the history
Signed-off-by: enricocid <enrico2588@gmail.com>
  • Loading branch information
enricocid committed Nov 14, 2018
1 parent 009dd59 commit b8817b1
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![API](https://img.shields.io/badge/API-21%2B-blue.svg?style=flat-square)](https://android-arsenal.com/api?level=21) [![Donate on PayPal](https://img.shields.io/badge/PayPal-Donate%20Now-brightgreen.svg)](https://paypal.me/enricocid)

###### Very slim music player with low memory footprint!
###### Current version: (92) 3.2.1
###### Current version: (93) 3.3
###### Material Design Icon by Julian Javier Gomez, Axinen Design (https://plus.google.com/u/0/+AxinenDesign)


Expand All @@ -15,7 +15,7 @@

# Screenshots

![Screenshots](https://raw.githubusercontent.com/enricocid/Music-Player-GO/master/screenshots_v3-2.png)
![Screenshots](https://raw.githubusercontent.com/enricocid/Music-Player-GO/master/screenshots_v3-3.png)


# Download
Expand All @@ -33,7 +33,7 @@ You can also get the app from **IzzyOnDroid** repository! To add this repo to Yo
### Unifield UI, the way I'd like it to be:

- Colorful, simple and 'unified' UI: no need to navigate between screens;
- Awesome typeface: OpenSans
- Awesome typeface: Raleway + Roboto condensed
- Expandable bottom panel containing the player controls and the settings (if expanded):
- Played song info: clicking on it You can open the played Artist's page/album or open/close the Artist's page You're exploring (when not playing). The text is scrollable on long click;
- Skip to previous song (long click to enable reset 1x);
Expand Down
4 changes: 2 additions & 2 deletions project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.iven.musicplayergo"
minSdkVersion 21
targetSdkVersion 28
versionCode 92
versionName "3.2.1"
versionCode 93
versionName "3.3"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.iven.musicplayergo.loaders;

import android.content.Context;

import com.iven.musicplayergo.models.Artist;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class ArtistsViewModel extends ViewModel {
private MutableLiveData<List<Artist>> artists;

public LiveData<List<Artist>> getArtists(@NonNull final Context context) {
if (artists == null) {
artists = new MutableLiveData<>();
loadUsers(context);
}
return artists;
}

private void loadUsers(@NonNull Context context) {
artists.setValue(ArtistProvider.getAllArtists(context));
}
}
2 changes: 1 addition & 1 deletion project/app/src/main/res/values-v27/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<item name="android:windowBackground">@color/white</item>
<item name="android:alertDialogTheme">@style/AlertDialogStyle</item>
<item name="card_color">@color/white</item>
<item name="controls_panel_stroke">@color/gray_900</item>
<item name="controls_panel_stroke">@color/gray_50</item>
<item name="android:windowLightStatusBar">true</item>
</style>

Expand Down
2 changes: 1 addition & 1 deletion project/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name" translatable="false">Music Player GO</string>
<string name="version" translatable="false">v3.2.1</string>
<string name="version" translatable="false">v3.3</string>
<string name="albums">albums: %d</string>
<string name="unknown_year" translatable="false">N&#x2F;A</string>
<string name="no_eq">No equalizer found!</string>
Expand Down
Binary file removed screenshots_v3-2.png
Binary file not shown.
Binary file added screenshots_v3-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8817b1

Please sign in to comment.