Back to project page PicSync.
The source code is released under:
Apache License
If you think the Android project PicSync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.darrenmowat.gdcu.otto; //from www . jav a 2 s . com import com.squareup.otto.Bus; import com.squareup.otto.Produce; public class UploadStatusEventProducer { private UploadStatusEvent lastEvent = new UploadStatusEvent("", ""); private boolean registered = false; public void register(Bus bus) { if (!registered) { bus.register(this); registered = true; } } public void unregister(Bus bus) { if (registered) { bus.unregister(this); registered = false; } } @Produce public UploadStatusEvent produceUploadStatusEvent() { return lastEvent; } public void setLastServiceRefreshingEvent(UploadStatusEvent lastEvent) { this.lastEvent = lastEvent; } }