For #22177: rename RootLinearLayout -> HomeActivityRoot...

This is so we can be more specific with the detail text in our markers.
upstream-sync
Michael Comella 3 years ago committed by mergify[bot]
parent f02ebe1650
commit ed8f2c0bc3

@ -8,14 +8,15 @@ import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
import mozilla.components.concept.base.profiler.Profiler
import org.mozilla.fenix.HomeActivity
private const val DETAIL_TEXT = "RootLinearLayout"
/**
* A [LinearLayout] that adds profiler markers for various methods. This is intended to be used on
* the root view of the view hierarchy to understand global measure/layout events.
* the root view of [HomeActivity]'s view hierarchy to understand global measure/layout events.
*/
class RootLinearLayout(context: Context, attrs: AttributeSet) : LinearLayout(context, attrs) {
class HomeActivityRootLinearLayout(context: Context, attrs: AttributeSet) : LinearLayout(context, attrs) {
var profilerProvider: () -> Profiler? = { null }

@ -1,7 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<org.mozilla.fenix.perf.RootLinearLayout
<org.mozilla.fenix.perf.HomeActivityRootLinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
@ -25,4 +25,4 @@
android:layout_height="match_parent"
app:defaultNavHost="true"
app:navGraph="@navigation/nav_graph" />
</org.mozilla.fenix.perf.RootLinearLayout>
</org.mozilla.fenix.perf.HomeActivityRootLinearLayout>

Loading…
Cancel
Save