mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-28 21:00:19 +02:00
chore: Remove deprecated code
This commit is contained in:
parent
a50eed6466
commit
7b7a057830
@ -1,6 +1,5 @@
|
||||
package app.revanced.extension.music.patches.general;
|
||||
|
||||
import static app.revanced.extension.music.utils.ExtendedUtils.isSpoofingToLessThan;
|
||||
import static app.revanced.extension.shared.utils.Utils.hideViewBy0dpUnderCondition;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
@ -161,7 +160,7 @@ public class GeneralPatch {
|
||||
|
||||
public static String restoreOldStyleLibraryShelf(final String browseId) {
|
||||
final boolean oldStyleLibraryShelfEnabled =
|
||||
Settings.RESTORE_OLD_STYLE_LIBRARY_SHELF.get() || isSpoofingToLessThan("5.38.00");
|
||||
Settings.RESTORE_OLD_STYLE_LIBRARY_SHELF.get();
|
||||
return oldStyleLibraryShelfEnabled && browseId.equals("FEmusic_library_landing")
|
||||
? "FEmusic_liked"
|
||||
: browseId;
|
||||
|
@ -12,6 +12,7 @@ import app.revanced.extension.shared.utils.PackageUtils;
|
||||
|
||||
public class ExtendedUtils extends PackageUtils {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static boolean isSpoofingToLessThan(@NonNull String versionName) {
|
||||
if (!Settings.SPOOF_APP_VERSION.get())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user