mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 19:36:30 +02:00
Fix: Use user agent format of "ReVanced/appVersion (patchVersion)"
This commit is contained in:
parent
b2f4159cab
commit
c04a6487ad
|
@ -26,7 +26,7 @@ public class Requester {
|
|||
connection.setRequestMethod(route.getMethod().name());
|
||||
String agentString = System.getProperty("http.agent")
|
||||
+ "; ReVanced/" + Utils.getAppVersionName()
|
||||
+ "-" + Utils.getPatchesReleaseVersion();
|
||||
+ " (" + Utils.getPatchesReleaseVersion() + ")";
|
||||
connection.setRequestProperty("User-Agent", agentString);
|
||||
|
||||
return connection;
|
||||
|
|
|
@ -9,7 +9,7 @@ import android.util.AttributeSet;
|
|||
/**
|
||||
* Allows tapping the DeArrow about preference to open the DeArrow website.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
@SuppressWarnings({"unused", "deprecation"})
|
||||
public class AlternativeThumbnailsAboutDeArrowPreference extends Preference {
|
||||
{
|
||||
setOnPreferenceClickListener(pref -> {
|
||||
|
|
Loading…
Reference in New Issue
Block a user