Include user-agent and API level in debuglog.

This commit is contained in:
Greyson Parrelli
2022-02-09 10:14:08 -05:00
parent b556967240
commit 5de05edaa1
2 changed files with 9 additions and 4 deletions

View File

@@ -9,7 +9,9 @@ import org.thoughtcrime.securesms.BuildConfig;
*/
public class StandardUserAgentInterceptor extends UserAgentInterceptor {
public static final String USER_AGENT = "Signal-Android/" + BuildConfig.VERSION_NAME + " Android/" + Build.VERSION.SDK_INT;
public StandardUserAgentInterceptor() {
super("Signal-Android/" + BuildConfig.VERSION_NAME + " Android/" + Build.VERSION.SDK_INT);
super(USER_AGENT);
}
}