diff --git a/app/src/main/java/com/cappielloantonio/play/service/MultiPlayer.java b/app/src/main/java/com/cappielloantonio/play/service/MultiPlayer.java
index 71ad3f4e..4873d4f0 100644
--- a/app/src/main/java/com/cappielloantonio/play/service/MultiPlayer.java
+++ b/app/src/main/java/com/cappielloantonio/play/service/MultiPlayer.java
@@ -85,7 +85,7 @@ public class MultiPlayer implements Playback {
@Override
public void onPlayerError(ExoPlaybackException error) {
Log.i(TAG, String.format("onPlayerError: %s", error.getMessage()));
- Toast.makeText(context, context.getResources().getString(R.string.unplayable_file), Toast.LENGTH_SHORT).show();
+ Toast.makeText(context, context.getResources().getString(R.string.exo_info_unplayable_file), Toast.LENGTH_SHORT).show();
exoPlayer.clearMediaItems();
exoPlayer.prepare();
diff --git a/app/src/main/java/com/cappielloantonio/play/service/MusicService.java b/app/src/main/java/com/cappielloantonio/play/service/MusicService.java
index 2d548834..b97b221d 100644
--- a/app/src/main/java/com/cappielloantonio/play/service/MusicService.java
+++ b/app/src/main/java/com/cappielloantonio/play/service/MusicService.java
@@ -183,10 +183,10 @@ public class MusicService extends Service implements Playback.PlaybackCallbacks
if (!playlistSongs.isEmpty()) {
openQueue(playlistSongs, 0, true);
} else {
- Toast.makeText(getApplicationContext(), R.string.playlist_is_empty, Toast.LENGTH_LONG).show();
+ Toast.makeText(getApplicationContext(), R.string.exo_info_empty_playlist, Toast.LENGTH_LONG).show();
}
} else {
- Toast.makeText(getApplicationContext(), R.string.playlist_is_empty, Toast.LENGTH_LONG).show();
+ Toast.makeText(getApplicationContext(), R.string.exo_info_empty_playlist, Toast.LENGTH_LONG).show();
}
break;
case ACTION_REWIND:
diff --git a/app/src/main/java/com/cappielloantonio/play/ui/activity/base/BaseActivity.java b/app/src/main/java/com/cappielloantonio/play/ui/activity/base/BaseActivity.java
index dd580d9d..e8aeb764 100644
--- a/app/src/main/java/com/cappielloantonio/play/ui/activity/base/BaseActivity.java
+++ b/app/src/main/java/com/cappielloantonio/play/ui/activity/base/BaseActivity.java
@@ -114,10 +114,10 @@ public class BaseActivity extends AppCompatActivity implements MusicServiceEvent
private void showBatteryOptimizationDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
- builder.setMessage(R.string.battery_optimizations_message)
- .setTitle(R.string.battery_optimizations_title)
- .setNegativeButton(R.string.ignore, null)
- .setPositiveButton(R.string.disable, (dialog, id) -> openPowerSettings())
+ builder.setMessage(R.string.activity_battery_optimizations_summary)
+ .setTitle(R.string.activity_battery_optimizations_title)
+ .setNegativeButton(R.string.activity_negative_button, null)
+ .setPositiveButton(R.string.activity_neutral_button, (dialog, id) -> openPowerSettings())
.show();
}
diff --git a/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java b/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java
index 95d93ec0..29197c25 100644
--- a/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java
+++ b/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java
@@ -90,9 +90,9 @@ public class PlayingNotification {
bitmap = BitmapFactory.decodeResource(service.getResources(), R.drawable.default_album_art);
}
- NotificationCompat.Action playPauseAction = new NotificationCompat.Action(playButtonResId, service.getString(R.string.action_play_pause), retrievePlaybackAction(ACTION_TOGGLE));
- NotificationCompat.Action previousAction = new NotificationCompat.Action(R.drawable.ic_skip_previous_white_24dp, service.getString(R.string.action_previous), retrievePlaybackAction(ACTION_REWIND));
- NotificationCompat.Action nextAction = new NotificationCompat.Action(R.drawable.ic_skip_next_white_24dp, service.getString(R.string.action_next), retrievePlaybackAction(ACTION_SKIP));
+ NotificationCompat.Action playPauseAction = new NotificationCompat.Action(playButtonResId, service.getString(R.string.exo_action_play_pause), retrievePlaybackAction(ACTION_TOGGLE));
+ NotificationCompat.Action previousAction = new NotificationCompat.Action(R.drawable.ic_skip_previous_white_24dp, service.getString(R.string.exo_action_previous), retrievePlaybackAction(ACTION_REWIND));
+ NotificationCompat.Action nextAction = new NotificationCompat.Action(R.drawable.ic_skip_next_white_24dp, service.getString(R.string.exo_action_next), retrievePlaybackAction(ACTION_SKIP));
NotificationCompat.Builder builder = new NotificationCompat.Builder(service, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index cc55f6ef..eecdf1b2 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,183 +1,174 @@
- Play for Subsonic
-
- General
- Search title, artists or albums
- Choose theme
- Covers cache
- Media cache
- Cover size
- Library
- Home
- Search
- Download
- --
- •
-
- About
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- 1.0
- Version
- Github
- Follow the development
- https://github.com/CappielloAntonio/play-for-subsonic
-
- Battery Optimizations
- Please disable battery optimizations for media playback while the screen is off.
-
- Disable
- Ignore
-
- Couldn\'t play this song.
- Playlist is empty
-
- Play/Pause
- Previous
- Next
-
- The playing notification provides actions for play/pause etc.
- Playing Notification
-
- Downloads
- Error retrieving album\'s radio
- Error retrieving artist
- Albums
-
- Recently played albums
- Most played albums
- Recently added albums
- Starred albums
- Downloaded albums
- Albums
- Error retrieving artist\'s radio
- Error retrieving artist\'s tracks
- Artists
- Starred artists
- Downloaded artists
- Artists
- Select two or more filters
- Filter
- Genre Catalogue
- Subsonic servers
- \"Song count: \"
- Playlist Catalogue
- Add to a playlist
- Create
- Cancel
- Create playlist
- Save
- Delete
- Cancel
- Required
- \" tracks\"
- \"Song count: \"
- \"Playlist duration: \"
- Rate
- Cancel
- Save
- Enter at least three characters
- Add server
- Delete
- Save
- Cancel
- Error retrieving album
- Error retrieving artist
- Recently played tracks
- Most played tracks
- Recently added tracks
- : all tracks
- \'s top tracks
- \"Year \"
- Starred tracks
- Downloaded
- Songs
+ Please disable battery optimizations for media playback while the screen is off.
+ Battery Optimizations
Offline mode
- Instant mix
- Shuffle
- Play next
+ Ignore
+ Disable
Add to queue
Download all
- Remove all
Go to artist
- Instant mix
- Shuffle
- Instant mix
- Play next
- Add to queue
- Rate
- Download
- Remove
- Add to playlist
- Go to album
- Go to artist
- No playlists created
- Playlist Name
- Server Name
- Username
- Password
- Server URL
- Direct access
+ Instant mix
+ Play next
+ Remove all
+ Shuffle
+ Albums
Browse Albums
+ Error retrieving artist
+ Error retrieving album\'s radio
+ Downloaded albums
+ Most played albums
+ Recently added albums
+ Recently played albums
+ Starred albums
+ Albums
+ More like this
Play
Shuffle
- More like this
+ Play for Subsonic
+ Instant mix
+ Shuffle
+ Artists
Browse Artists
- Shuffle
+ Error retrieving artist\'s radio
+ Error retrieving artist\'s tracks
+ Downloaded artists
+ Starred artists
+ Artists
Radio
- Biography
+ Shuffle
+ More like this
+ Albums
More
+ Biography
Most Streamed Songs
See all
- Albums
- More like this
- No downloads yet!
Once you download a song, you\'ll find it here
- Artists
- See all
+ No downloads yet!
Albums
See all
- Tracks
- See all
+ Artists
+ See all
Playlists
See all
+ Tracks
+ See all
+
+ Required
+ Next
+ Play/Pause
+ Previous
+ Downloads
+ Playlist is empty
+ Couldn\'t play this song.
+ Select two or more filters
+ Filter
Filter Genres
+ Genre Catalogue
Browse Genres
- Music discovery
Start mix from a song you liked
+ Flashback
+ Last played
+ See all
Made for you
Most played
See all
- Last played
- See all
- Flashback
- ★ Starred tracks
- See all
+ Music discovery
+ Recently added
+ See all
★ Starred albums
See all
★ Starred artists
See all
- Recently added
- See all
- New releases
+ ★ Starred tracks
+ See all
+ •
+ --
Albums
See all
Artists
See all
Genres
See all
+ New releases
Playlists
See all
- Subsonic servers
No server added
+ Subsonic servers
+ Subsonic servers
+ Add
+ Download all
+ Download
+ Home
+ Library
+ Search
+ Now playing
+ The playing notification provides actions for play/pause etc.
+ Playing Notification
+ Playlist Catalogue
Browse Playlists
+ No playlists created
+ Cancel
+ Create
+ Add to a playlist
+ \" tracks\"
+ \"Playlist duration: \"
+ Playlist Name
+ Cancel
+ Delete
+ Save
+ Create playlist
+ \"Song count: \"
Play
Shuffle
- Songs
+ \"Song count: \"
+ Cancel
+ Save
+ Rate
+ Search title, artists or albums
+ Enter at least three characters
Albums
Artists
- Now playing
- Download all
- Add
- Search
+ Songs
+ Direct access
+ Server Name
+ Password
+ Server URL
+ Username
+ Cancel
+ Delete
+ Save
+ Add server
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ About
+ Covers cache
+ https://github.com/CappielloAntonio/play-for-subsonic
+ Follow the development
+ Github
+ Cover size
+ Media cache
+ Choose theme
+ General
+ 1.0
+ Version
+ Add to playlist
+ Add to queue
+ Download
+ Error retrieving album
+ Error retrieving artist
+ Go to album
+ Go to artist
+ Instant mix
+ Play next
+ Rate
+ Remove
+ : all tracks
+ Downloaded
+ Most played tracks
+ Recently added tracks
+ Recently played tracks
+ Starred tracks
+ Songs
+ \'s top tracks
+ \"Year \"
Settings
\ No newline at end of file
diff --git a/app/src/main/res/xml/global_preferences.xml b/app/src/main/res/xml/global_preferences.xml
index 30cba9da..912a2998 100644
--- a/app/src/main/res/xml/global_preferences.xml
+++ b/app/src/main/res/xml/global_preferences.xml
@@ -1,40 +1,40 @@
-
+
-
+
+ app:summary="@string/settings_about_summary" />
+ app:summary="@string/settings_version_summary"
+ app:title="@string/settings_version_title" />
+ app:summary="@string/settings_github_summary"
+ app:title="@string/settings_github_title">
+ android:data="@string/settings_github_link" />