void replicationComplete ( ) { reloadTasksFromModel ( ) ; Toast . makeText ( getApplicationContext ( ) , R . string . replication_completed , Toast . LENGTH_LONG ) . show ( ) ; dismissDialog ( DIALOG_PROGRESS ) ; }
Called by TasksModel when it receives a replication complete callback . TasksModel takes care of calling this on the main thread .