Sync: Update from upstream
This commit is contained in:
@@ -105,6 +105,16 @@ class UITweaks : Feature("UITweaks") {
|
|||||||
|
|
||||||
if (!hasSpotlightMarker) return false
|
if (!hasSpotlightMarker) return false
|
||||||
|
|
||||||
|
val matchesNavigationName = resourceNames.any { resourceEntryName ->
|
||||||
|
val isSpotlightTabName =
|
||||||
|
resourceEntryName.contains("spotlight", ignoreCase = true) ||
|
||||||
|
resourceEntryName.contains("following", ignoreCase = true)
|
||||||
|
val isNavigationName =
|
||||||
|
resourceEntryName.contains("hova_nav", ignoreCase = true) ||
|
||||||
|
resourceEntryName.contains("bottom_nav", ignoreCase = true) ||
|
||||||
|
resourceEntryName.contains("nav", ignoreCase = true) ||
|
||||||
|
resourceEntryName.contains("tab", ignoreCase = true)
|
||||||
|
isSpotlightTabName && isNavigationName
|
||||||
return resourceNames.any { resourceEntryName ->
|
return resourceNames.any { resourceEntryName ->
|
||||||
(
|
(
|
||||||
resourceEntryName.contains("spotlight", ignoreCase = true) ||
|
resourceEntryName.contains("spotlight", ignoreCase = true) ||
|
||||||
@@ -128,6 +138,15 @@ class UITweaks : Feature("UITweaks") {
|
|||||||
className.contains("tab", ignoreCase = true) ||
|
className.contains("tab", ignoreCase = true) ||
|
||||||
className.contains("hova", ignoreCase = true)
|
className.contains("hova", ignoreCase = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val matchesNavigationClass = classNames.any { className ->
|
||||||
|
className.contains("navigation", ignoreCase = true) ||
|
||||||
|
className.contains("bottom", ignoreCase = true) ||
|
||||||
|
className.contains("tab", ignoreCase = true) ||
|
||||||
|
className.contains("hova", ignoreCase = true)
|
||||||
|
}
|
||||||
|
|
||||||
|
return matchesNavigationName || matchesNavigationClass
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onActivityCreate() {
|
private fun onActivityCreate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user