Developer Area

Changeset 675

Show
Ignore:
Timestamp:
01/20/10 09:18:40 (8 months ago)
Author:
henri
Message:

Fix to ensure proper login (or avoidance thereof) on application becoming active.

Location:
apps/iphone/my.tel/trunk/Classes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/MytelAppDelegate.m

    r612 r675  
    5252        // Re-login to make sure the session is ok 
    5353        // Nothing will happen if no account is set up 
    54         [self.rootController loginToCurrentAccount]; 
     54        [self.rootController loginToAccountAtIndex:self.rootController.currentAccountIndex forced:YES]; 
    5555} 
    5656 
  • apps/iphone/my.tel/trunk/Classes/RootViewController.m

    r671 r675  
    178178                                                                                                                selector:@selector(postLoginProcess:)]; 
    179179        } else { 
    180                 // we aren't forcing login, and we're in the current account 
    181                 [self displayControllerForAccountAtIndex:self.currentAccountIndex]; 
     180                // we aren't forcing login, and we're in the current account, and there's no account visible 
     181                if (self.navigationController.topViewController == self) { 
     182                        [self displayControllerForAccountAtIndex:self.currentAccountIndex]; 
     183                } 
    182184        } 
    183185 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us