all: android 13 cleanup
Low-hanging fruit android 13 changes. This includes fixing some lints and adding a basic monochrome icon. Maybe I'll improve that icon later.
This commit is contained in:
@@ -56,7 +56,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
|
||||
(layoutParams as CoordinatorLayout.LayoutParams).behavior = Behavior(context)
|
||||
}
|
||||
|
||||
private fun findTitleView(): AppCompatTextView? {
|
||||
private fun findTitleView(): AppCompatTextView {
|
||||
val titleView = titleView
|
||||
if (titleView != null) {
|
||||
return titleView
|
||||
@@ -106,11 +106,11 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
|
||||
to = 0f
|
||||
}
|
||||
|
||||
if (titleView?.alpha == to) return
|
||||
if (titleView.alpha == to) return
|
||||
|
||||
this.titleAnimator =
|
||||
ValueAnimator.ofFloat(from, to).apply {
|
||||
addUpdateListener { titleView?.alpha = it.animatedValue as Float }
|
||||
addUpdateListener { titleView.alpha = it.animatedValue as Float }
|
||||
duration = TOOLBAR_FADE_DURATION
|
||||
start()
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.combine
|
||||
import kotlinx.coroutines.launch
|
||||
import org.oxycblt.auxio.R
|
||||
|
||||
/**
|
||||
* Determines if the point given by [x] and [y] falls within this view.
|
||||
|
||||
Reference in New Issue
Block a user