fixed preference saving
This commit is contained in:
parent
4daee42a0b
commit
e5baad5d5f
|
@ -47,8 +47,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
override fun onTabSelected(tab: TabLayout.Tab) {
|
override fun onTabSelected(tab: TabLayout.Tab) {
|
||||||
getDefaultSharedPreferences(this@MainActivity).edit().putString("vanced_variant",
|
getDefaultSharedPreferences(this@MainActivity).edit().putString("vanced_variant",
|
||||||
when (tab.position) {
|
when (tab.position) {
|
||||||
1 -> "music"
|
1 -> "root"
|
||||||
2 -> "root"
|
|
||||||
else -> "nonroot"
|
else -> "nonroot"
|
||||||
}
|
}
|
||||||
).apply()
|
).apply()
|
||||||
|
|
Loading…
Reference in New Issue