Fix: Use user agent format of "ReVanced/appVersion (patchVersion)"

This commit is contained in:
LisoUseInAIKyrios 2024-04-05 15:27:56 +04:00
parent b2f4159cab
commit c04a6487ad
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 -> {