commit | fa387b4fc5131db7e48ef45c7be501d12cf3838a | [log] [tgz] |
---|---|---|
author | Sebastiano Barezzi <barezzisebastiano@gmail.com> | Wed Nov 02 01:36:38 2022 +0100 |
committer | LuK1337 <priv.luk@gmail.com> | Wed Nov 02 11:31:30 2022 +0100 |
tree | 10de44cab60023dd20cc1b310260acd017057467 | |
parent | 4af79cbb2ee2e02bffc769061f6512d8b9409938 [diff] |
Aperture: Suppress InflateParams warnings Change-Id: I9a2b068efe10694fb705167d84f913b288fd3fc4
diff --git a/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt b/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt index 522a412..ec3004c 100644 --- a/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt +++ b/app/src/main/java/org/lineageos/aperture/QrImageAnalyzer.kt
@@ -5,6 +5,7 @@ package org.lineageos.aperture +import android.annotation.SuppressLint import android.app.Activity import android.app.KeyguardManager import android.content.ClipData @@ -163,6 +164,7 @@ } } + @SuppressLint("InflateParams") private fun inflateButton(): MaterialButton { val button = activity.layoutInflater.inflate( R.layout.qr_bottom_sheet_action_button, null
diff --git a/app/src/main/java/org/lineageos/aperture/ui/LensSelectorLayout.kt b/app/src/main/java/org/lineageos/aperture/ui/LensSelectorLayout.kt index 2824594..77b5490 100644 --- a/app/src/main/java/org/lineageos/aperture/ui/LensSelectorLayout.kt +++ b/app/src/main/java/org/lineageos/aperture/ui/LensSelectorLayout.kt
@@ -83,6 +83,7 @@ updateButtonsAttributes() } + @SuppressLint("InflateParams") private fun inflateButton(): Button { val button = layoutInflater.inflate(R.layout.lens_selector_button, null) as Button return button.apply {