Skip to content

Instantly share code, notes, and snippets.

@reflog
Created June 26, 2010 08:49
Show Gist options
  • Save reflog/453910 to your computer and use it in GitHub Desktop.
Save reflog/453910 to your computer and use it in GitHub Desktop.
getApplication().addGlobalEventListener(this);
public void eventOccurred(long guid, int data0, int data1, Object object0,
Object object1) {
if(guid != Main.NOTIFICATIONS_ID_1) return;
Utils.log("db changed, reloading list");
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
try {
listField.updateList();
}catch(Throwable z){
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment