conradchen d1895cdd35 [Tab] Mutate selected indicator drawable when it's being set
Wrapping and mutating a given drawable which is supposed to be tinted is a standard practice across the Material library. This CL applies the same logic to Tab's selected indicator drawables and also refactoring the relevant logic a bit to make it cleaner.

Resolves https://github.com/material-components/material-components-android/issues/2794

PiperOrigin-RevId: 460765659
2022-07-13 19:53:29 +00:00
..