mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-20 08:47:33 +01:00
fix(youtube/return-youtube-dislike): fix potential error toast when using old UI layout (#384)
This commit is contained in:
parent
12c7c6844b
commit
6c36beeda1
@ -80,10 +80,11 @@ public class ReturnYouTubeDislikePatch {
|
|||||||
*
|
*
|
||||||
* Used when spoofing the older app versions of {@link SpoofAppVersionPatch}.
|
* Used when spoofing the older app versions of {@link SpoofAppVersionPatch}.
|
||||||
*/
|
*/
|
||||||
public static void setOldUILayoutDislikes(int buttonViewResourceId, @NonNull TextView textView) {
|
public static void setOldUILayoutDislikes(int buttonViewResourceId, @Nullable TextView textView) {
|
||||||
try {
|
try {
|
||||||
if (!SettingsEnum.RYD_ENABLED.getBoolean()
|
if (!SettingsEnum.RYD_ENABLED.getBoolean()
|
||||||
|| buttonViewResourceId != OLD_UI_DISLIKE_BUTTON_RESOURCE_ID) {
|
|| buttonViewResourceId != OLD_UI_DISLIKE_BUTTON_RESOURCE_ID
|
||||||
|
|| textView == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (oldUIOriginalSpan == null) {
|
if (oldUIOriginalSpan == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user