Android tokenRequest.execute().get() block the UI thread in AuthActivity

Open
#528 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin

Research direction

Start at android/src/main/java/com/dropbox/core/android/AuthActivity.kt around line 216 and trace the tokenRequest.execute().get() call during the browser login return. Reproduce the black screen and connection timeout, then verify that the token request no longer blocks the UI thread and the login flow returns without the delay.

Written by the indexing model from the issue text.

Description

Log in to dropbox in browser and auto back to our app, then a few seconds of black screen displayed.

See the logs: Token Request Failed: failed to connect to api.dropboxapi.com/128.242.240.244 (port 443) from /10.4.1.82 (port 38908) after 20000ms

Relevant code.: https://github.com/dropbox/dropbox-sdk-java/blob/22fe258713caf1c84cc4193a635ef14ae32f0840/android/src/main/java/com/dropbox/core/android/AuthActivity.kt#L216

Dominant language
Java
Stars
627
Forks
463
Avg merge
5m
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/dropbox-sdk-java

All issues in dropbox/dropbox-sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.