ui: update material components
Update MDC to the alpha version in order to use some extra features. I was planning to switch to the new MaterialSwitch, but alpha03 has this insane crippling issue with ripples that blocks such. Use alpha02 and prep the app for the addition of the switch.
This commit is contained in:
@@ -112,7 +112,9 @@ data class Song(
|
||||
get() {
|
||||
var result = rawName.lowercase().hashCode().toLong()
|
||||
result = 31 * result + album.rawName.lowercase().hashCode()
|
||||
result = 31 * result + (album.artist.rawName?.lowercase() ?: MediaStore.UNKNOWN_STRING).hashCode()
|
||||
result =
|
||||
31 * result +
|
||||
(album.artist.rawName?.lowercase() ?: MediaStore.UNKNOWN_STRING).hashCode()
|
||||
result = 31 * result + (track ?: 0)
|
||||
result = 31 * result + (disc ?: 0)
|
||||
result = 31 * result + durationMs
|
||||
@@ -219,7 +221,8 @@ data class Album(
|
||||
override val id: Long
|
||||
get() {
|
||||
var result = rawName.lowercase().hashCode().toLong()
|
||||
result = 31 * result + (artist.rawName?.lowercase() ?: MediaStore.UNKNOWN_STRING).hashCode()
|
||||
result =
|
||||
31 * result + (artist.rawName?.lowercase() ?: MediaStore.UNKNOWN_STRING).hashCode()
|
||||
result = 31 * result + (date?.year ?: 0)
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
package org.oxycblt.auxio.widgets
|
||||
|
||||
import android.appwidget.AppWidgetHostView
|
||||
import android.appwidget.AppWidgetManager
|
||||
import android.appwidget.AppWidgetProvider
|
||||
import android.content.ComponentName
|
||||
@@ -132,9 +131,7 @@ class WidgetProvider : AppWidgetProvider() {
|
||||
|
||||
// Each widget has independent dimensions, so we iterate through them all
|
||||
// and do this for each.
|
||||
val ids = getAppWidgetIds(name)
|
||||
|
||||
for (id in ids) {
|
||||
for (id in getAppWidgetIds(name)) {
|
||||
val options = getAppWidgetOptions(id)
|
||||
|
||||
val width: Int
|
||||
|
||||
Reference in New Issue
Block a user