Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[iOS] Don't use white spinner on white background
Browse files Browse the repository at this point in the history
  • Loading branch information
ermau committed Sep 16, 2013
1 parent 6c763f7 commit 01461ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Xamarin.Auth.iOS/WebAuthenticatorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ public WebAuthenticatorController (WebAuthenticator authenticator)
});
}

activity = new UIActivityIndicatorView (UIActivityIndicatorViewStyle.White);
var activityStyle = UIActivityIndicatorViewStyle.White;
if (UIDevice.CurrentDevice.CheckSystemVersion (7, 0))
activityStyle = UIActivityIndicatorViewStyle.Gray;

activity = new UIActivityIndicatorView (activityStyle);
NavigationItem.RightBarButtonItem = new UIBarButtonItem (activity);

webView = new UIWebView (View.Bounds) {
Expand Down

0 comments on commit 01461ea

Please sign in to comment.