mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 12:35:30 +03:00
Use product user agent
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8d3c8151df
commit
6d6580afb3
1 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,9 @@ package com.nextcloud.talk.api.helpers.api;
|
|||
import android.net.Uri;
|
||||
|
||||
import com.nextcloud.talk.BuildConfig;
|
||||
import com.nextcloud.talk.R;
|
||||
import com.nextcloud.talk.api.models.RetrofitBucket;
|
||||
import com.nextcloud.talk.application.NextcloudTalkApplication;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -33,10 +35,9 @@ public class ApiHelper {
|
|||
private static String ocsApiVersion = "/ocs/v2.php";
|
||||
private static String spreedApiVersion = "/apps/spreed/api/v1";
|
||||
|
||||
private static String userAgent = "Nextcloud Talk Android/v";
|
||||
|
||||
public static String getUserAgent() {
|
||||
return userAgent + BuildConfig.VERSION_NAME;
|
||||
return NextcloudTalkApplication.getSharedApplication().getResources().getString(R.string.nc_app_name) +
|
||||
" Android v" + BuildConfig.VERSION_NAME;
|
||||
}
|
||||
|
||||
public static RetrofitBucket getRetrofitBucketForContactsSearch(String baseUrl, String searchQuery) {
|
||||
|
|
Loading…
Reference in a new issue