Bug 1870050 - Suppress RestrictedApi lint

fenix/124.1.0
mcarare 5 months ago committed by mergify[bot]
parent b98ddf8a46
commit 030332e0c7

@ -121,7 +121,7 @@ class FenixSnackbar private constructor(
* Suppressing ComplexCondition. Yes it's unfortunately complex but that's the nature
* of the snackbar handling by Android. It will be simpler once dynamic toolbar is always on.
*/
@Suppress("ComplexCondition")
@Suppress("ComplexCondition", "RestrictedApi")
fun make(
view: View,
duration: Int = LENGTH_LONG,

@ -33,6 +33,7 @@ fun Toolbar.setToolbarColors(@ColorInt foreground: Int, @ColorInt background: In
}
}
@Suppress("RestrictedApi")
private fun themeActionMenuView(item: ActionMenuView, colorFilter: ColorFilter?) {
item.forEach { innerChild ->
if (innerChild is ActionMenuItemView) {

Loading…
Cancel
Save