mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Fix MainFragment tab icons did not follow theme color
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package org.schabi.newpipe.fragments; | ||||
|  | ||||
| import android.content.Context; | ||||
| import android.content.res.ColorStateList; | ||||
| import android.os.Bundle; | ||||
| import android.preference.PreferenceManager; | ||||
| import android.util.Log; | ||||
| @@ -31,6 +32,7 @@ import org.schabi.newpipe.settings.tabs.Tab; | ||||
| import org.schabi.newpipe.settings.tabs.TabsManager; | ||||
| import org.schabi.newpipe.util.NavigationHelper; | ||||
| import org.schabi.newpipe.util.ServiceHelper; | ||||
| import org.schabi.newpipe.util.ThemeHelper; | ||||
| import org.schabi.newpipe.views.ScrollableTabLayout; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| @@ -90,6 +92,7 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte | ||||
|         tabLayout = rootView.findViewById(R.id.main_tab_layout); | ||||
|         viewPager = rootView.findViewById(R.id.pager); | ||||
|  | ||||
|         tabLayout.setTabIconTint(ColorStateList.valueOf(ThemeHelper.resolveColorFromAttr(requireContext(), R.attr.colorAccent))); | ||||
|         tabLayout.setupWithViewPager(viewPager); | ||||
|         tabLayout.addOnTabSelectedListener(this); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox