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:
Alexander Capehart
2022-08-15 20:21:58 -06:00
parent cafead8a88
commit e90983e85d
21 changed files with 5 additions and 22 deletions
@@ -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.