|
|
@ -18,6 +18,7 @@ import io.legado.app.databinding.ActivityBookSourceEditBinding |
|
|
|
import io.legado.app.help.config.LocalConfig |
|
|
|
import io.legado.app.help.config.LocalConfig |
|
|
|
import io.legado.app.lib.dialogs.SelectItem |
|
|
|
import io.legado.app.lib.dialogs.SelectItem |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
|
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.lib.theme.backgroundColor |
|
|
|
import io.legado.app.lib.theme.backgroundColor |
|
|
|
import io.legado.app.lib.theme.primaryColor |
|
|
|
import io.legado.app.lib.theme.primaryColor |
|
|
|
import io.legado.app.ui.book.source.debug.BookSourceDebugActivity |
|
|
|
import io.legado.app.ui.book.source.debug.BookSourceDebugActivity |
|
|
@ -140,6 +141,7 @@ class BookSourceEditActivity : |
|
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(this) |
|
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(this) |
|
|
|
binding.recyclerView.adapter = adapter |
|
|
|
binding.recyclerView.adapter = adapter |
|
|
|
binding.tabLayout.setBackgroundColor(backgroundColor) |
|
|
|
binding.tabLayout.setBackgroundColor(backgroundColor) |
|
|
|
|
|
|
|
binding.tabLayout.setSelectedTabIndicatorColor(accentColor) |
|
|
|
binding.tabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener { |
|
|
|
binding.tabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener { |
|
|
|
override fun onTabReselected(tab: TabLayout.Tab?) { |
|
|
|
override fun onTabReselected(tab: TabLayout.Tab?) { |
|
|
|
|
|
|
|
|
|
|
|