Skip to content

Instantly share code, notes, and snippets.

@fbencosme
Last active April 24, 2017 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbencosme/59bb889f47d8404bfc9d6544e9e340c2 to your computer and use it in GitHub Desktop.
Save fbencosme/59bb889f47d8404bfc9d6544e9e340c2 to your computer and use it in GitHub Desktop.
public static class NetworkHelpers
{
public static IObservable<T> WithProgressDialog<T>(this IObservable<T> source, Activity act)
{
var p = new AlertDialog.Builder(act).Create();
p.Show();
return source.Finally(p.Dismiss);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment