chore: upgrade deps

Update dependencies again:

activity -> 1.3.1
constraintlayout -> 2.1.0
media -> 1.4.1
This commit is contained in:
OxygenCobalt 2021-08-06 09:41:31 -06:00
parent 828ab3ccee
commit 1b5822eae0
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
28 changed files with 72 additions and 75 deletions

View file

@ -62,12 +62,12 @@ dependencies {
// General // General
implementation "androidx.core:core-ktx:1.6.0" implementation "androidx.core:core-ktx:1.6.0"
implementation "androidx.activity:activity-ktx:1.3.0" implementation "androidx.activity:activity-ktx:1.3.1"
implementation 'androidx.fragment:fragment-ktx:1.3.6' implementation 'androidx.fragment:fragment-ktx:1.3.6'
// UI // UI
implementation "androidx.recyclerview:recyclerview:1.2.1" implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.constraintlayout:constraintlayout:2.0.4" implementation "androidx.constraintlayout:constraintlayout:2.1.0"
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0" implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
// Lifecycle // Lifecycle
@ -83,7 +83,7 @@ dependencies {
// Media // Media
// TODO: Migrate to media2 when I can figure out how to use it // TODO: Migrate to media2 when I can figure out how to use it
implementation "androidx.media:media:1.4.0" implementation "androidx.media:media:1.4.1"
// Preferences // Preferences
implementation "androidx.preference:preference-ktx:1.1.1" implementation "androidx.preference:preference-ktx:1.1.1"

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/> <background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground"/> <foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon> </adaptive-icon>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/> <background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground"/> <foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon> </adaptive-icon>

View file

@ -57,9 +57,9 @@
android:roundIcon="@mipmap/ic_launcher_round" /> android:roundIcon="@mipmap/ic_launcher_round" />
<receiver <receiver
android:label="@string/info_widget_name"
android:name=".widgets.WidgetProvider" android:name=".widgets.WidgetProvider"
android:exported="false"> android:exported="false"
android:label="@string/info_widget_name">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />

View file

@ -2,10 +2,10 @@
<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="24dp"
android:height="24dp" android:height="24dp"
android:tint="?attr/colorPrimary"
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24" android:viewportHeight="24">
android:tint="?attr/colorPrimary"> <path
<path android:fillColor="@android:color/white"
android:fillColor="@android:color/white" android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z" />
android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>
</vector> </vector>

View file

@ -102,9 +102,9 @@
<SeekBar <SeekBar
android:id="@+id/playback_seek_bar" android:id="@+id/playback_seek_bar"
style="@style/Widget.SeekBar.Full"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.SeekBar.Full"
android:layout_marginTop="@dimen/spacing_medium" android:layout_marginTop="@dimen/spacing_medium"
app:layout_constraintBottom_toTopOf="@+id/playback_duration_current" app:layout_constraintBottom_toTopOf="@+id/playback_duration_current"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View file

@ -25,12 +25,12 @@
<ImageView <ImageView
android:id="@+id/album_cover" android:id="@+id/album_cover"
style="@style/Widget.ImageView.Full"
android:layout_width="@dimen/size_cover_detail_land" android:layout_width="@dimen/size_cover_detail_land"
android:layout_height="@dimen/size_cover_detail_land" android:layout_height="@dimen/size_cover_detail_land"
android:layout_marginStart="@dimen/spacing_medium" android:layout_marginStart="@dimen/spacing_medium"
android:layout_marginTop="@dimen/spacing_medium" android:layout_marginTop="@dimen/spacing_medium"
android:contentDescription="@{@string/desc_album_cover(album.name)}" android:contentDescription="@{@string/desc_album_cover(album.name)}"
style="@style/Widget.ImageView.Full"
app:albumArt="@{album}" app:albumArt="@{album}"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -84,11 +84,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/album_play_button" android:id="@+id/album_play_button"
style="@style/Widget.Button.Vibrant.Secondary" style="@style/Widget.Button.Vibrant.Secondary"
android:onClick="@{() -> playbackModel.playAlbum(album, false)}" android:layout_marginStart="@dimen/spacing_medium"
android:text="@string/lbl_play"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_medium" android:onClick="@{() -> playbackModel.playAlbum(album, false)}"
android:text="@string/lbl_play"
app:layout_constraintEnd_toStartOf="@+id/album_shuffle_button" app:layout_constraintEnd_toStartOf="@+id/album_shuffle_button"
app:layout_constraintHorizontal_bias="0.5" app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -97,11 +97,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/album_shuffle_button" android:id="@+id/album_shuffle_button"
style="@style/Widget.Button.Vibrant.Primary" style="@style/Widget.Button.Vibrant.Primary"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
android:backgroundTint="?attr/colorPrimary" android:backgroundTint="?attr/colorPrimary"
android:onClick="@{() -> playbackModel.playAlbum(album, true)}" android:onClick="@{() -> playbackModel.playAlbum(album, true)}"
android:text="@string/lbl_shuffle" android:text="@string/lbl_shuffle"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
app:layout_constraintBottom_toBottomOf="@+id/album_play_button" app:layout_constraintBottom_toBottomOf="@+id/album_play_button"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/album_play_button" app:layout_constraintStart_toEndOf="@+id/album_play_button"
@ -121,9 +121,9 @@
<ImageButton <ImageButton
android:id="@+id/album_sort_button" android:id="@+id/album_sort_button"
style="@style/Widget.Button.Unbounded.Small"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Button.Unbounded.Small"
android:contentDescription="@string/desc_sort_button" android:contentDescription="@string/desc_sort_button"
android:onClick="@{() -> detailModel.incrementAlbumSortMode()}" android:onClick="@{() -> detailModel.incrementAlbumSortMode()}"
app:layout_constraintBottom_toBottomOf="@+id/album_song_header" app:layout_constraintBottom_toBottomOf="@+id/album_song_header"

View file

@ -69,7 +69,7 @@
style="@style/Widget.Button.Vibrant.Secondary" style="@style/Widget.Button.Vibrant.Secondary"
android:onClick="@{() -> playbackModel.playGenre(genre, false)}" android:onClick="@{() -> playbackModel.playGenre(genre, false)}"
android:text="@string/lbl_play" android:text="@string/lbl_play"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_medium" android:layout_marginStart="@dimen/spacing_medium"
app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button" app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button"

View file

@ -46,9 +46,9 @@
<TextView <TextView
android:id="@+id/playback_song" android:id="@+id/playback_song"
style="@style/Widget.TextView.Compact.Primary" style="@style/Widget.TextView.Compact.Primary"
android:text="@{song.name}"
android:layout_marginStart="@dimen/spacing_small" android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:text="@{song.name}"
app:layout_constraintBottom_toTopOf="@+id/playback_info" app:layout_constraintBottom_toTopOf="@+id/playback_info"
app:layout_constraintEnd_toStartOf="@+id/playback_play_pause" app:layout_constraintEnd_toStartOf="@+id/playback_play_pause"
app:layout_constraintStart_toEndOf="@+id/playback_cover" app:layout_constraintStart_toEndOf="@+id/playback_cover"
@ -71,10 +71,10 @@
<org.oxycblt.auxio.playback.PlayPauseButton <org.oxycblt.auxio.playback.PlayPauseButton
android:id="@+id/playback_play_pause" android:id="@+id/playback_play_pause"
style="@style/Widget.Button.Unbounded" style="@style/Widget.Button.Unbounded"
android:padding="0dp"
android:layout_margin="@dimen/spacing_small" android:layout_margin="@dimen/spacing_small"
android:contentDescription="@string/desc_play_pause" android:contentDescription="@string/desc_play_pause"
android:onClick="@{() -> playbackModel.invertPlayingStatus()}" android:onClick="@{() -> playbackModel.invertPlayingStatus()}"
android:padding="0dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"

View file

@ -25,8 +25,8 @@
android:id="@+id/detail_recycler" android:id="@+id/detail_recycler"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
tools:listitem="@layout/item_artist_header" /> tools:listitem="@layout/item_artist_header" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -46,9 +46,9 @@
<Button <Button
android:id="@+id/loading_retry_button" android:id="@+id/loading_retry_button"
style="@style/Widget.Button.Unbounded.Text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Button.Unbounded.Text"
android:onClick="@{() -> loadingModel.load(context)}" android:onClick="@{() -> loadingModel.load(context)}"
android:text="@string/lbl_retry" android:text="@string/lbl_retry"
android:visibility="gone" android:visibility="gone"
@ -56,9 +56,9 @@
<Button <Button
android:id="@+id/loading_grant_button" android:id="@+id/loading_grant_button"
style="@style/Widget.Button.Unbounded.Text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Button.Unbounded.Text"
android:onClick="@{() -> loadingModel.grant()}" android:onClick="@{() -> loadingModel.grant()}"
android:text="@string/lbl_grant" android:text="@string/lbl_grant"
android:visibility="gone" android:visibility="gone"

View file

@ -79,8 +79,8 @@
android:layout_marginStart="@dimen/spacing_mid_large" android:layout_marginStart="@dimen/spacing_mid_large"
android:layout_marginEnd="@dimen/spacing_mid_large" android:layout_marginEnd="@dimen/spacing_mid_large"
android:layout_marginBottom="@dimen/spacing_medium" android:layout_marginBottom="@dimen/spacing_medium"
android:text="@{song.album.name}"
android:onClick="@{() -> detailModel.navToItem(playbackModel.song.album)}" android:onClick="@{() -> detailModel.navToItem(playbackModel.song.album)}"
android:text="@{song.album.name}"
app:layout_constraintBottom_toTopOf="@+id/playback_seek_bar" app:layout_constraintBottom_toTopOf="@+id/playback_seek_bar"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -88,9 +88,9 @@
<SeekBar <SeekBar
android:id="@+id/playback_seek_bar" android:id="@+id/playback_seek_bar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
style="@style/Widget.SeekBar.Full" style="@style/Widget.SeekBar.Full"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/playback_duration_current" app:layout_constraintBottom_toTopOf="@+id/playback_duration_current"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -32,8 +32,8 @@
app:boxStrokeWidthFocused="2dp" app:boxStrokeWidthFocused="2dp"
app:endIconContentDescription="@string/desc_clear_search" app:endIconContentDescription="@string/desc_clear_search"
app:endIconDrawable="@drawable/ic_close" app:endIconDrawable="@drawable/ic_close"
app:endIconTint="?attr/colorControlNormal"
app:endIconMode="clear_text" app:endIconMode="clear_text"
app:endIconTint="?attr/colorControlNormal"
app:errorEnabled="false"> app:errorEnabled="false">
<com.google.android.material.textfield.TextInputEditText <com.google.android.material.textfield.TextInputEditText

View file

@ -18,9 +18,9 @@
<TextView <TextView
android:id="@+id/header_title" android:id="@+id/header_title"
style="@style/Widget.TextView.Header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.TextView.Header"
android:text="@{header.name}" android:text="@{header.name}"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@ -28,9 +28,9 @@
<ImageButton <ImageButton
android:id="@+id/header_button" android:id="@+id/header_button"
style="@style/Widget.Button.Unbounded.Small"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Button.Unbounded.Small"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/header_title" app:layout_constraintTop_toTopOf="@+id/header_title"

View file

@ -79,11 +79,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/album_play_button" android:id="@+id/album_play_button"
style="@style/Widget.Button.Vibrant.Secondary" style="@style/Widget.Button.Vibrant.Secondary"
android:onClick="@{() -> playbackModel.playAlbum(album, false)}" android:layout_marginStart="@dimen/spacing_medium"
android:text="@string/lbl_play"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_medium" android:onClick="@{() -> playbackModel.playAlbum(album, false)}"
android:text="@string/lbl_play"
app:layout_constraintEnd_toStartOf="@+id/album_shuffle_button" app:layout_constraintEnd_toStartOf="@+id/album_shuffle_button"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/album_details" /> app:layout_constraintTop_toBottomOf="@+id/album_details" />
@ -91,11 +91,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/album_shuffle_button" android:id="@+id/album_shuffle_button"
style="@style/Widget.Button.Vibrant.Primary" style="@style/Widget.Button.Vibrant.Primary"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
android:backgroundTint="?attr/colorPrimary" android:backgroundTint="?attr/colorPrimary"
android:onClick="@{() -> playbackModel.playAlbum(album, true)}" android:onClick="@{() -> playbackModel.playAlbum(album, true)}"
android:text="@string/lbl_shuffle" android:text="@string/lbl_shuffle"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
app:layout_constraintBottom_toBottomOf="@+id/album_play_button" app:layout_constraintBottom_toBottomOf="@+id/album_play_button"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/album_play_button" app:layout_constraintStart_toEndOf="@+id/album_play_button"
@ -103,9 +103,9 @@
<TextView <TextView
android:id="@+id/album_song_header" android:id="@+id/album_song_header"
style="@style/Widget.TextView.Header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.TextView.Header"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:background="@drawable/ui_header_dividers" android:background="@drawable/ui_header_dividers"
android:text="@string/lbl_songs" android:text="@string/lbl_songs"
@ -114,9 +114,9 @@
<ImageButton <ImageButton
android:id="@+id/album_sort_button" android:id="@+id/album_sort_button"
android:layout_height="wrap_content"
android:layout_width="0dp"
style="@style/Widget.Button.Unbounded.Small" style="@style/Widget.Button.Unbounded.Small"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:contentDescription="@string/desc_sort_button" android:contentDescription="@string/desc_sort_button"
android:onClick="@{() -> detailModel.incrementAlbumSortMode()}" android:onClick="@{() -> detailModel.incrementAlbumSortMode()}"
app:layout_constraintBottom_toBottomOf="@+id/album_song_header" app:layout_constraintBottom_toBottomOf="@+id/album_song_header"

View file

@ -21,11 +21,11 @@
<ImageView <ImageView
android:id="@+id/artist_image" android:id="@+id/artist_image"
style="@style/Widget.ImageView.Full"
android:layout_width="@dimen/size_cover_detail" android:layout_width="@dimen/size_cover_detail"
android:layout_height="@dimen/size_cover_detail" android:layout_height="@dimen/size_cover_detail"
android:layout_marginTop="@dimen/spacing_medium" android:layout_marginTop="@dimen/spacing_medium"
android:contentDescription="@{@string/desc_artist_image(artist.name)}" android:contentDescription="@{@string/desc_artist_image(artist.name)}"
style="@style/Widget.ImageView.Full"
app:artistImage="@{artist}" app:artistImage="@{artist}"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -74,11 +74,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/artist_play_button" android:id="@+id/artist_play_button"
style="@style/Widget.Button.Vibrant.Secondary" style="@style/Widget.Button.Vibrant.Secondary"
android:onClick="@{() -> playbackModel.playArtist(artist, false)}" android:layout_marginStart="@dimen/spacing_medium"
android:text="@string/lbl_play"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_medium" android:onClick="@{() -> playbackModel.playArtist(artist, false)}"
android:text="@string/lbl_play"
app:layout_constraintEnd_toStartOf="@+id/artist_shuffle_button" app:layout_constraintEnd_toStartOf="@+id/artist_shuffle_button"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/artist_counts" /> app:layout_constraintTop_toBottomOf="@+id/artist_counts" />
@ -86,11 +86,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/artist_shuffle_button" android:id="@+id/artist_shuffle_button"
style="@style/Widget.Button.Vibrant.Primary" style="@style/Widget.Button.Vibrant.Primary"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
android:backgroundTint="?attr/colorPrimary" android:backgroundTint="?attr/colorPrimary"
android:onClick="@{() -> playbackModel.playArtist(artist, true)}" android:onClick="@{() -> playbackModel.playArtist(artist, true)}"
android:text="@string/lbl_shuffle" android:text="@string/lbl_shuffle"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_medium"
app:layout_constraintBottom_toBottomOf="@+id/artist_play_button" app:layout_constraintBottom_toBottomOf="@+id/artist_play_button"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/artist_play_button" app:layout_constraintStart_toEndOf="@+id/artist_play_button"

View file

@ -23,11 +23,11 @@
<ImageButton <ImageButton
android:id="@+id/blacklist_clear" android:id="@+id/blacklist_clear"
style="@style/Widget.Button.Unbounded" style="@style/Widget.Button.Unbounded"
android:tint="?attr/colorControlNormal"
android:layout_width="@dimen/size_clear" android:layout_width="@dimen/size_clear"
android:layout_height="@dimen/size_clear" android:layout_height="@dimen/size_clear"
android:contentDescription="@string/desc_blacklist_delete" android:contentDescription="@string/desc_blacklist_delete"
android:src="@drawable/ic_clear" android:src="@drawable/ic_clear"
android:tint="?attr/colorControlNormal"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

View file

@ -26,11 +26,11 @@
<ImageView <ImageView
android:id="@+id/genre_image" android:id="@+id/genre_image"
style="@style/Widget.ImageView.Full"
android:layout_width="@dimen/size_cover_detail" android:layout_width="@dimen/size_cover_detail"
android:layout_height="@dimen/size_cover_detail" android:layout_height="@dimen/size_cover_detail"
android:layout_marginTop="@dimen/spacing_medium" android:layout_marginTop="@dimen/spacing_medium"
android:contentDescription="@{@string/desc_genre_image(genre.name)}" android:contentDescription="@{@string/desc_genre_image(genre.name)}"
style="@style/Widget.ImageView.Full"
app:genreImage="@{genre}" app:genreImage="@{genre}"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -79,11 +79,11 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/genre_play_button" android:id="@+id/genre_play_button"
style="@style/Widget.Button.Vibrant.Secondary" style="@style/Widget.Button.Vibrant.Secondary"
android:onClick="@{() -> playbackModel.playGenre(genre, false)}" android:layout_marginStart="@dimen/spacing_medium"
android:text="@string/lbl_play"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_medium" android:onClick="@{() -> playbackModel.playGenre(genre, false)}"
android:text="@string/lbl_play"
app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button" app:layout_constraintEnd_toStartOf="@+id/genre_shuffle_button"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/genre_duration" /> app:layout_constraintTop_toBottomOf="@+id/genre_duration" />
@ -101,9 +101,9 @@
<TextView <TextView
android:id="@+id/genre_song_header" android:id="@+id/genre_song_header"
style="@style/Widget.TextView.Header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.TextView.Header"
android:layout_marginTop="@dimen/spacing_small" android:layout_marginTop="@dimen/spacing_small"
android:text="@string/lbl_songs" android:text="@string/lbl_songs"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -111,9 +111,9 @@
<ImageButton <ImageButton
android:id="@+id/genre_sort_button" android:id="@+id/genre_sort_button"
style="@style/Widget.Button.Unbounded.Small"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Button.Unbounded.Small"
android:contentDescription="@string/desc_sort_button" android:contentDescription="@string/desc_sort_button"
android:onClick="@{() -> detailModel.incrementGenreSortMode()}" android:onClick="@{() -> detailModel.incrementGenreSortMode()}"
app:layout_constraintBottom_toBottomOf="@+id/genre_song_header" app:layout_constraintBottom_toBottomOf="@+id/genre_song_header"

View file

@ -12,9 +12,9 @@
<TextView <TextView
android:id="@android:id/title" android:id="@android:id/title"
style="@style/Widget.TextView.Header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.TextView.Header"
android:text="@{header.name}" android:text="@{header.name}"
tools:text="Songs" /> tools:text="Songs" />
</layout> </layout>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/background" android:id="@android:id/background"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -13,8 +12,7 @@
android:contentDescription="@string/desc_no_cover" android:contentDescription="@string/desc_no_cover"
android:src="@drawable/ic_song" /> android:src="@drawable/ic_song" />
<LinearLayout <LinearLayout style="@style/Widget.Component.AppWidget.Panel.Base">
style="@style/Widget.Component.AppWidget.Panel.Base">
<TextView <TextView
android:id="@+id/widget_song" android:id="@+id/widget_song"

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/background" android:id="@android:id/background"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -13,8 +12,7 @@
android:contentDescription="@string/desc_no_cover" android:contentDescription="@string/desc_no_cover"
android:src="@drawable/ic_song" /> android:src="@drawable/ic_song" />
<LinearLayout <LinearLayout style="@style/Widget.Component.AppWidget.Panel.Base">
style="@style/Widget.Component.AppWidget.Panel.Base">
<TextView <TextView
android:id="@+id/widget_song" android:id="@+id/widget_song"

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<style name="Widget.Component.AppWidget.Button" parent="Widget.Component.AppWidget.Button.Base"> <style name="Widget.Component.AppWidget.Button" parent="Widget.Component.AppWidget.Button.Base">
<item name="android:background">@drawable/ui_unbounded_ripple</item> <item name="android:background">@drawable/ui_unbounded_ripple</item>
</style> </style>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight"> <style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
<item name="colorPrimary">?android:attr/colorAccent</item> <item name="colorPrimary">?android:attr/colorAccent</item>
<item name="colorSecondary">?android:attr/colorAccent</item> <item name="colorSecondary">?android:attr/colorAccent</item>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
tools:ignore="MissingTranslation">
<!-- Info namespace | App labels --> <!-- Info namespace | App labels -->
<string name="info_app_desc">A simple, rational music player for android.</string> <string name="info_app_desc">A simple, rational music player for android.</string>

View file

@ -54,11 +54,11 @@
</style> </style>
<style name="Widget.Component.AppWidget.Button" parent="Widget.Component.AppWidget.Button.Base"> <style name="Widget.Component.AppWidget.Button" parent="Widget.Component.AppWidget.Button.Base">
<!-- <!--
Can't use a normal unbounded ripple here since it causes a weird bug Can't use a normal unbounded ripple here since it causes a weird bug
where the ripples will have a fixed starting size. Default to the where the ripples will have a fixed starting size. Default to the
uglier system ripple instead. uglier system ripple instead.
--> -->
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item> <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
</style> </style>

View file

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/info_widget_desc"
android:initialLayout="@layout/widget_small" android:initialLayout="@layout/widget_small"
android:targetCellWidth="2"
android:targetCellHeight="2"
android:minResizeWidth="110dp" android:minResizeWidth="110dp"
android:minResizeHeight="110dp" android:minResizeHeight="110dp"
android:previewLayout="@layout/widget_small" android:previewLayout="@layout/widget_small"
android:description="@string/info_widget_desc"
android:resizeMode="horizontal|vertical" android:resizeMode="horizontal|vertical"
android:targetCellWidth="2"
android:targetCellHeight="2"
android:updatePeriodMillis="0" android:updatePeriodMillis="0"
android:widgetCategory="home_screen" /> android:widgetCategory="home_screen" />

View file

@ -21,12 +21,12 @@
app:title="@string/set_accent" /> app:title="@string/set_accent" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
app:allowDividerBelow="false"
app:defaultValue="false" app:defaultValue="false"
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="KEY_BLACK_THEME" app:key="KEY_BLACK_THEME"
app:title="@string/set_black_mode"
app:summary="@string/setting_black_mode_desc" app:summary="@string/setting_black_mode_desc"
app:allowDividerBelow="false" /> app:title="@string/set_black_mode" />
</PreferenceCategory> </PreferenceCategory>

View file

@ -3,7 +3,7 @@
android:initialLayout="@layout/widget_small" android:initialLayout="@layout/widget_small"
android:minWidth="110dp" android:minWidth="110dp"
android:minHeight="110dp" android:minHeight="110dp"
android:previewImage="@drawable/ui_widget_preview"
android:resizeMode="horizontal|vertical" android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="0" android:updatePeriodMillis="0"
android:previewImage="@drawable/ui_widget_preview"
android:widgetCategory="home_screen" /> android:widgetCategory="home_screen" />