cleanup
This commit is contained in:
parent
50859d7de0
commit
3a9ac80648
|
@ -3,6 +3,7 @@ package com.vanced.manager.utils
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.Log
|
||||
import androidx.browser.customtabs.CustomTabColorSchemeParams
|
||||
import androidx.browser.customtabs.CustomTabsIntent
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.net.toUri
|
||||
|
@ -38,7 +39,8 @@ object InternetTools {
|
|||
val customTabPrefs = getDefaultSharedPreferences(context).getBoolean("use_custom_tabs", true)
|
||||
if (customTabPrefs) {
|
||||
val builder = CustomTabsIntent.Builder()
|
||||
builder.setToolbarColor(ContextCompat.getColor(context, color))
|
||||
val params = CustomTabColorSchemeParams.Builder().setToolbarColor(ContextCompat.getColor(context, color))
|
||||
builder.setDefaultColorSchemeParams(params.build())
|
||||
val customTabsIntent = builder.build()
|
||||
customTabsIntent.intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
customTabsIntent.launchUrl(context, url.toUri())
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
tools:context=".ui.dialogs.AppDownloadDialog"
|
||||
|
@ -13,26 +12,25 @@
|
|||
<TextView
|
||||
android:id="@+id/app_download_header"
|
||||
tools:text="Installing Vanced"
|
||||
style="@style/DialogCardTitle"/>
|
||||
style="@style/DialogCardTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_download_patient"
|
||||
android:layout_below="@id/app_download_header"
|
||||
android:text="@string/please_be_patient"
|
||||
style="@style/DialogCardSubtitle"/>
|
||||
style="@style/DialogCardSubtitle" />
|
||||
|
||||
<com.google.android.material.progressindicator.ProgressIndicator
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/app_download_progressbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/app_download_patient"
|
||||
android:layout_marginTop="24dp"
|
||||
app:trackCornerRadius="15dp"
|
||||
app:indicatorColor="?colorPrimary"
|
||||
app:indicatorCornerRadius="15dp"
|
||||
tools:progress="10"
|
||||
style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Determinate"/>
|
||||
tools:progress="10" />
|
||||
|
||||
<com.google.android.material.progressindicator.ProgressIndicator
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/app_install_progressbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -42,8 +40,7 @@
|
|||
android:layout_marginTop="24dp"
|
||||
android:indeterminate="true"
|
||||
app:indicatorColor="?colorPrimary"
|
||||
app:indicatorCornerRadius="15dp"
|
||||
style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Indeterminate"/>
|
||||
app:trackCornerRadius="15dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -59,14 +56,16 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/app_download_cancel"
|
||||
android:textSize="15sp"
|
||||
tools:text="Downloading base.apk..."/>
|
||||
tools:text="Downloading base.apk..." />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/app_download_cancel"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:text="@string/cancel"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
style="@style/OutlinedButtonStyle"/>
|
||||
style="@style/OutlinedButtonStyle" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
|
@ -22,7 +21,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="About YouTube Vanced"
|
||||
style="@style/DialogCardTitle"/>
|
||||
style="@style/DialogCardTitle" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/about_app_image"
|
||||
|
@ -32,7 +31,7 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/about_app_name"
|
||||
tools:src="@drawable/ic_vanced"/>
|
||||
tools:src="@drawable/ic_vanced" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_app_changelog_header"
|
||||
|
@ -41,7 +40,7 @@
|
|||
android:layout_marginTop="16dp"
|
||||
android:text="@string/changelog"
|
||||
app:layout_constraintTop_toBottomOf="@id/about_app_image"
|
||||
style="@style/CardTextHeader"/>
|
||||
style="@style/CardTextHeader" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_app_changelog"
|
||||
|
@ -50,6 +49,6 @@
|
|||
android:layout_marginHorizontal="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/about_app_changelog_header"
|
||||
tools:text="@tools:sample/lorem/random"/>
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/dialog_title"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -27,6 +26,6 @@
|
|||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/dialog_save"
|
||||
android:text="@string/save"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
style="@style/DialogCard">
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
|
@ -12,22 +11,22 @@
|
|||
<TextView
|
||||
android:id="@+id/installation_detected_title"
|
||||
tools:text="@string/app_install_files_detected"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/installation_detected_summary"
|
||||
tools:text="@string/app_install_files_detected_summary"
|
||||
style="@style/DialogCardSubtitle"/>
|
||||
style="@style/DialogCardSubtitle" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/installation_detected_install"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/install"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/installation_detected_redownload"
|
||||
android:text="@string/redownload"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
<TextView
|
||||
android:text="@string/accent_color"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -26,41 +25,41 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:tag="Blue"
|
||||
android:text="@string/accent_blue"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Red"
|
||||
android:text="@string/accent_red"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Green"
|
||||
android:text="@string/accent_green"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Yellow"
|
||||
android:text="@string/accent_yellow"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Purple"
|
||||
android:text="@string/accent_purple"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
</RadioGroup>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/accent_save"
|
||||
android:text="@string/save"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
<TextView
|
||||
android:text="@string/language_title"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -19,12 +18,12 @@
|
|||
<RadioGroup
|
||||
android:id="@+id/language_radiogroup"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="wrap_content" />
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/language_save"
|
||||
android:text="@string/save"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
<TextView
|
||||
android:text="@string/theme"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -26,27 +25,27 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:tag="System Default"
|
||||
android:text="@string/system_default"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Light"
|
||||
android:text="@string/theme_light"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="Dark"
|
||||
android:text="@string/theme_dark"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
</RadioGroup>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/theme_save"
|
||||
android:text="@string/save"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
|
@ -16,7 +15,7 @@
|
|||
<TextView
|
||||
android:id="@+id/manager_update_header"
|
||||
android:text="@string/update_center"
|
||||
style="@style/DialogCardTitle"/>
|
||||
style="@style/DialogCardTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/manager_update_patient"
|
||||
|
@ -28,9 +27,9 @@
|
|||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/checking_updates"
|
||||
android:textSize="16sp"/>
|
||||
android:textSize="16sp" />
|
||||
|
||||
<com.google.android.material.progressindicator.ProgressIndicator
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/manager_update_progressbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -38,10 +37,9 @@
|
|||
android:layout_marginTop="32dp"
|
||||
android:paddingBottom="8dp"
|
||||
app:indicatorColor="?colorPrimary"
|
||||
app:indicatorCornerRadius="15dp"
|
||||
app:trackCornerRadius="15dp"
|
||||
tools:progress="10"
|
||||
tools:visibility="visible"
|
||||
style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Determinate"/>
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/manager_update_cancel"
|
||||
|
@ -51,6 +49,6 @@
|
|||
android:layout_below="@id/manager_update_progressbar"
|
||||
android:text="@string/cancel"
|
||||
app:strokeWidth="2dp"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"/>
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
|
||||
</RelativeLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
|
@ -11,7 +10,7 @@
|
|||
|
||||
<TextView
|
||||
android:text="@string/variant"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -28,20 +27,20 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:tag="nonroot"
|
||||
android:text="nonroot"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.radiobutton.MaterialRadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:tag="root"
|
||||
android:text="root"
|
||||
android:textSize="18sp"/>
|
||||
android:textSize="18sp" />
|
||||
</RadioGroup>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/variant_save"
|
||||
android:text="@string/save"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -10,7 +9,7 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/music_install_title"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -22,7 +21,7 @@
|
|||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/open_version_selector"
|
||||
style="@style/BottomDialogCardTextItem"/>
|
||||
style="@style/BottomDialogCardTextItem" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/open_version_selector"
|
||||
|
@ -32,12 +31,12 @@
|
|||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36"/>
|
||||
android:src="@drawable/ic_baseline_navigate_next_36" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/music_install"
|
||||
android:text="@string/install"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/BottomDialogCard">
|
||||
|
||||
|
@ -11,20 +10,20 @@
|
|||
|
||||
<TextView
|
||||
style="@style/BottomDialogCardTitle"
|
||||
android:text="@string/select_apps" />
|
||||
android:text="@string/select_apps" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/select_apps_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:itemCount="2"
|
||||
tools:listitem="@layout/view_app_checkbox"/>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/select_apps_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:itemCount="2"
|
||||
tools:listitem="@layout/view_app_checkbox" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/select_apps_save"
|
||||
style="@style/BottomDialogButtonStyle"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/save"/>
|
||||
android:text="@string/save" />
|
||||
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
style="@style/BottomDialogCard"
|
||||
|
@ -27,7 +26,7 @@
|
|||
android:id="@+id/lang_button_ll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"/>
|
||||
android:orientation="vertical" />
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
app:contentPaddingBottom="4dp"
|
||||
style="@style/BottomDialogCard">
|
||||
|
@ -12,7 +11,7 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/vanced_install_title"
|
||||
style="@style/BottomDialogCardTitle"/>
|
||||
style="@style/BottomDialogCardTitle" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -24,7 +23,7 @@
|
|||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/open_theme_selector"
|
||||
style="@style/BottomDialogCardTextItem"/>
|
||||
style="@style/BottomDialogCardTextItem" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/open_theme_selector"
|
||||
|
@ -34,58 +33,58 @@
|
|||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36"/>
|
||||
android:src="@drawable/ic_baseline_navigate_next_36" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_version"
|
||||
style="@style/BottomDialogCardTextItem"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/open_version_selector" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/open_version_selector"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_version"
|
||||
style="@style/BottomDialogCardTextItem"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/open_version_selector" />
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/open_version_selector"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36" />
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:id="@+id/vanced_lang"
|
||||
style="@style/BottomDialogCardTextItem"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/open_language_selector" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
<ImageButton
|
||||
android:id="@+id/open_language_selector"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vanced_lang"
|
||||
style="@style/BottomDialogCardTextItem"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/open_language_selector" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/open_language_selector"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36"/>
|
||||
</RelativeLayout>
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:maxWidth="24dp"
|
||||
android:maxHeight="24dp"
|
||||
android:src="@drawable/ic_baseline_navigate_next_36" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/vanced_install"
|
||||
android:text="@string/install"
|
||||
style="@style/BottomDialogButtonStyle"/>
|
||||
style="@style/BottomDialogButtonStyle" />
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
|
@ -26,20 +25,20 @@
|
|||
layout="@layout/include_about_vanced_devs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/stdp"/>
|
||||
android:layout_marginTop="@dimen/stdp" />
|
||||
|
||||
<include
|
||||
layout="@layout/include_about_app_devs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/stdp"/>
|
||||
android:layout_marginTop="@dimen/stdp" />
|
||||
|
||||
<include
|
||||
android:id="@+id/about_sources"
|
||||
layout="@layout/include_about_sources"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/stdp"/>
|
||||
android:layout_marginTop="@dimen/stdp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.vanced.manager.ui.core.SlidingConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.vanced.manager.ui.core.SlidingConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -10,14 +9,14 @@
|
|||
android:id="@+id/grant_root_header"
|
||||
android:text="@string/are_you_rooted"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
style="@style/WelcomeHeaderTitle"/>
|
||||
style="@style/WelcomeHeaderTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/grant_root_description"
|
||||
android:text="@string/willing_to_use_root"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintTop_toBottomOf="@id/grant_root_header"
|
||||
style="@style/WelcomeHeaderSubtitle"/>
|
||||
style="@style/WelcomeHeaderSubtitle" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/grant_root_fab"
|
||||
|
@ -31,7 +30,7 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/grant_root_header"
|
||||
app:maxImageSize="44dp"/>
|
||||
app:maxImageSize="44dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -42,7 +41,7 @@
|
|||
android:textSize="13sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/grant_root_fab"/>
|
||||
app:layout_constraintTop_toBottomOf="@id/grant_root_fab" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -52,7 +51,7 @@
|
|||
app:layout_constraintBottom_toTopOf="@id/grant_root_finish_fab"
|
||||
app:layout_constraintEnd_toEndOf="@id/grant_root_finish_fab"
|
||||
app:layout_constraintStart_toStartOf="@id/grant_root_finish_fab"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/grant_root_finish_fab"
|
||||
|
@ -64,5 +63,5 @@
|
|||
android:src="@drawable/ic_baseline_navigate_next_48"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:maxImageSize="48dp"/>
|
||||
app:maxImageSize="48dp" />
|
||||
</com.vanced.manager.ui.core.SlidingConstraintLayout>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/home_refresh"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -25,13 +24,13 @@
|
|||
android:layout_marginStart="8dp"
|
||||
android:nestedScrollingEnabled="false"
|
||||
tools:itemCount="3"
|
||||
tools:listitem="@layout/view_app"/>
|
||||
tools:listitem="@layout/view_app" />
|
||||
|
||||
<TextView
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="@string/useful_links"
|
||||
style="@style/CardTextHeader"/>
|
||||
style="@style/CardTextHeader" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_sponsors"
|
||||
|
@ -41,7 +40,7 @@
|
|||
android:layout_marginStart="8dp"
|
||||
android:nestedScrollingEnabled="false"
|
||||
tools:itemCount="2"
|
||||
tools:listitem="@layout/view_sponsor"/>
|
||||
tools:listitem="@layout/view_sponsor" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_links"
|
||||
|
@ -51,7 +50,7 @@
|
|||
android:nestedScrollingEnabled="false"
|
||||
android:paddingBottom="8dp"
|
||||
tools:itemCount="6"
|
||||
tools:listitem="@layout/view_social_link"/>
|
||||
tools:listitem="@layout/view_social_link" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.vanced.manager.ui.core.SlidingConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<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"
|
||||
|
@ -13,7 +12,7 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
style="@style/WelcomeHeaderTitle"/>
|
||||
style="@style/WelcomeHeaderTitle" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/select_apps_recycler"
|
||||
|
@ -24,7 +23,7 @@
|
|||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:itemCount="2"
|
||||
tools:listitem="@layout/view_app_checkbox"/>
|
||||
tools:listitem="@layout/view_app_checkbox" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/select_apps_fab"
|
||||
|
@ -36,6 +35,6 @@
|
|||
android:src="@drawable/ic_baseline_navigate_next_48"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:maxImageSize="48dp"/>
|
||||
app:maxImageSize="48dp" />
|
||||
|
||||
</com.vanced.manager.ui.core.SlidingConstraintLayout>
|
||||
|
|
|
@ -57,36 +57,36 @@
|
|||
app:preference_title="@string/clear_files" />
|
||||
</com.vanced.manager.ui.core.PreferenceCategory>
|
||||
|
||||
<com.vanced.manager.ui.core.PreferenceCategory
|
||||
<com.vanced.manager.ui.core.PreferenceCategory
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/category_background"
|
||||
app:category_title="@string/category_appearance">
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_theme"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/category_background"
|
||||
app:category_title="@string/category_appearance">
|
||||
app:preference_title="@string/theme" />
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_theme"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/theme" />
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_accent_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/accent_color" />
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_accent_color"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/accent_color" />
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_language"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/language_title" />
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/manager_language"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/language_title" />
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/select_apps"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/select_apps" />
|
||||
</com.vanced.manager.ui.core.PreferenceCategory>
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
android:id="@+id/select_apps"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="@string/select_apps" />
|
||||
</com.vanced.manager.ui.core.PreferenceCategory>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.vanced.manager.ui.core.SlidingConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.vanced.manager.ui.core.SlidingConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -13,7 +12,7 @@
|
|||
android:layout_marginTop="@dimen/top_header_margin"
|
||||
app:srcCompat="@drawable/ic_launch_text"
|
||||
android:textAlignment="center"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/welcome_get_started"
|
||||
|
@ -28,5 +27,5 @@
|
|||
app:cornerRadius="50dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
</com.vanced.manager.ui.core.SlidingConstraintLayout>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<com.google.android.material.card.MaterialCardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.card.MaterialCardView 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"
|
||||
|
|
|
@ -37,6 +37,6 @@
|
|||
android:theme="@style/PreferenceSwitch"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue