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; // www . jav a 2s . c om import com.squareup.otto.Bus; import com.squareup.otto.ThreadEnforcer; ; public class DataBus { private static Bus mInstance = null; private static UploadStatusEventProducer statProducer = null; public static Bus getInstance() { if (mInstance == null) { mInstance = new Bus(ThreadEnforcer.ANY); } if (statProducer == null) { statProducer = new UploadStatusEventProducer(); statProducer.register(mInstance); } return mInstance; } public static void postUploadStatusEventProducer(UploadStatusEvent event) { getInstance().post(event); statProducer.setLastServiceRefreshingEvent(event); } }