diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e57c641..3012f051a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +## [6.0.1-dev.3](https://github.com/ReVanced/revanced-patches/compare/v6.0.1-dev.2...v6.0.1-dev.3) (2026-03-15) + + +### Bug Fixes + +* **GmsCore support:** use `prefixOrReplace` for non-matching APP_AUTHORITIES in content URL transformation ([#6801](https://github.com/ReVanced/revanced-patches/issues/6801)) ([8f6f128](https://github.com/ReVanced/revanced-patches/commit/8f6f128d718c20c56668ed3801b434a5cbb04dfd)) + +## [6.0.1-dev.2](https://github.com/ReVanced/revanced-patches/compare/v6.0.1-dev.1...v6.0.1-dev.2) (2026-03-15) + + +### Bug Fixes + +* **YouTube Music - Hide buttons:** Crashes on startup due to null LayoutParams ([#6799](https://github.com/ReVanced/revanced-patches/issues/6799)) ([3e32c38](https://github.com/ReVanced/revanced-patches/commit/3e32c387328b061f33b361ed022ae18e447a7904)) + +## [6.0.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v6.0.0...v6.0.1-dev.1) (2026-03-15) + + +### Bug Fixes + +* **YouTube:** Use correct query parameters for DeArrow requests ([#6780](https://github.com/ReVanced/revanced-patches/issues/6780)) ([02a48e7](https://github.com/ReVanced/revanced-patches/commit/02a48e7a5f2b1ffd64a80651b49666de27ab7014)) + # [6.0.0](https://github.com/ReVanced/revanced-patches/compare/v5.50.2...v6.0.0) (2026-03-14) diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java index d18ea89f5..cf65db8a4 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java @@ -32,11 +32,7 @@ import android.view.Window; import android.view.WindowManager; import android.view.animation.Animation; import android.view.animation.AnimationUtils; -import android.widget.FrameLayout; -import android.widget.LinearLayout; -import android.widget.RelativeLayout; import android.widget.Toast; -import android.widget.Toolbar; import androidx.annotation.ColorInt; import androidx.annotation.NonNull; @@ -138,6 +134,7 @@ public class Utils { return versionName; } + @SuppressWarnings("unused") public static String getApplicationName() { if (applicationLabel == null) { try { @@ -184,24 +181,13 @@ public class Utils { * @param view The view to hide. */ public static void hideViewBy0dp(View view) { - if (view instanceof LinearLayout) { - LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, 0); - view.setLayoutParams(layoutParams); - } else if (view instanceof FrameLayout) { - FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(0, 0); - view.setLayoutParams(layoutParams2); - } else if (view instanceof RelativeLayout) { - RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(0, 0); - view.setLayoutParams(layoutParams3); - } else if (view instanceof Toolbar) { - Toolbar.LayoutParams layoutParams4 = new Toolbar.LayoutParams(0, 0); - view.setLayoutParams(layoutParams4); - } else { - ViewGroup.LayoutParams params = view.getLayoutParams(); - params.width = 0; - params.height = 0; - view.setLayoutParams(params); - } + ViewGroup.LayoutParams params = view.getLayoutParams(); + if (params == null) + params = new ViewGroup.LayoutParams(0, 0); + + params.width = 0; + params.height = 0; + view.setLayoutParams(params); } /** @@ -478,6 +464,7 @@ public class Utils { return str != null && !str.isEmpty(); } + @SuppressWarnings("unused") public static boolean isTablet() { return context.getResources().getConfiguration().smallestScreenWidthDp >= 600; } @@ -517,6 +504,7 @@ public class Utils { return getTextDirectionString(isRightToLeftLocale()); } + @SuppressWarnings("unused") public static String getTextDirectionString(Locale locale) { return getTextDirectionString(isRightToLeftLocale(locale)); } diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/AlternativeThumbnailsPatch.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/AlternativeThumbnailsPatch.java index 53c1e9c0e..4b2cbd76c 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/AlternativeThumbnailsPatch.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/AlternativeThumbnailsPatch.java @@ -238,8 +238,8 @@ public final class AlternativeThumbnailsPatch { // See https://github.com/ajayyy/DeArrowThumbnailCache/blob/29eb4359ebdf823626c79d944a901492d760bbbc/app.py#L29. return dearrowAPIURI .buildUpon() - .appendQueryParameter("videoId", videoId) - .appendQueryParameter("redirectURL", fallbackURL) + .appendQueryParameter("videoID", videoId) + .appendQueryParameter("redirectUrl", fallbackURL) .build() .toString(); } diff --git a/gradle.properties b/gradle.properties index dab340fc9..be5c121c4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,4 +4,4 @@ org.gradle.parallel = true android.useAndroidX = true android.uniquePackageNames = false kotlin.code.style = official -version = 6.0.0 +version = 6.0.1-dev.3 diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt index e9c994e3d..0a356a1a7 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt @@ -252,7 +252,7 @@ fun gmsCoreSupportResourcePatch( .joinToString(";") { authority -> APP_AUTHORITIES += authority - authority.replace(fromPackageName, toPackageName) + authority.prefixOrReplace(fromPackageName, toPackageName) } } }