Properly incorporate upstream fixes in tabs tray component

pull/108/head
Abhijit Valluri 4 years ago committed by Abhijit Kiran Valluri
parent 4e6810bfb3
commit 3618830001

@ -262,14 +262,9 @@ class TabTrayView(
concatAdapter.addAdapter(syncedTabsController.adapter)
}
// Disabling the following block of code because it causes a crash when
// accessibility services are enabled! `notifyDataSetChanged()` is incompatible
// with concatAdapter. See: https://github.com/mozilla-mobile/fenix/issues/14540
// WARNING: Merging the upstream fix for this will cause lot of conflicts!
//
// if (hasAccessibilityEnabled) {
// tabsAdapter.notifyItemRangeChanged(0, tabs.size)
// }
if (hasAccessibilityEnabled) {
tabsAdapter.notifyItemRangeChanged(0, tabs.size)
}
if (!hasLoaded) {
hasLoaded = true

@ -8,6 +8,6 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/primary_text_normal_theme"
android:fillColor="?primaryText"
android:pathData="M13,4a1,1 0,1 0,-2 0v7H4a1,1 0,1 0,0 2h7v7a1,1 0,1 0,2 0v-7h7a1,1 0,1 0,0 -2h-7V4z" />
</vector>

@ -151,6 +151,7 @@
app:layout_constraintBottom_toBottomOf="@id/tab_layout"
app:layout_constraintEnd_toStartOf="@id/tab_tray_overflow"
app:layout_constraintTop_toTopOf="@id/tab_layout"
app:tint="@color/primary_text_normal_theme"
app:srcCompat="@drawable/ic_new" />
<ImageButton

@ -151,6 +151,7 @@
app:layout_constraintBottom_toBottomOf="@id/tab_layout"
app:layout_constraintEnd_toStartOf="@id/tab_tray_overflow"
app:layout_constraintTop_toTopOf="@id/tab_layout"
app:tint="@color/primary_text_normal_theme"
app:srcCompat="@drawable/ic_new" />
<ImageButton

@ -138,6 +138,7 @@
app:layout_constraintBottom_toBottomOf="@id/tab_layout"
app:layout_constraintEnd_toStartOf="@id/tab_tray_overflow"
app:layout_constraintTop_toTopOf="@id/tab_layout"
app:tint="@color/primary_text_normal_theme"
app:srcCompat="@drawable/ic_new" />
<ImageButton

Loading…
Cancel
Save