build: Bump ReVanced Patcher
BREAKING CHANGE: Various APIs have been changed or removed.
This commit is contained in:
25
patches/src/main/resources/settings/host/values/styles.xml
Normal file
25
patches/src/main/resources/settings/host/values/styles.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
'android.R.style.ThemeOverlay_Material_Dialog' is a theme added in Android 6.0+.
|
||||
|
||||
'android:windowBackground' is the background color of the alert dialog.
|
||||
If not overridden, the background color of the parent theme 'android.R.style.ThemeOverlay_Material_Dialog' is used.
|
||||
|
||||
'R.attr.ytRaisedBackground' is the background color of the YouTube alert dialog.
|
||||
|
||||
'android:windowIsTranslucent' makes the dialog window transparent.
|
||||
|
||||
'android:background' needs to be transparent for the 'contextual action bar' to be displayed properly.
|
||||
|
||||
Referenced documentation and framework source code:
|
||||
https://android.googlesource.com/platform/frameworks/base/+/android-6.0.1_r81/core/res/res/values/themes_material.xml#1142
|
||||
https://developer.android.com/reference/android/R.style#ThemeOverlay_Material_Dialog
|
||||
https://developer.android.com/about/versions/marshmallow/android-6.0-changes#behavior-text-selection
|
||||
-->
|
||||
<resources>
|
||||
<style name="revanced_edit_text_dialog_style" parent="@android:style/ThemeOverlay.Material.Dialog">
|
||||
<item name="android:windowBackground">?ytRaisedBackground</item>
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
</style>
|
||||
</resources>
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
android:transitionGroup="true">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/yt_white1"
|
||||
android:elevation="0dp">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/revanced_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/ytBrandBackgroundSolid"
|
||||
app:navigationIcon="@drawable/yt_outline_arrow_left_black_24"
|
||||
app:title="@string/revanced_settings_title" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/revanced_settings_fragments"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
</merge>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:yt="http://schemas.android.com/apk/res-auto"
|
||||
android:key="revanced_settings_root_screen_sort_by_key"> <!-- Sort by preference key -->
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user