generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: ILoveOpenSourceApplications <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: LisoUseInAIKyrios <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: alieRN <[email protected]> Co-authored-by: oSumAtrIX <[email protected]>
- Loading branch information
Showing
146 changed files
with
1,963 additions
and
3,619 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Pull strings | |
|
||
on: | ||
schedule: | ||
- cron: "0 */6 * * *" | ||
- cron: "0 */8 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
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
54 changes: 54 additions & 0 deletions
54
...ain/java/app/revanced/extension/shared/settings/preference/NoTitlePreferenceCategory.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,54 @@ | ||
package app.revanced.extension.shared.settings.preference; | ||
|
||
import android.annotation.SuppressLint; | ||
import android.content.Context; | ||
import android.preference.PreferenceCategory; | ||
import android.util.AttributeSet; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
/** | ||
* Empty preference category with no title, used to organize and group related preferences together. | ||
*/ | ||
@SuppressWarnings({"unused", "deprecation"}) | ||
public class NoTitlePreferenceCategory extends PreferenceCategory { | ||
|
||
public NoTitlePreferenceCategory(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
public NoTitlePreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr) { | ||
super(context, attrs, defStyleAttr); | ||
} | ||
|
||
public NoTitlePreferenceCategory(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
@SuppressLint("MissingSuperCall") | ||
protected View onCreateView(ViewGroup parent) { | ||
// Return an zero-height view to eliminate empty title space. | ||
return new View(getContext()); | ||
} | ||
|
||
@Override | ||
public CharSequence getTitle() { | ||
// Title can be used for sorting. Return the first sub preference title. | ||
if (getPreferenceCount() > 0) { | ||
return getPreference(0).getTitle(); | ||
} | ||
|
||
return super.getTitle(); | ||
} | ||
|
||
@Override | ||
public int getTitleRes() { | ||
if (getPreferenceCount() > 0) { | ||
return getPreference(0).getTitleRes(); | ||
} | ||
|
||
return super.getTitleRes(); | ||
} | ||
} | ||
|
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
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
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
Oops, something went wrong.