Suppress lint warning. MenuBuilder is restricted.

This commit is contained in:
Benoit Marty 2023-11-08 17:51:03 +01:00
parent 2c75f41072
commit dd6410794c

View File

@ -97,6 +97,7 @@ class SessionsListHeaderView @JvmOverloads constructor(
}
}
@Suppress("RestrictedApi")
private fun setMenu(typedArray: TypedArray) {
val menuResId = typedArray.getResourceId(R.styleable.SessionsListHeaderView_sessionsListHeaderMenu, -1)
if (menuResId == -1) {