mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Moved drawable around
This commit is contained in:
parent
d20195fdf8
commit
710d61e379
16 changed files with 35 additions and 27 deletions
3
.idea/misc.xml
generated
3
.idea/misc.xml
generated
|
|
@ -4,6 +4,7 @@
|
||||||
<option name="filePathToZoomLevelMap">
|
<option name="filePathToZoomLevelMap">
|
||||||
<map>
|
<map>
|
||||||
<entry key="../../.gradle/caches/transforms-3/cfd4e4d299e24db95f3608b5f72af22b/transformed/jetified-exoplayer-ui-2.12.2/res/drawable-anydpi-v21/exo_ic_play_circle_filled.xml" value="0.28055555555555556" />
|
<entry key="../../.gradle/caches/transforms-3/cfd4e4d299e24db95f3608b5f72af22b/transformed/jetified-exoplayer-ui-2.12.2/res/drawable-anydpi-v21/exo_ic_play_circle_filled.xml" value="0.28055555555555556" />
|
||||||
|
<entry key="app/src/main/res/drawable-anydpi/ic_api_notification.xml" value="0.44351851851851853" />
|
||||||
<entry key="app/src/main/res/drawable-v24/ic_add.xml" value="0.27685185185185185" />
|
<entry key="app/src/main/res/drawable-v24/ic_add.xml" value="0.27685185185185185" />
|
||||||
<entry key="app/src/main/res/drawable-v24/ic_cast.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable-v24/ic_cast.xml" value="0.28055555555555556" />
|
||||||
<entry key="app/src/main/res/drawable-v24/ic_download.xml" value="0.27685185185185185" />
|
<entry key="app/src/main/res/drawable-v24/ic_download.xml" value="0.27685185185185185" />
|
||||||
|
|
@ -31,6 +32,7 @@
|
||||||
<entry key="app/src/main/res/drawable/ic_pause.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ic_pause.xml" value="0.28055555555555556" />
|
||||||
<entry key="app/src/main/res/drawable/ic_play.xml" value="0.27685185185185185" />
|
<entry key="app/src/main/res/drawable/ic_play.xml" value="0.27685185185185185" />
|
||||||
<entry key="app/src/main/res/drawable/ic_play_arrow_white_24dp.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ic_play_arrow_white_24dp.xml" value="0.28055555555555556" />
|
||||||
|
<entry key="app/src/main/res/drawable/ic_play_for_work.xml" value="0.30625" />
|
||||||
<entry key="app/src/main/res/drawable/ic_refresh.xml" value="0.18958333333333333" />
|
<entry key="app/src/main/res/drawable/ic_refresh.xml" value="0.18958333333333333" />
|
||||||
<entry key="app/src/main/res/drawable/ic_search.xml" value="0.27685185185185185" />
|
<entry key="app/src/main/res/drawable/ic_search.xml" value="0.27685185185185185" />
|
||||||
<entry key="app/src/main/res/drawable/ic_settings.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ic_settings.xml" value="0.28055555555555556" />
|
||||||
|
|
@ -39,6 +41,7 @@
|
||||||
<entry key="app/src/main/res/drawable/ic_skip_next_white_24dp.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ic_skip_next_white_24dp.xml" value="0.28055555555555556" />
|
||||||
<entry key="app/src/main/res/drawable/ic_skip_previous_white_24dp.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ic_skip_previous_white_24dp.xml" value="0.28055555555555556" />
|
||||||
<entry key="app/src/main/res/drawable/ic_star.xml" value="0.2722222222222222" />
|
<entry key="app/src/main/res/drawable/ic_star.xml" value="0.2722222222222222" />
|
||||||
|
<entry key="app/src/main/res/drawable/ic_toolbar_motion_on.xml" value="0.30625" />
|
||||||
<entry key="app/src/main/res/drawable/ui_empty_list.xml" value="0.28055555555555556" />
|
<entry key="app/src/main/res/drawable/ui_empty_list.xml" value="0.28055555555555556" />
|
||||||
<entry key="app/src/main/res/layout/activity_main.xml" value="0.3229166666666667" />
|
<entry key="app/src/main/res/layout/activity_main.xml" value="0.3229166666666667" />
|
||||||
<entry key="app/src/main/res/layout/bottom_sheet_album_dialog.xml" value="0.3229166666666667" />
|
<entry key="app/src/main/res/layout/bottom_sheet_album_dialog.xml" value="0.3229166666666667" />
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,7 @@ public class PlayingNotification {
|
||||||
.addAction(playPauseAction)
|
.addAction(playPauseAction)
|
||||||
.addAction(nextAction);
|
.addAction(nextAction);
|
||||||
|
|
||||||
builder.setStyle(new MediaStyle().setMediaSession(service.getMediaSession().getSessionToken()).setShowActionsInCompactView(0, 1, 2))
|
builder.setStyle(new MediaStyle().setMediaSession(service.getMediaSession().getSessionToken()).setShowActionsInCompactView(0, 1, 2)).setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
|
||||||
|
|
||||||
// notification has been stopped before loading was finished
|
// notification has been stopped before loading was finished
|
||||||
if (stopped) return;
|
if (stopped) return;
|
||||||
|
|
@ -159,7 +158,7 @@ public class PlayingNotification {
|
||||||
private void createNotificationChannel() {
|
private void createNotificationChannel() {
|
||||||
NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);
|
NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);
|
||||||
if (notificationChannel == null) {
|
if (notificationChannel == null) {
|
||||||
notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, service.getString(R.string.playing_notification_name), NotificationManager.IMPORTANCE_LOW);
|
notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, service.getString(R.string.playing_notification_name), NotificationManager.IMPORTANCE_DEFAULT);
|
||||||
notificationChannel.setDescription(service.getString(R.string.playing_notification_description));
|
notificationChannel.setDescription(service.getString(R.string.playing_notification_description));
|
||||||
notificationChannel.enableLights(false);
|
notificationChannel.enableLights(false);
|
||||||
notificationChannel.enableVibration(false);
|
notificationChannel.enableVibration(false);
|
||||||
|
|
|
||||||
15
app/src/main/res/drawable-anydpi/ic_notification.xml
Normal file
15
app/src/main/res/drawable-anydpi/ic_notification.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group android:scaleX="1.104"
|
||||||
|
android:scaleY="1.104"
|
||||||
|
android:translateX="-1.248"
|
||||||
|
android:translateY="-1.248">
|
||||||
|
<path
|
||||||
|
android:fillColor="@color/titleTextColor"
|
||||||
|
android:pathData="M4,9L4,9c0.26,0.26 0.34,0.63 0.25,0.98c-0.35,1.36 -0.36,2.87 0.1,4.38c0.88,2.91 3.44,5.1 6.44,5.55c5.52,0.81 10.19,-4.06 9.03,-9.62c-0.65,-3.13 -3.23,-5.61 -6.37,-6.16c-1.21,-0.21 -2.38,-0.15 -3.46,0.13C9.64,4.35 9.26,4.26 9.01,4.01l0,0C8.45,3.45 8.73,2.52 9.48,2.32c1.47,-0.38 3.06,-0.44 4.7,-0.09c3.98,0.86 7.09,4.18 7.7,8.2c1.04,6.81 -4.82,12.58 -11.64,11.42C6.23,21.16 2.98,17.99 2.2,14c-0.31,-1.59 -0.24,-3.12 0.12,-4.53C2.52,8.72 3.45,8.45 4,9zM6,12c0,-3.31 2.69,-6 6,-6s6,2.69 6,6s-2.69,6 -6,6S6,15.31 6,12zM7,5.5C7,6.33 6.33,7 5.5,7S4,6.33 4,5.5S4.67,4 5.5,4S7,4.67 7,5.5z"/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 678 B |
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 453 B |
|
|
@ -1,15 +0,0 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="20dp"
|
|
||||||
android:height="20dp"
|
|
||||||
android:viewportWidth="20"
|
|
||||||
android:viewportHeight="20">
|
|
||||||
<path
|
|
||||||
android:fillColor="@color/titleTextColor"
|
|
||||||
android:pathData="M8.94,7.88L5.59,4.53c-0.29,-0.29 -0.77,-0.29 -1.06,0l0,0c-0.29,0.29 -0.29,0.77 0,1.06l3.35,3.35L8.94,7.88z"/>
|
|
||||||
<path
|
|
||||||
android:fillColor="@color/titleTextColor"
|
|
||||||
android:pathData="M12.12,11.06l-1.06,1.06l2.41,2.41l-0.62,0.62C12.54,15.46 12.76,16 13.21,16h2.29c0.28,0 0.5,-0.22 0.5,-0.5v-2.29c0,-0.45 -0.54,-0.67 -0.85,-0.35l-0.62,0.62L12.12,11.06z"/>
|
|
||||||
<path
|
|
||||||
android:fillColor="@color/titleTextColor"
|
|
||||||
android:pathData="M12.85,4.85l0.62,0.62l-8.94,8.94c-0.29,0.29 -0.29,0.77 0,1.06l0,0c0.29,0.29 0.77,0.29 1.06,0l8.94,-8.94l0.62,0.62C15.46,7.46 16,7.24 16,6.79V4.5C16,4.22 15.78,4 15.5,4h-2.29C12.76,4 12.54,4.54 12.85,4.85z"/>
|
|
||||||
</vector>
|
|
||||||
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 888 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB |
|
|
@ -1,9 +1,15 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="20dp"
|
||||||
android:height="24dp"
|
android:height="20dp"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="20"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="20">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@color/titleTextColor"
|
android:fillColor="@color/titleTextColor"
|
||||||
android:pathData="M10.59,9.17L5.41,4 4,5.41l5.17,5.17 1.42,-1.41zM14.5,4l2.04,2.04L4,18.59 5.41,20 17.96,7.46 20,9.5L20,4h-5.5zM14.83,13.41l-1.41,1.41 3.13,3.13L14.5,20L20,20v-5.5l-2.04,2.04 -3.13,-3.13z" />
|
android:pathData="M8.94,7.88L5.59,4.53c-0.29,-0.29 -0.77,-0.29 -1.06,0l0,0c-0.29,0.29 -0.29,0.77 0,1.06l3.35,3.35L8.94,7.88z"/>
|
||||||
|
<path
|
||||||
|
android:fillColor="@color/titleTextColor"
|
||||||
|
android:pathData="M12.12,11.06l-1.06,1.06l2.41,2.41l-0.62,0.62C12.54,15.46 12.76,16 13.21,16h2.29c0.28,0 0.5,-0.22 0.5,-0.5v-2.29c0,-0.45 -0.54,-0.67 -0.85,-0.35l-0.62,0.62L12.12,11.06z"/>
|
||||||
|
<path
|
||||||
|
android:fillColor="@color/titleTextColor"
|
||||||
|
android:pathData="M12.85,4.85l0.62,0.62l-8.94,8.94c-0.29,0.29 -0.29,0.77 0,1.06l0,0c0.29,0.29 0.77,0.29 1.06,0l8.94,-8.94l0.62,0.62C15.46,7.46 16,7.24 16,6.79V4.5C16,4.22 15.78,4 15.5,4h-2.29C12.76,4 12.54,4.54 12.85,4.85z"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
<string name="playlist_chooser_dialog_neutral_button">Create</string>
|
<string name="playlist_chooser_dialog_neutral_button">Create</string>
|
||||||
<string name="playlist_chooser_dialog_title">Add to a playlist</string>
|
<string name="playlist_chooser_dialog_title">Add to a playlist</string>
|
||||||
<string name="playlist_counted_tracks">%1$d tracks</string>
|
<string name="playlist_counted_tracks">%1$d tracks</string>
|
||||||
<string name="playlist_duration">Playlist duration: %1$s</string>
|
<string name="playlist_duration">Duration • %1$s</string>
|
||||||
<string name="playlist_editor_dialog_hint_name">Playlist Name</string>
|
<string name="playlist_editor_dialog_hint_name">Playlist Name</string>
|
||||||
<string name="playlist_editor_dialog_negative_button">Cancel</string>
|
<string name="playlist_editor_dialog_negative_button">Cancel</string>
|
||||||
<string name="playlist_editor_dialog_neutral_button">Delete</string>
|
<string name="playlist_editor_dialog_neutral_button">Delete</string>
|
||||||
|
|
@ -126,7 +126,7 @@
|
||||||
<string name="playlist_info_song_count">Song count: %1$d</string>
|
<string name="playlist_info_song_count">Song count: %1$d</string>
|
||||||
<string name="playlist_page_play_button">Play</string>
|
<string name="playlist_page_play_button">Play</string>
|
||||||
<string name="playlist_page_shuffle_button">Shuffle</string>
|
<string name="playlist_page_shuffle_button">Shuffle</string>
|
||||||
<string name="playlist_song_count">Song count: %1$d</string>
|
<string name="playlist_song_count">Playlist • %1$d songs</string>
|
||||||
<string name="rating_dialog_negative_button">Cancel</string>
|
<string name="rating_dialog_negative_button">Cancel</string>
|
||||||
<string name="rating_dialog_positive_button">Save</string>
|
<string name="rating_dialog_positive_button">Save</string>
|
||||||
<string name="rating_dialog_title">Rate</string>
|
<string name="rating_dialog_title">Rate</string>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue