Suppress Mozilla's new lint errors

pull/234/head
Adam Novak 4 years ago
parent a6e01d9f8b
commit 0082e32088

@ -53,6 +53,10 @@ private const val DEFAULT_VALUE = Int.MAX_VALUE
/**
* A dialog that shows [Addon] installation confirmation.
*/
// We have an extra "Lint" Android Studio linter pass that Android Components
// where the original code came from doesn't. So we tell it to ignore us. Make
// sure to keep up with changes in Android Components though.
@SuppressLint("all")
class PagedAddonInstallationDialogFragment : AppCompatDialogFragment() {
private val scope = CoroutineScope(Dispatchers.IO)
@VisibleForTesting internal var iconJob: Job? = null

@ -58,6 +58,10 @@ private const val VIEW_HOLDER_TYPE_ADDON = 2
* @property style Indicates how items should look like.
*/
@Suppress("TooManyFunctions", "LargeClass")
// We have an extra "Lint" Android Studio linter pass that Android Components
// where the original code came from doesn't. So we tell it to ignore us. Make
// sure to keep up with changes in Android Components though.
@SuppressLint("all")
class PagedAddonsManagerAdapter(
private val addonCollectionProvider: PagedAddonCollectionProvider,
private val addonsManagerDelegate: AddonsManagerAdapterDelegate,

@ -25,6 +25,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/infoBanner"
android:visibility="gone"
android:layout_width="match_parent"
@ -48,6 +49,7 @@
app:layout_constraintBottom_toTopOf="@id/infoBanner" />
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/topBar"
android:layout_width="match_parent"
android:layout_height="50dp"

@ -25,6 +25,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/infoBanner"
android:visibility="gone"
android:layout_width="match_parent"
@ -49,6 +50,7 @@
app:layout_constraintTop_toBottomOf="@id/infoBanner" />
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/topBar"
android:layout_width="match_parent"
android:layout_height="50dp"

@ -25,6 +25,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/infoBanner"
android:visibility="gone"
android:layout_width="match_parent"
@ -49,6 +50,7 @@
app:layout_constraintTop_toBottomOf="@id/infoBanner" />
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/topBar"
android:layout_width="match_parent"
android:layout_height="80dp"

@ -25,6 +25,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/infoBanner"
android:visibility="gone"
android:layout_width="match_parent"
@ -48,6 +49,7 @@
app:layout_constraintBottom_toTopOf="@id/infoBanner" />
<androidx.constraintlayout.widget.ConstraintLayout
tools:ignore="MozMultipleConstraintLayouts"
android:id="@+id/topBar"
android:layout_width="match_parent"
android:layout_height="80dp"

Loading…
Cancel
Save