Last active
April 24, 2017 19:41
-
-
Save fbencosme/59bb889f47d8404bfc9d6544e9e340c2 to your computer and use it in GitHub Desktop.
Revisions
-
Fausto Bencosme revised this gist
Apr 24, 2017 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,9 @@ 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); } } -
Fausto Bencosme created this gist
Apr 24, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ public static class NetworkHelpers { public static IObservable<T> WithProgressDialog<T>(this IObservable<T> source, Context ctx) { var progress = new AlertDialog.Builder(ctx, SL.TransparentAlert).Create(); pm.Show(); return source.Finally(pm.Dismiss); } }