0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-22 19:25:11 +00:00

resource cleanup

This commit is contained in:
X1nto 2020-06-02 17:26:40 +04:00
parent 33b533317f
commit c493b4fa77
43 changed files with 29 additions and 328 deletions

View file

@ -53,7 +53,7 @@ open class BaseFragment : Fragment() {
@SuppressLint("SdCardPath")
fun isRootVancedInstalled(): Boolean {
val file = File("/data/data/com.google.android.youtube/shared_prefs/youtube_vanced.xml")
val file = File("/data/data/com.google.android.youtube/shared_prefs/", "youtube_vanced.xml")
return activity?.packageManager?.let {
isPackageInstalled("com.google.android.youtube",
it

View file

@ -68,7 +68,14 @@ open class Home : BaseFragment() {
} catch (e: Exception) {
Log.d("VMCache", "Unable to delete cacheDir")
}
view.findNavController().navigate(R.id.toInstallThemeFragment)
if (prefs.getBoolean("valuesModified", false)) {
val loadBar = view.findViewById<ProgressBar>(R.id.vanced_progress)
val dlText = view.findViewById<TextView>(R.id.vanced_downloading)
val loadCircle = view.findViewById<ProgressBar>(R.id.vanced_installing)
downloadArch(loadBar!!, dlText!!, loadCircle!!)
prefs.edit().putBoolean("isInstalling", false).apply()
} else
view.findNavController().navigate(R.id.toInstallThemeFragment)
} else {
Toast.makeText(activity, "Please wait until installation finishes", Toast.LENGTH_SHORT).show()
}
@ -118,18 +125,25 @@ open class Home : BaseFragment() {
microgsettingsbtn.visibility = View.INVISIBLE
microguninstallbtn.visibility = View.INVISIBLE
microgVerText.text = getString(R.string.unavailable)
vancedinstallbtn.isEnabled = PreferenceManager.getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot") != "Nonroot"
if (!vancedinstallbtn.isEnabled) {
vancedinstallbtn.setBackgroundColor(R.attr.colorDisabled)
vancedinstallbtn.setTextColor(R.attr.colorDisabledVariant)
}
vancedinstallbtn.visibility =
if (PreferenceManager.getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot") == "Nonroot")
View.GONE
else
View.VISIBLE
}
val vancedVerText = view.findViewById<TextView>(R.id.vanced_installed_version)
if (vancedStatus!!) {
val vancedVer = pm.getPackageInfo("com.vanced.android.youtube", 0).versionName
val vancedVer =
if (PreferenceManager.getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot") == "Root")
pm.getPackageInfo("com.google.android.youtube", 0).versionName
else
pm.getPackageInfo("com.vanced.android.youtube", 0).versionName
vanceduninstallbtn.setOnClickListener {
uninstallApk("com.vanced.android.youtube")
if (PreferenceManager.getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot") == "Root")
uninstallApk("com.vanced.android.youtube")
else
uninstallApk("com.google.android.youtube")
}
vancedVerText.text = vancedVer
} else {

View file

@ -28,6 +28,7 @@ open class LanguageInstall : BaseFragment() {
val selectedButton = view.findViewById<RadioButton>(selectedLangId)
prefs?.edit()?.putString("lang", selectedButton.tag.toString())?.apply()
prefs?.edit()?.putBoolean("isInstalling", true)?.apply()
prefs?.edit()?.putBoolean("valuesModified", true)?.apply()
view.findNavController().navigate(R.id.action_installTo_homeFragment)
}

View file

@ -43,6 +43,7 @@ class ChosenPreferenceDialogFragment : DialogFragment() {
resetbtn.setOnClickListener {
prefs?.edit()?.putString("theme", "dark")?.apply()
prefs?.edit()?.putString("lang", "en")?.apply()
prefs?.edit()?.putBoolean("valuesModified", false)?.apply()
dismiss()
}

View file

@ -48,7 +48,7 @@ class HomeFragment : Home() {
val variantPref = getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot")
val microgWrapper = view.findViewById<MaterialCardView>(R.id.home_microg_wrapper)
if (variantPref == "root") {
if (variantPref == "Root") {
activity?.runOnUiThread {
microgWrapper.visibility = View.GONE
}

View file

@ -1,40 +0,0 @@
package com.vanced.manager.ui.fragments
/*
import android.app.Activity
import android.app.Application
import android.content.pm.PackageManager
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.ViewModel
import com.dezlum.codelabs.getjson.GetJson
import com.google.gson.JsonObject
class HomeViewModel(application: Application): AndroidViewModel(application) {
private val pm: PackageManager? = Activity().packageManager
//we need to check whether these apps are installed or not
val microgStatus: Boolean? = pm?.let { isPackageInstalled("com.mgoogle.android.gms", it) }
val vancedStatus: Boolean? = pm?.let { isPackageInstalled("com.vanced.android.youtube", it) }
private fun isPackageInstalled(packageName: String, packageManager: PackageManager): Boolean {
return try {
packageManager.getPackageInfo(packageName, 0)
true
} catch (e: PackageManager.NameNotFoundException) {
false
}
}
val microgInstalledTxt: String? = pm?.getPackageInfo("com.mgoogle.android.gms", 0)?.versionName
val vancedInstalledTxt: String? = pm?.getPackageInfo("com.vanced.android.youtube", 0)?.versionName
val isConnected: Boolean = GetJson().isConnected(getApplication())
private val vancedVer: JsonObject = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/vanced.json")
private val microgVer: JsonObject = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/microg.json")
val vancedLatestTxt: String? = vancedVer.get("version").asString
val microgLatestTxt: String? = microgVer.get("version").asString
}
*/

View file

@ -41,7 +41,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
installMode?.summary = preferenceScreen.sharedPreferences.getString("vanced_variant", "Nonroot")
installMode?.setOnPreferenceChangeListener{ _, _ ->
when (installMode.value) {
"Root" -> {
"Nonroot" -> {
if (!Shell.rootAccess()) {
preferenceScreen.sharedPreferences.edit().putString("vanced_variant", "Nonroot").apply()
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View file

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="34dp"
android:height="34dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M19,3h-4.18C14.4,1.84 13.3,1 12,1c-1.3,0 -2.4,0.84 -2.82,2L5,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM12,3c0.55,0 1,0.45 1,1s-0.45,1 -1,1 -1,-0.45 -1,-1 0.45,-1 1,-1zM14,17L7,17v-2h7v2zM17,13L7,13v-2h10v2zM17,9L7,9L7,7h10v2z"/>
</vector>

View file

@ -1,10 +0,0 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>

View file

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="?attr/iconColor"
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/>
</vector>

View file

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z"/>
</vector>

View file

@ -17,27 +17,23 @@
android:orientation="vertical">
<include
android:id="@+id/about_header_wrapper"
layout="@layout/include_about_header"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<include
android:id="@+id/about_vanced_devs_wrapper"
layout="@layout/include_about_vanced_devs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/stdp" />
<include
android:id="@+id/about_app_devs_wrapper"
layout="@layout/include_about_app_devs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/stdp" />
<include
android:id="@+id/about_github_container_wrapper"
layout="@layout/include_about_sources"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -19,7 +19,6 @@
<TextView
style="@style/CardTitle"
android:id="@+id/chosen_values_text"
android:layout_gravity="center"
android:text="Chosen Preferences"
android:textAlignment="center"
@ -66,7 +65,6 @@
</LinearLayout>
<LinearLayout
android:id="@+id/chosen_prefs_button_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

View file

@ -25,7 +25,6 @@
tools:visibility="visible"/>
<include
android:id="@+id/home_vanced_wrapper"
layout="@layout/include_vanced"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -43,7 +42,6 @@
android:layout_marginEnd="@dimen/stdp" />
<include
android:id="@+id/home_changelog_wrapper"
layout="@layout/include_changelogs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -52,7 +50,6 @@
android:layout_marginEnd="@dimen/stdp" />
<include
android:id="@+id/home_useful_links_wrapper"
layout="@layout/include_useful_links"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -7,7 +7,6 @@
tools:context=".ui.fragments.MicrogChangelogFragment">
<TextView
android:id="@+id/microg_changelog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"

View file

@ -19,7 +19,6 @@
<TextView
style="@style/CardTitle"
android:id="@+id/update_center_text"
android:layout_gravity="center"
android:text="@string/update_center"
android:textAlignment="center"
@ -45,7 +44,6 @@
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/update_button_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

View file

@ -7,7 +7,6 @@
tools:context=".ui.fragments.VancedChangelogFragment">
<TextView
android:id="@+id/vanced_changelog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="18sp"

View file

@ -19,12 +19,10 @@
android:orientation="vertical">
<TextView
android:id="@+id/install_language_title"
style="@style/InstallCardTitle"
android:text="@string/choose_preferred_language" />
<TextView
android:id="@+id/install_language_note"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
@ -34,7 +32,6 @@
android:textSize="13sp" />
<FrameLayout
android:id="@+id/language_choose_frame"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginEnd="2dp"
@ -53,16 +50,6 @@
android:text="@string/finish"
app:icon="@drawable/ic_done_black_24dp" />
<ProgressBar
android:id="@+id/vanlang_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:visibility="gone"
tools:visibility="visible"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>

View file

@ -16,7 +16,6 @@
android:orientation="vertical">
<TextView
android:id="@+id/install_theme_title"
style="@style/InstallCardTitle"
android:text="@string/choose_preferred_theme" />
@ -36,7 +35,6 @@
android:fontFamily="@font/exo_semibold"/>
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
@ -52,16 +50,6 @@
android:text="@string/next"
app:icon="@drawable/ic_keyboard_next" />
<ProgressBar
android:id="@+id/vantheme_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:visibility="gone"
tools:visibility="visible"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>

View file

@ -1,68 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<com.vanced.manager.ui.core.SlidingConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.card.MaterialCardView
style="@style/InstallMaterialCard"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/install_theme_title"
style="@style/InstallCardTitle"
android:text="@string/choose_preferred_variant" />
<RadioGroup
android:id="@+id/vanced_variant_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checkedButton="@id/button_nonroot">
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/button_nonroot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
android:text="@string/install_nonroot"
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/button_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
android:textSize="18sp"
android:text="@string/install_root"/>
</RadioGroup>
<com.google.android.material.button.MaterialButton
style="@style/InstallButtonStyle"
android:id="@+id/vanced_next_to_language"
android:text="@string/next"
app:icon="@drawable/ic_keyboard_next" />
<ProgressBar
android:id="@+id/vanvariant_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:visibility="gone"
tools:visibility="visible"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</com.vanced.manager.ui.core.SlidingConstraintLayout>

View file

@ -7,7 +7,6 @@
app:cardCornerRadius="8dp">
<LinearLayout
android:id="@+id/about_header_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/rectangle_2"
@ -15,7 +14,6 @@
android:orientation="vertical">
<TextView
android:id="@+id/about_vm_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name"

View file

@ -20,7 +20,6 @@
app:layout_constraintStart_toStartOf="parent" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/about_github_container"
style="@style/InnerMaterialCard"
app:contentPaddingRight="@dimen/eightdp"
app:contentPaddingLeft="@dimen/eightdp"

View file

@ -23,7 +23,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/in"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -32,7 +31,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ca"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -41,7 +39,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/de"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -50,7 +47,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/es"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -59,7 +55,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/fr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -68,7 +63,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/hr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -77,7 +71,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/it"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -86,7 +79,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/hu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -95,7 +87,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/nl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -104,7 +95,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/pl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -113,7 +103,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/pt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -122,7 +111,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -131,7 +119,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/fi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -140,7 +127,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/sv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -149,7 +135,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/vi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -157,7 +142,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/tr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -166,7 +150,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/hy"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -175,7 +158,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/bg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -184,7 +166,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ru"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -193,7 +174,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/uk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -202,7 +182,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -211,7 +190,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ka"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -220,7 +198,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ja"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -229,7 +206,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/zh"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"
@ -238,7 +214,6 @@
android:textSize="18sp" />
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/ko"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/exo_semibold"

View file

@ -25,7 +25,6 @@
<TextView
style="@style/TextAppTitle"
android:id="@+id/microg_title"
android:text="@string/microg"
app:layout_constraintStart_toEndOf="@id/home_microg_logo"
app:layout_constraintTop_toTopOf="parent"
@ -57,7 +56,6 @@
<TextView
style="@style/AppVer"
android:id="@+id/microg_latest"
android:text="@string/latest" />
<TextView
@ -77,7 +75,6 @@
<TextView
style="@style/AppVer"
android:id="@+id/microg_installed"
android:text="@string/version_installed" />
<TextView

View file

@ -5,7 +5,6 @@
style="@style/MaterialCard">
<TextView
android:id="@+id/network_errortxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/network_error"

View file

@ -12,7 +12,6 @@
<TextView
style="@style/CardTitle"
android:id="@+id/useful_links_title"
android:text="@string/useful_links" />
<LinearLayout
@ -22,7 +21,6 @@
android:layout_marginTop="2dp">
<include
android:id="@+id/home_vanced_medias_wrapper"
layout="@layout/include_vanced_medias"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

View file

@ -26,7 +26,6 @@
<TextView
style="@style/TextAppTitle"
android:id="@+id/vanced_title"
android:text="@string/vanced"
app:layout_constraintStart_toEndOf="@id/home_vanced_logo"
app:layout_constraintTop_toTopOf="parent"
@ -65,7 +64,6 @@
<TextView
style="@style/AppVer"
android:id="@+id/vanced_latest"
android:text="@string/latest" />
<TextView
@ -84,7 +82,6 @@
<TextView
style="@style/AppVer"
android:id="@+id/vanced_installed"
android:text="@string/version_installed" />
<TextView

View file

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/InnerMaterialCard"
android:id="@+id/social_media_card"
app:cardBackgroundColor="#6958D0">
<LinearLayout
@ -12,7 +11,6 @@
android:orientation="vertical">
<TextView
android:id="@+id/social_media_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
@ -24,7 +22,6 @@
android:textSize="18sp" />
<LinearLayout
android:id="@+id/social_media_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/navigation_home"
android:icon="@drawable/ic_home_black_24dp"
android:title="@string/title_home" />
<item
android:id="@+id/navigation_settings"
android:icon="@drawable/ic_settings_black_24dp"
android:title="@string/title_settings" />
</menu>

View file

@ -3,7 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobile_navigation"
app:startDestination="@id/home_fragment">
<fragment
@ -80,7 +79,6 @@
app:popExitAnim="@animator/fragment_exit_right" />
<action
android:id="@+id/action_themeTo_homeFragment"
app:destination="@id/home_fragment"
app:enterAnim="@animator/fragment_enter_left"
app:exitAnim="@animator/fragment_exit_right"
@ -130,7 +128,6 @@
android:label="Dev Settings" />
<action
android:id="@+id/action_homeFragment"
app:destination="@id/home_fragment"
app:enterAnim="@animator/fragment_enter"
app:exitAnim="@animator/fragment_exit"

View file

@ -5,10 +5,8 @@
<string name="close">اغلق</string>
<string name="security_context">"عناصر ناأبة
"</string>
<string name="unsupported_version_context">عناصر ناأبة</string>
<string name="welcome">مرحبا
اهلا</string>
<string name="whoops">وبس!</string>
<!-- Main Activity -->
<string name="title_about">"معاومات
@ -18,19 +16,15 @@
<string name="title_settings">اعادات</string>
<!-- Home Page -->
<string name="brave_browser">صفحة Braveصفحة برايف</string>
<string name="changelogs">"معلومات التغير "</string>
<string name="install">تثبيت</string>
<string name="version_installed">مثبتة</string>
<string name="latest">آخر:</string>
<string name="loading">جار التحميل…</string>
<string name="n_a">ن/أ</string>
<string name="network_error">اتصاا الشبكة غير متاح</string>
<string name="reddit">Redditرددت</string>
<string name="update">تحديث</string>
<string name="useful_links">روابط المفيدة</string>
<string name="vanced_medias">Vanced على توصيل اجتماعي فانسد على توصيل اجتماعي</string>
<string name="website">موقع</string>
<string name="website_text">الموقع رسمي لفانسد</string>
<string name="support_us">ادعمنا بتريق تنزيل بريف</string>
@ -58,12 +52,9 @@
<string name="choose_preferred_language">اختر اللغة المفضلة لفانسد</string>
<string name="choose_preferred_language_note">لاحظة: اذا قمت تثبيت بأي لغة غير الانجليزية، سيكون اللغة الانجليزية مثبتة بللغة اضافية</string>
<string name="choose_preferred_theme">اختر موضوع اللون المفضلة لفانسد</string>
<string name="choose_preferred_variant">اختر بديل مفضلة لفانسد</string>
<string name="finish">نهاية</string>
<string name="install_light_black">ابيض + اسود</string>
<string name="install_light_dark">ابيض + داكن</string>
<string name="install_nonroot">غيز-جذر</string>
<string name="install_root">جذر</string>
<string name="next">ثانية</string>
<!-- About Page -->

View file

@ -3,9 +3,7 @@
<!-- Global Strings -->
<string name="close">Fermer</string>
<string name="unsupported_version_context">Je sais pas comment mais vous avez installé Vanced Manager sur une version Android non supportée. L\'application va se fermer.</string>
<string name="welcome">Bienvenue</string>
<string name="whoops">Oups!</string>
<!-- Main Activity -->
<string name="title_about">À propos</string>
@ -14,19 +12,15 @@
<string name="title_settings">Paramètres</string>
<!-- Home Page -->
<string name="brave_browser">Navigateur Brave</string>
<string name="changelogs">Journal des modifications</string>
<string name="install">Installer</string>
<string name="version_installed">Version installée:</string>
<string name="latest">Dernière version:</string>
<string name="loading">Chargement…</string>
<string name="n_a">N/A</string>
<string name="network_error">Connection réseau indisponible</string>
<string name="reddit">Reddit</string>
<string name="update">Mettre à jour</string>
<string name="useful_links">Liens utiles</string>
<string name="vanced_medias">Vanced sur les Résaux Sociaux</string>
<string name="website">Site web</string>
<string name="website_text">Le site web officiel de Vanced</string>
<string name="support_us">Supporte nous en téléchargeant Brave</string>
@ -53,12 +47,9 @@
<string name="choose_preferred_language">Choisir votre langue préférée pour Vanced</string>
<string name="choose_preferred_language_note">Note: si vous installer autre chose que l\'anglais, l\'anglais sera toujours installé en langue additionnelle</string>
<string name="choose_preferred_theme">Choisis le thème de Vanced</string>
<string name="choose_preferred_variant">Choisis la variante de Vanced</string>
<string name="finish">Terminer</string>
<string name="install_light_black">Clair + Sombre</string>
<string name="install_light_dark">Clair + Noir</string>
<string name="install_nonroot">Non rooté</string>
<string name="install_root">Rooté</string>
<string name="next">Suivant</string>
<!-- About Page -->

View file

@ -3,7 +3,6 @@
<!-- Global Strings -->
<string name="close">बंद करे</string>
<string name="security_context">कृपया सुनिश्चित करें कि आपने vanced.app, Vanced Discord सर्वर या GitHub से ऐप डाउनलोड किया है</string>
<string name="unsupported_version_context">मुझे नहीं पता कि आपने असमर्थित Android संस्करण पर कैसे संभवत: Vanced Manager स्थापित किया है। ऐप अब बंद हो जाएगा</string>
<string name="welcome">स्वागत हे</string>
<!-- Main Activity -->
<!-- Home Page -->

View file

@ -4,9 +4,7 @@
<!-- Global Strings -->
<string name="close">დახურვა</string>
<string name="security_context">გთხოვთ დარწმუნდით რომ აპი გადმოწერეთ vanced.app-იდან, Vanced Discord სერვერიდან ან GitHub-იდან</string>
<string name="unsupported_version_context">არ ვიცი როგორ მაგრამ თქვენ როგორღაც დააყენეთ Vanced Manager-ი ძველ Android-ის ვერსიაზე. აპი დაიხურება</string>
<string name="welcome">მოგესალმებით</string>
<string name="whoops">უფს!</string>
<!-- Main Activity -->
<string name="title_about">შესახებ</string>
@ -15,21 +13,17 @@
<string name="title_settings">პარამეტრები</string>
<!-- Home Page -->
<string name="brave_browser">Brave Browser</string>
<string name="changelogs">ცვლილებები</string>
<string name="install">ინსტალაცია</string>
<string name="version_installed">დაინსტალირებული:</string>
<string name="button_installed">დაინსტალირებულია</string>
<string name="latest">უახლესი:</string>
<string name="loading">იტვირთება…</string>
<string name="n_a">N/A</string>
<string name="network_error">კავშირი არ არის</string>
<string name="reddit">Reddit</string>
<string name="unavailable">ხელმიუწვდომელია</string>
<string name="update">განახლება</string>
<string name="useful_links">საჭირო ლინკები</string>
<string name="vanced_medias">Vanced სოციალურ ქსელებზე</string>
<string name="website">Website</string>
<string name="website_text">Vanced-ის ოფიციალური ვებსაიტი</string>
<string name="support_us">დაგვიჭირეთ მხარი Brave-ის გადმოწერით</string>
@ -57,12 +51,9 @@
<string name="choose_preferred_language">აირჩიეთ სასურველი ენა Vanced-ისთვის</string>
<string name="choose_preferred_language_note">შენიშვნა: თუ თქვენ აირჩევთ სხვა ენას გარდა ინგლისურისა, ინგლისური მაინც იქნება დაყენებული როგორც დამატებითი ენა</string>
<string name="choose_preferred_theme">აირჩიეთ სასურველი თემა Vanced-ისთვის</string>
<string name="choose_preferred_variant">აირჩიეთ სასურველი ვარიანტი Vanced-სთვის</string>
<string name="finish">დასრულება</string>
<string name="install_light_black">ღია + შავი</string>
<string name="install_light_dark">ღია + მუქი</string>
<string name="install_nonroot">Non-root</string>
<string name="install_root">Root</string>
<string name="next">შემდეგი</string>
<!-- About Page -->

View file

@ -4,9 +4,7 @@
<!-- Global Strings -->
<string name="close">Fechar</string>
<string name="security_context">Verifique se você baixou o aplicativo do vanced.app, Vanced Discord ou GitHub</string>
<string name="unsupported_version_context">Não sei como, mas você provavelmente instalou o Vanced Manager na versão Android não suportada. O aplicativo será fechado agora</string>
<string name="welcome">Bem-Vindo</string>
<string name="whoops">Whoops!</string>
<!-- Main Activity -->
<string name="title_about">Sobre</string>
@ -15,19 +13,15 @@
<string name="title_settings">Configurações</string>
<!-- Home Page -->
<string name="brave_browser">Navegador Brave</string>
<string name="changelogs">Notas de Lançamento</string>
<string name="install">Instalar</string>
<string name="version_installed">Instalado:</string>
<string name="latest">Mais Recente:</string>
<string name="loading">Carregando…</string>
<string name="n_a">N/A</string>
<string name="network_error">Conexão de rede indisponível</string>
<string name="reddit">Reddit</string>
<string name="update">Atualizar</string>
<string name="useful_links">Links Importantes</string>
<string name="vanced_medias">Vanced nas Redes Sociais</string>
<string name="website">Website</string>
<string name="website_text">Site oficial do Vanced</string>
@ -55,12 +49,9 @@
<string name="choose_preferred_language">Escolhe tua língua preferida para o Vanced</string>
<string name="choose_preferred_language_note">Nota: Se você instalar algo diferente de Inglês, Inglês será instalado como um idioma adicional</string>
<string name="choose_preferred_theme">Escolhe teu tema preferido para o Vanced</string>
<string name="choose_preferred_variant">Escolhe tua variação preferida para o Vanced</string>
<string name="finish">Terminar</string>
<string name="install_light_black">Claro + Preto</string>
<string name="install_light_dark">Claro + Escuro</string>
<string name="install_nonroot">Não Roteado</string>
<string name="install_root">Roteado</string>
<string name="next">Próximo</string>
<!-- About Page -->

View file

@ -4,9 +4,7 @@
<!-- Global Strings -->
<string name="close">Kapat</string>
<string name="security_context">Lütfen, uygulamayı vanced.app\'den, Vanced Discord sunucu\'sundan veya GitHub\'dan indirdiğinize emin olun.</string>
<string name="unsupported_version_context">Vanced Manager bir şekilde desteklenmeyen bir Android sürümüne kurulmuş. Şimdi uygulama kapanacak.</string>
<string name="welcome">Hoşgeldin</string>
<string name="whoops">Hay Aksi!</string>
<!-- Main Activity -->
<string name="title_about">Hakkında</string>
@ -15,19 +13,15 @@
<string name="title_settings">Ayarlar</string>
<!-- Home Page -->
<string name="brave_browser">Brave Tarayıcısı</string>
<string name="changelogs">Değişim Kaydı</string>
<string name="install">Yüklemek</string>
<string name="version_installed">Yüklendi:</string>
<string name="latest">En Son:</string>
<string name="loading">Yükleniyor…</string>
<string name="n_a">Kullanılamaz</string>
<string name="network_error">Ağ bağlantısı yok</string>
<string name="reddit">Reddit</string>
<string name="update">Güncellemek</string>
<string name="useful_links">Faydalı Bağlantılar</string>
<string name="vanced_medias">Sosyal Medyada Vanced</string>
<string name="website">Web Sitesi</string>
<string name="website_text">Vanced\'in resmi web sitesi</string>
<string name="support_us">Brave Tarayıcısı\'nı indirerek bizi destekleyebilirsiniz</string>
@ -55,12 +49,9 @@
<string name="choose_preferred_language">Vanced için tercih ettiğiniz dili seçin</string>
<string name="choose_preferred_language_note">Uyarı: Eğer İngilizceden farklı bir dil yüklerseniz, İngilizce yine de ikinci dil olarak yüklü kalacaktır</string>
<string name="choose_preferred_theme">Vanced için tercih ettiğiniz temayı seçin</string>
<string name="choose_preferred_variant">Tercih ettiğiniz Vanced varyantını seçin</string>
<string name="finish">Bitir</string>
<string name="install_light_black">Aydınlık + Siyah</string>
<string name="install_light_dark">Aydınlık + Karanlık</string>
<string name="install_nonroot">Rootlanmamış</string>
<string name="install_root">Root</string>
<string name="next">Sonraki</string>
<!-- About Page -->

View file

@ -4,9 +4,7 @@
<!-- Global Strings -->
<string name="close">Закрити</string>
<string name="security_context">Будь ласка, переконайтеся,що ви завантажили додаток з vanced.app,Vanced діскорд серверу або з GitHub</string>
<string name="unsupported_version_context">Ви,напевно,встановили Vanced Manager на непідтримувану версію Андроїда.Додаток зараз закриється</string>
<string name="welcome">Ласкаво просимо</string>
<string name="whoops">"Уупс!"</string>
<!-- Main Activity -->
<string name="title_about">Про нас</string>
@ -15,19 +13,15 @@
<string name="title_settings">Налаштування</string>
<!-- Home Page -->
<string name="brave_browser">Brave Браузер</string>
<string name="changelogs">Список змін</string>
<string name="install">Встановити</string>
<string name="version_installed">Встановлено:</string>
<string name="latest">Найновіші:</string>
<string name="loading">Завантаження…</string>
<string name="n_a">Недоступно</string>
<string name="network_error">Немає з\'єднання з мережею</string>
<string name="reddit">Reddit</string>
<string name="update">Оновлення</string>
<string name="useful_links">Корисні сторінки</string>
<string name="vanced_medias">Vanced в соціальних мережах</string>
<string name="website">Веб-сайт</string>
<string name="website_text">Офіційний веб-сайт Vanced</string>
<string name="support_us">Підтримай нас завантаживши браузер Brave</string>
@ -55,12 +49,9 @@
<string name="choose_preferred_language">Виберіть вашу головну мову для Vanced</string>
<string name="choose_preferred_language_note">Примітка: Якщо ви встановите що-небудь, крім Англійської, Англійська мова все одно буде встановлена як додаткова мова</string>
<string name="choose_preferred_theme">Виберіть вашу головну тему для Vanced</string>
<string name="choose_preferred_variant">Виберіть вашу версію для Vanced</string>
<string name="finish">Завершити</string>
<string name="install_light_black">Світла + Чорна</string>
<string name="install_light_dark">Світла + Темна</string>
<string name="install_nonroot">Не рут</string>
<string name="install_root">Рут</string>
<string name="next">Наступна</string>
<!-- About Page -->

View file

@ -30,8 +30,8 @@
</string-array>
<string-array name="vanced_variant">
<item>non-root</item>
<item>root</item>
<item>Non-root</item>
<item>Root</item>
</string-array>
<string-array name="vanced_variant_values">

View file

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#ffffff</color>
<color name="Vanced">#673AB7</color>
<color name="YT">#8B0B0B</color>
<color name="Brave">#FF2600</color>
<color name="Discord">#7289DA</color>
<color name="Twitter">#1DA1F2</color>
@ -11,7 +9,6 @@
<color name="GitHub">#17191A</color>
<color name="Black">#000000</color>
<color name="White">#ffffff</color>
<color name="Red">#CC0047</color>
</resources>

View file

@ -1,14 +1,8 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="twodp">2dp</dimen>
<dimen name="fourdp">4dp</dimen>
<dimen name="eightdp">8dp</dimen>
<dimen name="twelvedp">12dp</dimen>
<dimen name="stdp">16dp</dimen>
<dimen name="thtdp">32dp</dimen>
<dimen name="fedp">48dp</dimen>
</resources>

View file

@ -2,9 +2,6 @@
<resources>
<string name="app_name" translatable="false">Vanced Manager</string>
<string name="discord" translatable="false">Discord</string>
<string name="telegram" translatable="false">Telegram</string>
<string name="twitter" translatable="false">Twitter</string>
<string name="vanced" translatable="false">Vanced</string>
<string name="microg" translatable="false">MicroG</string>

View file

@ -4,9 +4,7 @@
<!-- Global Strings -->
<string name="close">Close</string>
<string name="security_context">Please make sure you downloaded app from vanced.app, Vanced Discord server or GitHub</string>
<string name="unsupported_version_context">I don\'t know how but you probably installed Vanced Manager on unsupported Android version. The app will now close</string>
<string name="welcome">Welcome</string>
<string name="whoops">Whoops!</string>
<!-- Main Activity -->
<string name="title_about">About</string>
@ -15,21 +13,17 @@
<string name="title_settings">Settings</string>
<!-- Home Page -->
<string name="brave_browser">Brave Browser</string>
<string name="changelogs">Changelogs</string>
<string name="install">Install</string>
<string name="version_installed">Installed:</string>
<string name="button_installed">Installed</string>
<string name="latest">Latest:</string>
<string name="loading">Loading…</string>
<string name="n_a">N/A</string>
<string name="network_error">Network connection unavailable</string>
<string name="reddit">Reddit</string>
<string name="unavailable">Unavailable</string>
<string name="update">Update</string>
<string name="useful_links">Useful Links</string>
<string name="vanced_medias">Vanced on Social Media</string>
<string name="website">Website</string>
<string name="website_text">The official website of Vanced</string>
<string name="support_us">Support us by downloading Brave</string>
@ -57,12 +51,9 @@
<string name="choose_preferred_language">Choose your preferred language for Vanced</string>
<string name="choose_preferred_language_note">Note: if you install anything other than English, English will still be installed as an additional language</string>
<string name="choose_preferred_theme">Choose your preferred theme for Vanced</string>
<string name="choose_preferred_variant">Choose your preferred variant for Vanced</string>
<string name="finish">Finish</string>
<string name="install_light_black">Light + Black</string>
<string name="install_light_dark">Light + Dark</string>
<string name="install_nonroot">Non-root</string>
<string name="install_root">Root</string>
<string name="next">Next</string>
<!-- About Page -->