Bug 1962168 - part 2 - Rename the AC TabCounter to TabCounterView r=android-reviewers,Roger

This will free the name for the composable version.
Needed as a separate commit to distinguish the changes, otherwise it
will be like the composable code modified the View code.

Differential Revision: https://phabricator.services.mozilla.com/D247461
This commit is contained in:
Mugurell
2025-05-12 10:40:31 +00:00
committed by plingurar@mozilla.com
parent 58542e9b4c
commit 0832c0ebd6
15 changed files with 42 additions and 42 deletions

View File

@@ -60,7 +60,7 @@ import mozilla.components.support.ktx.android.content.res.resolveAttribute
import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.android.view.setupPersistentInsets
import mozilla.components.support.ktx.util.URLStringUtils
import mozilla.components.ui.tabcounter.TabCounter
import mozilla.components.ui.tabcounter.TabCounterView
import org.mozilla.samples.toolbar.compose.BrowserToolbar
import org.mozilla.samples.toolbar.databinding.ActivityToolbarBinding
import org.mozilla.samples.toolbar.middleware.BrowserToolbarMiddleware
@@ -328,7 +328,7 @@ class ToolbarActivity : AppCompatActivity() {
}
private class FakeTabCounterToolbarButton : Toolbar.Action {
override fun createView(parent: ViewGroup): View = TabCounter(parent.context).apply {
override fun createView(parent: ViewGroup): View = TabCounterView(parent.context).apply {
setCount(2)
setBackgroundResource(
parent.context.theme.resolveAttribute(android.R.attr.selectableItemBackgroundBorderless),