You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/spotify/src/main/java/app/revanced/extension/spotify/layout/hide/createbutton/HideCreateButtonPatch.java
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,11 @@ public static Object returnNullIfIsCreateButton(Object navigationBarItem) {
37
37
StringmatchedTitleResId = null;
38
38
39
39
for (StringtitleResId : CREATE_BUTTON_TITLE_RES_ID_LIST) {
40
+
// In case the resource id has not been found.
41
+
if (titleResId.equals("0")) {
42
+
continue;
43
+
}
44
+
40
45
if (stringifiedNavigationBarItem.contains(titleResId)) {
41
46
isCreateButton = true;
42
47
matchedTitleResId = titleResId;
@@ -58,6 +63,11 @@ public static Object returnNullIfIsCreateButton(Object navigationBarItem) {
0 commit comments