From 7537f6ae95d5b76be16f59dee851cb61e5a167f1 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sun, 14 Jun 2026 22:07:25 -0600 Subject: [PATCH] playback: fix lints --- .../ui/RoundModeMaskableFrameLayout.kt | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/playback/ui/RoundModeMaskableFrameLayout.kt b/app/src/main/java/org/oxycblt/auxio/playback/ui/RoundModeMaskableFrameLayout.kt index a0918f03e..7de0a0681 100644 --- a/app/src/main/java/org/oxycblt/auxio/playback/ui/RoundModeMaskableFrameLayout.kt +++ b/app/src/main/java/org/oxycblt/auxio/playback/ui/RoundModeMaskableFrameLayout.kt @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2026 Auxio Project + * RoundModeMaskableFrameLayout.kt is part of Auxio. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package org.oxycblt.auxio.playback.ui import android.content.Context @@ -5,17 +23,15 @@ import android.util.AttributeSet import com.google.android.material.carousel.MaskableFrameLayout import com.google.android.material.shape.ShapeAppearanceModel import dagger.hilt.android.AndroidEntryPoint -import org.oxycblt.auxio.ui.UISettings import javax.inject.Inject +import org.oxycblt.auxio.ui.UISettings @AndroidEntryPoint -class RoundModeMaskableFrameLayout @JvmOverloads constructor( - context: Context, - attrs: AttributeSet? = null, - defStyleRes: Int = -1 -) : MaskableFrameLayout(context, attrs, defStyleRes) { - @Inject - lateinit var uiSettings: UISettings +class RoundModeMaskableFrameLayout +@JvmOverloads +constructor(context: Context, attrs: AttributeSet? = null, defStyleRes: Int = -1) : + MaskableFrameLayout(context, attrs, defStyleRes) { + @Inject lateinit var uiSettings: UISettings init { // The parent FrameLayout will have already fetched/applied a rounded shape appearance @@ -24,4 +40,4 @@ class RoundModeMaskableFrameLayout @JvmOverloads constructor( shapeAppearanceModel = ShapeAppearanceModel.builder().build() } } -} \ No newline at end of file +}