Skip to content

Instantly share code, notes, and snippets.

@skyler
Created June 10, 2010 23:05
Show Gist options
  • Save skyler/433767 to your computer and use it in GitHub Desktop.
Save skyler/433767 to your computer and use it in GitHub Desktop.
@Override
public void onResume()
{
super.onResume();
FavoritesController controller = FavoritesController.getInstance()
synchronized (controller) {
if (controller.isLoading()) {
try {
controller.wait();
} catch (InterruptedException e) {
//
}
}
}
if (controller.isInvalidated()) {
updateFavorites();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment