accent: fix crash when opening dialog

Fix a crash in the accent dialog that would occur because Android
Couldn't decipher the module path to the layout manager. Even though
this worked perfectly fine before moving the module. Why.
This commit is contained in:
OxygenCobalt 2021-08-21 08:43:22 -06:00
parent 21a24f2496
commit 0c54fa05b9
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
4 changed files with 8 additions and 4 deletions

View file

@ -9,7 +9,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:overScrollMode="never" android:overScrollMode="never"
android:paddingTop="@dimen/spacing_small" android:paddingTop="@dimen/spacing_small"
app:layoutManager=".accent.AutoGridLayoutManager" app:layoutManager="org.oxycblt.auxio.accent.AutoGridLayoutManager"
app:layout_constraintBottom_toTopOf="@+id/accent_cancel" app:layout_constraintBottom_toTopOf="@+id/accent_cancel"
app:layout_constraintTop_toBottomOf="@+id/accent_header" app:layout_constraintTop_toBottomOf="@+id/accent_header"
tools:itemCount="18" tools:itemCount="18"

View file

@ -3,7 +3,9 @@
<!-- <!--
TODO: Redo these dimens to line up with the 8dp grid. Tiny spacing can be used for TODO: Redo these dimens to line up with the 8dp grid. Tiny spacing can be used for
internal elements, but micro spacing needs to be phased out. Certain dimens need to internal elements, but micro spacing needs to be phased out. Certain dimens need to
be flattened and buttons need to become at least 48x48 be flattened and buttons need to become at least 48x48.
- The unbounded buttons can become 48x48 with 8dp of padding to keep icon dimens.
If the play icon is replaced then it will also be trivial to do with them as well.
--> -->
<!-- Spacing Namespace | Dimens for padding/margin attributes --> <!-- Spacing Namespace | Dimens for padding/margin attributes -->
@ -27,7 +29,7 @@
<dimen name="size_cover_compact">48dp</dimen> <dimen name="size_cover_compact">48dp</dimen>
<dimen name="size_cover_normal">56dp</dimen> <dimen name="size_cover_normal">56dp</dimen>
<dimen name="size_cover_huge_land">128dp</dimen> <dimen name="size_cover_huge_land">136dp</dimen>
<dimen name="size_cover_huge">264dp</dimen> <dimen name="size_cover_huge">264dp</dimen>
<dimen name="size_play_pause">72dp</dimen> <dimen name="size_play_pause">72dp</dimen>

View file

@ -2,6 +2,8 @@
<resources> <resources>
<!-- <!--
All the base themes/accents. All the base themes/accents.
TODO: Material You Theme. Theres no API support [yet], but I can use the system colors to
get it working well enough.
--> -->
<style name="Theme.Red" parent="Theme.Base"> <style name="Theme.Red" parent="Theme.Base">
<item name="colorAccent">@color/red</item> <item name="colorAccent">@color/red</item>

View file

@ -9,7 +9,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.0.0' classpath 'com.android.tools.build:gradle:7.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"