This commit is contained in:
X1nto 2020-05-26 21:59:38 +04:00
parent 3db4ed9bf8
commit 756f3f89a5
3 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@ import zlc.season.rxdownload4.utils.getFileNameFromUrl
open class BaseFragment : Fragment() {
private var disposable: Disposable? = null
val prefs = activity?.getSharedPreferences("installPref", Context.MODE_PRIVATE)
private val prefs = activity?.getSharedPreferences("installPrefs", Context.MODE_PRIVATE)
private val baseUrl = "https://x1nto.github.io/VancedFiles/Splits/"
fun openUrl(Url: String, color: Int) {

View File

@ -1,5 +1,6 @@
package com.vanced.manager.core.fragments
import android.content.Context
import android.os.Bundle
import android.view.View
import android.widget.Button
@ -16,6 +17,7 @@ open class LanguageInstall : BaseFragment() {
val finishButton = view.findViewById<Button>(R.id.vanced_install_finish)
val langGroup = view.findViewById<RadioGroup>(R.id.lang_radiogroup)
val prefs = activity?.getSharedPreferences("installPrefs", Context.MODE_PRIVATE)
finishButton.setOnClickListener {
val selectedLangId = langGroup.checkedRadioButtonId

View File

@ -1,5 +1,6 @@
package com.vanced.manager.core.fragments
import android.content.Context
import android.os.Bundle
import android.view.View
import android.widget.*
@ -14,6 +15,7 @@ open class ThemeInstall : BaseFragment() {
val nextButton = view.findViewById<Button>(R.id.vanced_next_to_variant)
val themeGroup = view.findViewById<RadioGroup>(R.id.theme_radiogroup)
val prefs = activity?.getSharedPreferences("installPrefs", Context.MODE_PRIVATE)
nextButton.setOnClickListener {
val selectedThemeId = themeGroup.checkedRadioButtonId