From 252d761b9ee9281974ed97bf2481bea92defbd1a Mon Sep 17 00:00:00 2001 From: aliveoutside <53598473+aliveoutside@users.noreply.github.com> Date: Thu, 28 Jul 2022 17:07:06 +0300 Subject: [PATCH] [accents] hook VKTabLayout instead of TabLayout --- .../java/ru/vtosters/lite/themes/hooks/TabLayoutHook.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/ru/vtosters/lite/themes/hooks/TabLayoutHook.java b/app/src/main/java/ru/vtosters/lite/themes/hooks/TabLayoutHook.java index 5561ead0d..12b35d1e5 100644 --- a/app/src/main/java/ru/vtosters/lite/themes/hooks/TabLayoutHook.java +++ b/app/src/main/java/ru/vtosters/lite/themes/hooks/TabLayoutHook.java @@ -3,15 +3,15 @@ package ru.vtosters.lite.themes.hooks; import android.content.res.ColorStateList; import android.view.View; -import com.google.android.material.tabs.TabLayout; +import com.vk.core.view.VKTabLayout; import ru.vtosters.lite.utils.Themes; public class TabLayoutHook implements BaseHook { @Override public void inject(View view, int i, boolean z) { - if (view instanceof TabLayout) { - var tabLayout = (TabLayout) view; + if (view instanceof VKTabLayout) { + var tabLayout = (VKTabLayout) view; tabLayout.setSelectedTabIndicatorColor(Themes.getAccentColor()); tabLayout.setTabRippleColor(ColorStateList.valueOf(Themes.getAccentColor())); }