Restrict theme picker for QKSMS+

This commit is contained in:
Moez Bhatti
2018-03-27 15:31:11 -04:00
parent 66346562c0
commit 40ae8d61c3
7 changed files with 45 additions and 15 deletions
@@ -29,14 +29,14 @@ class ThemePagerAdapter @Inject constructor(private val context: Context) : Page
override fun instantiateItem(container: ViewGroup, position: Int): Any {
return when (position) {
1 -> container.findViewById(R.id.rgbPicker)
1 -> container.findViewById(R.id.hsvPicker)
else -> container.findViewById(R.id.materialColors)
}
}
override fun getPageTitle(position: Int): CharSequence? {
return when (position) {
1 -> context.getString(R.string.theme_rgb)
1 -> context.getString(R.string.theme_plus)
else -> context.getString(R.string.theme_material)
}
}