diff --git a/app/src/main/java/com/nin0dev/vendroid/WelcomeActivity.kt b/app/src/main/java/com/nin0dev/vendroid/WelcomeActivity.kt index 950772b..5cca6af 100644 --- a/app/src/main/java/com/nin0dev/vendroid/WelcomeActivity.kt +++ b/app/src/main/java/com/nin0dev/vendroid/WelcomeActivity.kt @@ -27,25 +27,6 @@ class WelcomeActivity : AppCompatActivity() { setContentView(R.layout.activity_welcome) - val devbuildCheckbox = findViewById(R.id.allow_custom_location) - devbuildCheckbox.setOnClickListener { - if (devbuildCheckbox.isChecked) { - MaterialAlertDialogBuilder(this) - .setTitle("Warning") - .setMessage("If you set a custom location, you will be loading and injecting Vencord from a different location. This feature is meant for developers ONLY. Never edit this setting if someone else asked you to, or if you don't know what you're doing! If you do set a custom location, you will not be able to ask for support in the Vencord support channel or in this project's issues. Are you sure you want to continue?") - .setNegativeButton(resources.getString(R.string.no)) { _, _ -> - devbuildCheckbox.isChecked = false - } - .setPositiveButton(resources.getString(R.string.yes)) { _, _ -> - findViewById(R.id.custom_location).visibility = VISIBLE - } - .show() - } - else { - findViewById(R.id.custom_location).visibility = GONE - } - } - findViewById(R.id.save_settings).setOnClickListener { val sPrefs = getSharedPreferences("settings", Context.MODE_PRIVATE) val editor = sPrefs.edit() @@ -54,7 +35,6 @@ class WelcomeActivity : AppCompatActivity() { if (findViewById(R.id.stable).isChecked) editor.putString("discordBranch", "stable") if (findViewById(R.id.ptb).isChecked) editor.putString("discordBranch", "ptb") if (findViewById(R.id.canary).isChecked) editor.putString("discordBranch", "canary") - if (findViewById(R.id.allow_custom_location).isChecked && findViewById(R.id.custom_location).text.isNotBlank()) editor.putString("vencordLocation", findViewById(R.id.custom_location).text.toString()) editor.apply() finish() diff --git a/app/src/main/res/layout/activity_welcome.xml b/app/src/main/res/layout/activity_welcome.xml index 3905fe6..05f3f76 100644 --- a/app/src/main/res/layout/activity_welcome.xml +++ b/app/src/main/res/layout/activity_welcome.xml @@ -71,34 +71,6 @@ android:text="@string/canary" /> - - - - - - - - - -