This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make all patches toggleable with settings (#87)
- Loading branch information
1 parent
0e01041
commit 6d3d274
Showing
6 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
app/src/main/java/app/revanced/integrations/patches/FullscreenPanelsRemoverPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import android.view.View; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public class FullscreenPanelsRemoverPatch { | ||
|
||
public int getFullsceenPanelsVisibility() { | ||
return SettingsEnum.FULLSCREEN_PANELS_SHOWN.getBoolean() ? View.VISIBLE : View.GONE; | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/app/revanced/integrations/patches/HideAutoplayButtonPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public class HideAutoplayButtonPatch { | ||
|
||
public static boolean isButtonShown() { | ||
return SettingsEnum.AUTOPLAY_BUTTON_SHOWN.getBoolean(); | ||
} | ||
|
||
public static boolean isButtonHidden() { | ||
return !isButtonShown(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/app/revanced/integrations/patches/MinimizedPlaybackPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public class MinimizedPlaybackPatch { | ||
|
||
public static boolean isMinimizedPlaybackEnabled() { | ||
return SettingsEnum.ENABLE_MINIMIZED_PLAYBACK.getBoolean(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters