Skip to content

Commit b9723aa

Browse files
committed
Only keep language and country in locale argument for connect page.
1 parent 3af3c57 commit b9723aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/dropbox/core/android/AuthActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ private void authFinished(Intent authResult) {
542542
private void startWebAuth(String state) {
543543
String path = "1/connect";
544544
Locale locale = Locale.getDefault();
545+
locale = new Locale(locale.getLanguage(), locale.getCountry());
545546

546547
// Web Auth currently does not support desiredUid and only one alreadyAuthUid (param n).
547548
// We use first alreadyAuthUid arbitrarily.

0 commit comments

Comments
 (0)