test
This commit is contained in:
parent
3db4ed9bf8
commit
756f3f89a5
|
@ -30,7 +30,7 @@ import zlc.season.rxdownload4.utils.getFileNameFromUrl
|
||||||
open class BaseFragment : Fragment() {
|
open class BaseFragment : Fragment() {
|
||||||
|
|
||||||
private var disposable: Disposable? = null
|
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/"
|
private val baseUrl = "https://x1nto.github.io/VancedFiles/Splits/"
|
||||||
|
|
||||||
fun openUrl(Url: String, color: Int) {
|
fun openUrl(Url: String, color: Int) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.vanced.manager.core.fragments
|
package com.vanced.manager.core.fragments
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.Button
|
import android.widget.Button
|
||||||
|
@ -16,6 +17,7 @@ open class LanguageInstall : BaseFragment() {
|
||||||
|
|
||||||
val finishButton = view.findViewById<Button>(R.id.vanced_install_finish)
|
val finishButton = view.findViewById<Button>(R.id.vanced_install_finish)
|
||||||
val langGroup = view.findViewById<RadioGroup>(R.id.lang_radiogroup)
|
val langGroup = view.findViewById<RadioGroup>(R.id.lang_radiogroup)
|
||||||
|
val prefs = activity?.getSharedPreferences("installPrefs", Context.MODE_PRIVATE)
|
||||||
|
|
||||||
finishButton.setOnClickListener {
|
finishButton.setOnClickListener {
|
||||||
val selectedLangId = langGroup.checkedRadioButtonId
|
val selectedLangId = langGroup.checkedRadioButtonId
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.vanced.manager.core.fragments
|
package com.vanced.manager.core.fragments
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.*
|
import android.widget.*
|
||||||
|
@ -14,6 +15,7 @@ open class ThemeInstall : BaseFragment() {
|
||||||
|
|
||||||
val nextButton = view.findViewById<Button>(R.id.vanced_next_to_variant)
|
val nextButton = view.findViewById<Button>(R.id.vanced_next_to_variant)
|
||||||
val themeGroup = view.findViewById<RadioGroup>(R.id.theme_radiogroup)
|
val themeGroup = view.findViewById<RadioGroup>(R.id.theme_radiogroup)
|
||||||
|
val prefs = activity?.getSharedPreferences("installPrefs", Context.MODE_PRIVATE)
|
||||||
|
|
||||||
nextButton.setOnClickListener {
|
nextButton.setOnClickListener {
|
||||||
val selectedThemeId = themeGroup.checkedRadioButtonId
|
val selectedThemeId = themeGroup.checkedRadioButtonId
|
||||||
|
|
Loading…
Reference in New Issue