Skip to content

Commit

Permalink
The following situation would fail: user opens app A and proceeds to …
Browse files Browse the repository at this point in the history
…buy compatible app B. When coming back to app A to send to app B, app B would still be in the "more apps" list. I'm clearing the cache on app start so that it will be remade on app startup and the list would be correct then.
  • Loading branch information
gpambrozio committed Jul 21, 2011
1 parent c031b62 commit 28018d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PhotoAppLink/PALManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ @implementation PALManager
// This update is only performed once every few days
- (void)updateSupportedAppsInBackground
{
// invalidate cached list of supported apps
self.supportedApps = nil;

// check if we already updated recently
NSUserDefaults* userPrefs = [NSUserDefaults standardUserDefaults];
NSDate* lastUpdateDate = [userPrefs objectForKey:LASTUPDATE_USERPREF_KEY];
Expand Down

0 comments on commit 28018d3

Please sign in to comment.