fixed preference saving

This commit is contained in:
X1nto 2020-09-12 20:18:05 +04:00
parent 4daee42a0b
commit e5baad5d5f
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ class MainActivity : AppCompatActivity() {
override fun onTabSelected(tab: TabLayout.Tab) {
getDefaultSharedPreferences(this@MainActivity).edit().putString("vanced_variant",
when (tab.position) {
1 -> "music"
2 -> "root"
1 -> "root"
else -> "nonroot"
}
).apply()