From b10306a9b91ad6d3b21da4e1f55bf3f8cc117719 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 31 Jul 2017 22:24:48 +0200 Subject: [PATCH] use the primary color for selecting tablayout current item --- .../com/simplemobiletools/gallery/dialogs/SecurityDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SecurityDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SecurityDialog.kt index a8a8d60e7..55d0064d5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SecurityDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SecurityDialog.kt @@ -22,6 +22,7 @@ class SecurityDialog(val activity: SimpleActivity, val requiredHash: String, val val viewPager = findViewById(R.id.dialog_tab_view_pager) as MyDialogViewPager val textColor = context.config.textColor dialog_tab_layout.setTabTextColors(textColor, textColor) + dialog_tab_layout.setSelectedTabIndicatorColor(context.config.primaryColor) dialog_tab_layout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener { override fun onTabReselected(tab: TabLayout.Tab?) { }