Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Fix issue causing blank white dialog when loading friends list
Browse files Browse the repository at this point in the history
Summary:
Set the UIActivityIndicator color to gray to stop it from blending into the background.
On iOS5 we do this by setting the color to gray. On older iOS versions which don't support this
property, this is done by setting the style to UIActivityIndicatorViewStyleGray instead of
UIActivityIndicatorViewStyleWhiteLarge which results in a slightly smaller indicator.

Test Plan: Testing using Hackbook.

Reviewers: jacl, dgibson

Reviewed By: jacl

Differential Revision: https://phabricator.fb.com/D426894

Task ID: 908016
  • Loading branch information
suhasjoshi committed Mar 13, 2012
1 parent b512d54 commit f6ae975
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FBDialog.m
Expand Up @@ -367,6 +367,11 @@ - (id)init {

_spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:
UIActivityIndicatorViewStyleWhiteLarge];
if ([_spinner respondsToSelector:@selector(setColor:)]) {
[_spinner setColor:[UIColor grayColor]];
} else {
[_spinner setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray];
}
_spinner.autoresizingMask =
UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin
| UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
Expand Down

0 comments on commit f6ae975

Please sign in to comment.