Skip to content

Don't use ProgressDialogs #724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SUPERCILEX opened this issue May 24, 2017 · 5 comments
Closed

Don't use ProgressDialogs #724

SUPERCILEX opened this issue May 24, 2017 · 5 comments

Comments

@SUPERCILEX
Copy link
Collaborator

@samtstern I started compiling some of my projects for O and I noticed that ProgressDialog is deprecated. Ouch. It makes sense because having a whole dialog just for loading is a bit jarring and I can see how the UX would be improved by having loading spinners integrated directly into the views. However, this is going to be a very painful transition for us since we use the ProgressDialog for everything async. 😕 Could you get some designers to take a look at our loading spinners and figure out where we should put them? I was thinking directly into the button the user presses, but I have no clue. 😄

@samtstern
Copy link
Contributor

Yeah I've noticed that too ... ProgressDialog has one nice property in that it blocks further interaction while the async action happens. But I agree, it's a big hammer for a small nail.

We can put some more thought into this after 2.0

@SUPERCILEX
Copy link
Collaborator Author

@samtstern Yeah, we'll have to setEnabled(false) all the views and things will probably get messy really fast, but it has to get done at some point, preferably before the final release of O to AOSP. Do you think that's a reasonable target?

@CarsonBradshaw
Copy link

I think it'd be good practice to get rid of the ProgressDialogs as well. The dialog that fires immediately after calling AuthUI.getInstance().createSignInIntentBuilder().build() was the primary factor in deciding not to use Auth-UI for me personally. Because this intent must be fired with startActivityForResult, the firing activity cannot call finish() on itself immediately as it must wait for a result. This alone causes enough of a "hitch" in the interaction and adding a dialog which appears for a split second then disappears does not make that interaction any more seamless.

@samtstern
Copy link
Contributor

Special note about #1052, which may be a sub-case we can fix sooner.

@samtstern samtstern mentioned this issue May 3, 2018
8 tasks
@samtstern samtstern added this to the 4.0.0 milestone May 17, 2018
@samtstern
Copy link
Contributor

This has been fixed and released in 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants