forked from ReVanced/revanced-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prepare for hide-suggestions patch (ReVanced#35)
- Loading branch information
1 parent
3a2655b
commit 0ce6aa8
Showing
5 changed files
with
15 additions
and
31 deletions.
There are no files selected for viewing
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
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
8 changes: 3 additions & 5 deletions
8
app/src/main/java/app/revanced/integrations/patches/HideInfoCardSuggestionsPatch.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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.adremover.AdRemoverAPI; | ||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public class HideInfoCardSuggestionsPatch { | ||
|
||
//TODO: Create Patch | ||
//Not used yet | ||
public static void HideInfoCardSuggestions(Object InfoCardOverlayPresenter) { | ||
AdRemoverAPI.removeInfoCardSuggestions(InfoCardOverlayPresenter); | ||
public static int hideInfoCardSuggestions() { | ||
return SettingsEnum.INFO_CARDS_SHOWN_BOOLEAN.getBoolean() ? 0 : 8; | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
app/src/main/java/app/revanced/integrations/patches/HideSuggestionsPatch.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import android.view.View; | ||
|
||
import app.revanced.integrations.adremover.AdRemoverAPI; | ||
|
||
public class HideSuggestionsPatch { | ||
|
||
//TODO: Create Patch | ||
//Not used yet | ||
public static void HideSuggestions(boolean showSuggestions) { | ||
AdRemoverAPI.removeSuggestions(showSuggestions); | ||
public static void hideSuggestions(View view) { | ||
AdRemoverAPI.hideSuggestions(view); | ||
} | ||
|
||
} |