wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.96k stars 1.31k forks source link

Address `RestrictedApi` lint warning in `WPMainNavigationView` #21079

Open wzieba opened 1 month ago

wzieba commented 1 month ago

Expected behavior

WPMainNavigationView doesn't use internal-only classes from Material library.

Actual behavior

WPMainNavigationView uses BottomNavigationMenuView and BottomNavigationItemView classes, which are restricted to library group only (internal in a sense).

https://github.com/material-components/material-components-android/blob/e1a103e2e11984baa675b06d9b52290f88f4478e/lib/java/com/google/android/material/bottomnavigation/BottomNavigationMenuView.java#L40-L42

Steps to reproduce the behavior

Remove lint rule suppression in WPMainNavigationView and run lintWordpressVanillaRelease task

dangermattic commented 1 month ago

Thanks for reporting! 👍