mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
fix(YouTube Music - Custom header): Custom Header for YouTube Music
is causing app crashing in 8.02.53
https://github.com/inotia00/ReVanced_Extended/issues/2692
This commit is contained in:
@ -12,6 +12,7 @@ import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import app.revanced.extension.music.settings.Settings;
|
||||
import app.revanced.extension.shared.utils.ResourceUtils;
|
||||
|
||||
/**
|
||||
* @noinspection ALL
|
||||
@ -19,6 +20,18 @@ import app.revanced.extension.music.settings.Settings;
|
||||
@SuppressWarnings("unused")
|
||||
public class GeneralPatch {
|
||||
|
||||
// region [Change header] patch
|
||||
|
||||
public static int getHeaderDrawableId(int original) {
|
||||
final int headerId = ResourceUtils.getDrawableIdentifier("action_bar_logo");
|
||||
|
||||
return headerId == 0
|
||||
? original
|
||||
: headerId;
|
||||
}
|
||||
|
||||
// endregion
|
||||
|
||||
// region [Change start page] patch
|
||||
|
||||
public static String changeStartPage(final String browseId) {
|
||||
|
Reference in New Issue
Block a user