aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-06-18 01:30:05 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-06-18 01:30:05 +0000
commitf39d7f822e867aaad4a80af640dcd332d07996c7 (patch)
tree243713c1a9c38518f9c14369583d55c3f7435539 /app/src/main
parentc8e5f60c0ab746ff0b1bc815c92d9a2851fcec97 (diff)
downloadinfinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar.gz
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar.bz2
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar.lz
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar.xz
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.tar.zst
infinity-for-reddit-f39d7f822e867aaad4a80af640dcd332d07996c7.zip
Revert user agent.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java
index cb90fdc7..9db267a4 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java
@@ -5,6 +5,7 @@ import android.util.Base64;
import java.util.HashMap;
import java.util.Map;
+import ml.docilealligator.infinityforreddit.BuildConfig;
import okhttp3.MediaType;
import okhttp3.RequestBody;
@@ -46,8 +47,7 @@ public class APIUtils {
public static final String AUTHORIZATION_KEY = "Authorization";
public static final String AUTHORIZATION_BASE = "bearer ";
public static final String USER_AGENT_KEY = "User-Agent";
- //public static final String USER_AGENT = "android:ml.docilealligator.infinityforreddit:v7.2.0-beta1 (by /u/Hostilenemy)";
- public static final String USER_AGENT = "mobile:ml.docilealligator.infinityforreddit:v7.2.0-beta1 (by /u/Hostilenemy)";
+ public static final String USER_AGENT = "android:ml.docilealligator.infinityforreddit:" + BuildConfig.VERSION_NAME + " (by /u/Hostilenemy)";
public static final String GRANT_TYPE_KEY = "grant_type";
public static final String GRANT_TYPE_REFRESH_TOKEN = "refresh_token";