// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/RedditHeadlinesApplication.java
// @EApplication
// public class RedditHeadlinesApplication extends Application {
//     public static final String TAG = "RedditHeadlinesApplication";
//     private static RedditHeadlinesApplication mInstance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         EasyTracker.getInstance(this);
//         Thread.UncaughtExceptionHandler uncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
//         if (uncaughtExceptionHandler instanceof ExceptionReporter) {
//             ExceptionReporter exceptionReporter = (ExceptionReporter) uncaughtExceptionHandler;
//             exceptionReporter.setExceptionParser(new AnalyticsExceptionParser());
//         }
//         mInstance = this;
//     }
// 
//     public static Context getContext() {
//         return mInstance;
//     }
// 
//     public static void toast(String message) {
//         mInstance.makeToast(message);
//     }
// 
//     @UiThread
//     void makeToast(String message) {
//         Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();
//     }
// }


import android.util.Log;
import com.squareup.otto.Produce;
import net.trolldad.dashclock.redditheadlines.RedditHeadlinesApplication;
import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.UiThread;
package net.trolldad.dashclock.redditheadlines.otto;





/**
 * Created by jacob-tabak on 1/29/14.
 */
@EBean(scope = EBean.Scope.Singleton)
public class UpdateService {
    @Bean
    MyBus mBus;


    @AfterInject
    void init() {
        mBus.register(this);
    }

    @UiThread
    public void onUpdateDashClock() {
// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/RedditHeadlinesApplication.java
// @EApplication
// public class RedditHeadlinesApplication extends Application {
//     public static final String TAG = "RedditHeadlinesApplication";
//     private static RedditHeadlinesApplication mInstance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         EasyTracker.getInstance(this);
//         Thread.UncaughtExceptionHandler uncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
//         if (uncaughtExceptionHandler instanceof ExceptionReporter) {
//             ExceptionReporter exceptionReporter = (ExceptionReporter) uncaughtExceptionHandler;
//             exceptionReporter.setExceptionParser(new AnalyticsExceptionParser());
//         }
//         mInstance = this;
//     }
// 
//     public static Context getContext() {
//         return mInstance;
//     }
// 
//     public static void toast(String message) {
//         mInstance.makeToast(message);
//     }
// 
//     @UiThread
//     void makeToast(String message) {
//         Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();
//     }
// }


// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/otto/UpdateService.java
import android.util.Log;
import com.squareup.otto.Produce;
import net.trolldad.dashclock.redditheadlines.RedditHeadlinesApplication;
import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.UiThread;

package net.trolldad.dashclock.redditheadlines.otto;





/**
 * Created by jacob-tabak on 1/29/14.
 */
@EBean(scope = EBean.Scope.Singleton)
public class UpdateService {
    @Bean
    MyBus mBus;


    @AfterInject
    void init() {
        mBus.register(this);
    }

    @UiThread
    public void onUpdateDashClock() {
        Log.d(RedditHeadlinesApplication.TAG, "Posting update event to service");