Skip to content

Commit

Permalink
Merge pull request #2018 from BlainHamon/timob-8127
Browse files Browse the repository at this point in the history
TIMOB-8127: Add facebook screen to main window, not key window.
  • Loading branch information
Max Stepanov committed Apr 17, 2012
2 parents 84f5961 + 385290d commit 246f91f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions iphone/Classes/FBConnect/FBDialog.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#import "FBDialog.h"
#import "Facebook.h"

#import "TiApp.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
// global

Expand Down Expand Up @@ -584,10 +586,7 @@ - (void)show {
[_spinner startAnimating];
_spinner.center = _webView.center;

UIWindow* window = [UIApplication sharedApplication].keyWindow;
if (!window) {
window = [[UIApplication sharedApplication].windows objectAtIndex:0];
}
UIWindow* window = [[TiApp app] window];
[window addSubview:self];

[self dialogWillAppear];
Expand Down

0 comments on commit 246f91f

Please sign in to comment.