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) {
|
||||
getDefaultSharedPreferences(this@MainActivity).edit().putString("vanced_variant",
|
||||
when (tab.position) {
|
||||
1 -> "music"
|
||||
2 -> "root"
|
||||
1 -> "root"
|
||||
else -> "nonroot"
|
||||
}
|
||||
).apply()
|
||||
|
|
Loading…
Reference in New Issue