locate (minor change)

This commit is contained in:
kapodamy 2018-06-09 23:17:21 -03:00 committed by GitHub
parent c8a287b84f
commit 869cf3398e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -137,6 +137,16 @@ public class NewPipe {
countryLanguage = language.append(",*;q=0.3").toString();
}
/**
* Sets the language for HTTP requests and which locale variant is preferred.
*
* @param defaultCountry Default country code to be used if not possible
* determine the device country code. This parameter can be NULL.
*/
public static void setCountryLanguage(@Nullable String defaultCountry) {
setCountryLanguage(null, defaultCountry);
}
/**
* Get the language for HTTP requests
*