Search in sources :

Example 41 with Subscribe

use of com.squareup.otto.Subscribe in project zype-android by zype.

the class PlaylistFragment method handleRetrievePlaylist.

@Subscribe
public void handleRetrievePlaylist(PlaylistEvent event) {
    Logger.d("handlePlaylistEvent size=" + event.getEventData().getModelData().getResponse().size());
    Playlist data = event.getEventData().getModelData();
    if (data.getResponse().size() > 0) {
        if (mPlaylistList == null) {
            mPlaylistList = new ArrayList<>();
        }
        mPlaylistList.addAll(data.getResponse());
        // with platform in case some palylists were deleted
        if (event.getEventData().getModelData().getPagination().getCurrent() == 1) {
            DataHelper.deletePlaylistsByParentId(getActivity().getContentResolver(), parentId);
        }
        int i = DataHelper.insertPlaylists(getActivity().getContentResolver(), data.getResponse());
        Logger.d("added " + i + " playlists");
    } else {
        mTvEmpty.setText(R.string.videos_empty);
    }
}
Also used : Playlist(com.zype.android.webapi.model.playlist.Playlist) Subscribe(com.squareup.otto.Subscribe)

Example 42 with Subscribe

use of com.squareup.otto.Subscribe in project WeexErosFramework by bmfe.

the class DispatchEventCenter method onWeexEvent.

@Subscribe
public void onWeexEvent(WeexEventBean weexEventBean) {
    if (weexEventBean == null)
        return;
    Context context = safeContext(weexEventBean.getContext());
    if (context == null)
        return;
    String params = weexEventBean.getJsParams();
    switch(weexEventBean.getKey()) {
        case WXConstant.WXEventCenter.EVENT_PAYBYWECHAT:
            if (TextUtils.isEmpty(params))
                return;
            new EventPay().pay(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_OPEN:
            if (TextUtils.isEmpty(params))
                return;
            if (weexEventBean.getCallbacks() != null) {
                new EventOpen().open(params, context, weexEventBean.getCallbacks());
            } else if (weexEventBean.getJscallback() != null) {
                new EventOpen().open(params, context, weexEventBean.getJscallback());
            } else {
                new EventOpen().open(params, context);
            }
            break;
        case WXConstant.WXEventCenter.EVENT_GETPARAMS:
            new EventGetParams().getParams(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_BACK:
            new EventBack().back(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_GETBACKPARAMS:
            new EventGetBackParams().getBackParams(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_REFRESH:
            new EventRefresh().refresh(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_FINISH:
            new EventFinish().finish(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_TOMAP:
            new EventToMap().toMap(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_TOWEBVIEW:
            new EventWebView().toWebView(params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_CALL:
            new EventCall().call(params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_SETDATA:
            new EventSetData().setData(context, weexEventBean.getParamsList(), weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_GETDATA:
            new EventGetData().getData(context, weexEventBean.getParamsList(), weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_DELETEDATA:
            new EventDeleteData().deleteData(context, weexEventBean.getParamsList(), weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_REMOVEDATA:
            new EventRemoveData().removeData(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_BROWSERIMG:
            if (TextUtils.isEmpty(params))
                return;
            new EventBrowse().open(params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_MODAL_ALERT:
            if (TextUtils.isEmpty(params))
                return;
            JSCallback modal_alert_callback = weexEventBean.getJscallback();
            new EventAlert().alert(params, modal_alert_callback, context);
            break;
        case WXConstant.WXEventCenter.EVENT_MODAL_CONFIRM:
            if (TextUtils.isEmpty(params))
                return;
            ArrayList<JSCallback> callbacks = weexEventBean.getCallbacks();
            if (callbacks == null && callbacks.size() < 2)
                return;
            new EventConfirm().confirm(params, callbacks.get(0), callbacks.get(1), context);
            break;
        case WXConstant.WXEventCenter.EVENT_MODAL_SHOWLOADING:
            if (TextUtils.isEmpty(params))
                return;
            JSCallback modal_showloading_callback = weexEventBean.getJscallback();
            new EventShowLoading().showLoading(params, modal_showloading_callback, context);
            break;
        case WXConstant.WXEventCenter.EVENT_MODAL_TOAST:
            if (TextUtils.isEmpty(params))
                return;
            new EventToast().toast(params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_FETCH:
            new EventFetch().fetch(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_CAMERA_UPLOADIMAGE:
            new EventCamera().uploadImage(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_CAMERA_PATH:
            new EventCamera().openCamera(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_CAMERA:
            JSCallback jscallback = weexEventBean.getJscallback();
            new EventCamera().scan(jscallback, context);
            break;
        case WXConstant.WXEventCenter.EVENT_RIGHTITEM:
            new EventRightItem().setRightItem(params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_LEFTITEM:
            new EventLeftItem().setLeftItem(params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_CENTERITEM:
            new EventCenterItem().setCenterItem(params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_NAVIGATIONINFO:
            new EventNavigationInfo().setNavigationInfo(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_RESIGNKEYBOARD:
            new EventTool().resignKeyboard(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_ISINSTALLWXAPP:
            new EventTool().isWXInstall(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_GETCID:
            new EventTool().getCid(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_COPYSTRING:
            new EventTool().copyString(context, params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_MODAL_DISMISSLOADING:
            new EventDismissLoading().dismiss(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_SHARE:
            new EventShare().share(context, params, weexEventBean.getCallbacks().get(0), weexEventBean.getCallbacks().get(1));
            break;
        case WXConstant.WXEventCenter.EVENT_RELAYTOFRIEND:
            new EventShare().relayToFriend(context, params, weexEventBean.getCallbacks());
            break;
        case WXConstant.WXEventCenter.EVENT_RELAYTOCRICLE:
            new EventShare().relayToCricle(context, params, weexEventBean.getCallbacks());
            break;
        case WXConstant.WXEventCenter.EVENT_WECHATLOGIN:
            new EventAuth().wechat(context, params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_OPENBROWSER:
            new EventOpenBrowser().openBrowser(context, params, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_COMMUNICATION_SMS:
            new EventCommunication().sms(weexEventBean.getExpand().toString(), params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_COMMUNICATION_CONTACTS:
            new EventCommunication().contacts(context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_SET_HOMEPAGE:
            new EventSetHomePage().setHomePage(context, params);
            break;
        case WXConstant.WXEventCenter.EVENT_IMAGE_PICK:
            new EventImage().pick(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_IMAGE_UPLOAD:
            new EventFetch().uploadImage(params, context, weexEventBean.getJscallback());
            break;
        case WXConstant.WXEventCenter.EVENT_NAV:
            new EventNav().nav(params, context);
            break;
        case WXConstant.WXEventCenter.EVENT_GEOLOCATION_GET:
            reflectionClazzPerform("com.plugamap.EventGeo", context, params, weexEventBean.getJscallback(), "");
            break;
        default:
            break;
    }
}
Also used : EventRightItem(com.benmu.framework.event.nav.EventRightItem) EventNavigationInfo(com.benmu.framework.event.nav.EventNavigationInfo) EventImage(com.benmu.framework.event.camera.EventImage) EventDismissLoading(com.benmu.framework.event.modal.EventDismissLoading) EventBack(com.benmu.framework.event.router.EventBack) EventBrowse(com.benmu.framework.event.browse.EventBrowse) EventOpenBrowser(com.benmu.framework.event.router.EventOpenBrowser) EventSetHomePage(com.benmu.framework.event.router.EventSetHomePage) EventShare(com.benmu.framework.event.share.EventShare) EventAuth(com.benmu.framework.event.auth.EventAuth) EventCamera(com.benmu.framework.event.camera.EventCamera) EventAlert(com.benmu.framework.event.modal.EventAlert) EventGetBackParams(com.benmu.framework.event.router.EventGetBackParams) EventLeftItem(com.benmu.framework.event.nav.EventLeftItem) Context(android.content.Context) EventGetParams(com.benmu.framework.event.router.EventGetParams) EventRefresh(com.benmu.framework.event.router.EventRefresh) EventPay(com.benmu.framework.event.pay.EventPay) EventRemoveData(com.benmu.framework.event.shorage.EventRemoveData) EventTool(com.benmu.framework.event.tool.EventTool) EventNav(com.benmu.framework.event.router.EventNav) EventWebView(com.benmu.framework.event.router.EventWebView) EventSetData(com.benmu.framework.event.shorage.EventSetData) EventToMap(com.benmu.framework.event.router.EventToMap) EventGetData(com.benmu.framework.event.shorage.EventGetData) EventOpen(com.benmu.framework.event.router.EventOpen) EventFinish(com.benmu.framework.event.router.EventFinish) EventToast(com.benmu.framework.event.modal.EventToast) JSCallback(com.taobao.weex.bridge.JSCallback) EventCall(com.benmu.framework.event.router.EventCall) EventDeleteData(com.benmu.framework.event.shorage.EventDeleteData) EventFetch(com.benmu.framework.event.http.EventFetch) EventCenterItem(com.benmu.framework.event.nav.EventCenterItem) EventShowLoading(com.benmu.framework.event.modal.EventShowLoading) EventConfirm(com.benmu.framework.event.modal.EventConfirm) Subscribe(com.squareup.otto.Subscribe)

Example 43 with Subscribe

use of com.squareup.otto.Subscribe in project open-event-android by fossasia.

the class MainActivity method errorHandlerEvent.

@Subscribe
public void errorHandlerEvent(RetrofitError error) {
    String errorType;
    String errorDesc;
    ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
    NetworkInfo netinfo = connMgr != null ? connMgr.getActiveNetworkInfo() : null;
    if (!(netinfo != null && netinfo.isConnected())) {
        StrategyRegistry.getInstance().getEventBusStrategy().postEventOnUIThread(new ShowNetworkDialogEvent());
    } else {
        if (error.getThrowable() instanceof IOException) {
            errorType = "Timeout";
            errorDesc = String.valueOf(error.getThrowable().getCause());
        } else if (error.getThrowable() instanceof IllegalStateException) {
            errorType = "ConversionError";
            errorDesc = String.valueOf(error.getThrowable().getCause());
        } else {
            errorType = "Other Error";
            errorDesc = String.valueOf(error.getThrowable().getLocalizedMessage());
        }
        Timber.tag(errorType).e(errorDesc);
        showErrorSnackbar(errorType, errorDesc);
    }
}
Also used : NetworkInfo(android.net.NetworkInfo) ConnectivityManager(android.net.ConnectivityManager) ShowNetworkDialogEvent(org.fossasia.openevent.common.events.ShowNetworkDialogEvent) IOException(java.io.IOException) Subscribe(com.squareup.otto.Subscribe)

Example 44 with Subscribe

use of com.squareup.otto.Subscribe in project open-event-android by fossasia.

the class MainActivity method showNetworkDialog.

@Subscribe
public void showNetworkDialog(ShowNetworkDialogEvent event) {
    completeHandler.hide();
    if (dialogNetworkNotification == null) {
        dialogNetworkNotification = DialogFactory.createCancellableSimpleActionDialog(this, R.string.net_unavailable, R.string.turn_on, R.string.ok, R.string.cancel, (dialogInterface, button) -> {
            switch(button) {
                case DialogInterface.BUTTON_POSITIVE:
                    Intent setNetworkIntent = new Intent(Settings.ACTION_SETTINGS);
                    startActivity(setNetworkIntent);
                    break;
                case DialogInterface.BUTTON_NEGATIVE:
                    dialogNetworkNotification.dismiss();
                    return;
                default:
            }
        });
    }
    dialogNetworkNotification.show();
}
Also used : Bundle(android.os.Bundle) Completable(io.reactivex.Completable) ImageView(android.widget.ImageView) DataDownloadEvent(org.fossasia.openevent.common.events.DataDownloadEvent) Track(org.fossasia.openevent.data.Track) Handler(android.os.Handler) ConnectivityManager(android.net.ConnectivityManager) SmoothActionBarDrawerToggle(org.fossasia.openevent.common.ui.SmoothActionBarDrawerToggle) Realm(io.realm.Realm) TracksDownloadEvent(org.fossasia.openevent.common.events.TracksDownloadEvent) SessionType(org.fossasia.openevent.data.SessionType) Fragment(android.support.v4.app.Fragment) LocationsFragment(org.fossasia.openevent.core.location.LocationsFragment) Snackbar(android.support.design.widget.Snackbar) DialogFactory(org.fossasia.openevent.common.ui.DialogFactory) Sponsor(org.fossasia.openevent.data.Sponsor) ConstantStrings(org.fossasia.openevent.common.ConstantStrings) FacebookApi(org.fossasia.openevent.core.feed.facebook.api.FacebookApi) ButterKnife(butterknife.ButterKnife) UserProfileActivity(org.fossasia.openevent.core.auth.profile.UserProfileActivity) Dialog(android.app.Dialog) SponsorsFragment(org.fossasia.openevent.core.sponsor.SponsorsFragment) BaseActivity(org.fossasia.openevent.common.ui.base.BaseActivity) CommonTaskLoop(org.fossasia.openevent.common.utils.CommonTaskLoop) SpeakerDownloadEvent(org.fossasia.openevent.common.events.SpeakerDownloadEvent) Menu(android.view.Menu) DownloadCompleteHandler(org.fossasia.openevent.common.api.DownloadCompleteHandler) Settings(android.provider.Settings) Observable(io.reactivex.Observable) DrawerLayout(android.support.v4.widget.DrawerLayout) StrategyRegistry(org.fossasia.openevent.config.StrategyRegistry) ComponentName(android.content.ComponentName) DataDownloadManager(org.fossasia.openevent.common.api.DataDownloadManager) TextUtils(android.text.TextUtils) IOException(java.io.IOException) CounterEvent(org.fossasia.openevent.common.events.CounterEvent) Subscribe(com.squareup.otto.Subscribe) FragmentManager(android.support.v4.app.FragmentManager) AlertDialog(android.support.v7.app.AlertDialog) Toolbar(android.support.v7.widget.Toolbar) Microlocation(org.fossasia.openevent.data.Microlocation) Session(org.fossasia.openevent.data.Session) JsonReadEvent(org.fossasia.openevent.common.events.JsonReadEvent) RealmDataRepository(org.fossasia.openevent.data.repository.RealmDataRepository) EditText(android.widget.EditText) NavigationView(android.support.design.widget.NavigationView) Rect(android.graphics.Rect) SocialLink(org.fossasia.openevent.data.extras.SocialLink) AndroidSchedulers(io.reactivex.android.schedulers.AndroidSchedulers) SessionDownloadEvent(org.fossasia.openevent.common.events.SessionDownloadEvent) BindView(butterknife.BindView) TracksFragment(org.fossasia.openevent.core.track.TracksFragment) SettingsActivity(org.fossasia.openevent.core.settings.SettingsActivity) EventDownloadEvent(org.fossasia.openevent.common.events.EventDownloadEvent) CustomTabsServiceConnection(android.support.customtabs.CustomTabsServiceConnection) APIClient(org.fossasia.openevent.common.api.APIClient) View(android.view.View) Schedulers(io.reactivex.schedulers.Schedulers) CustomTabsClient(android.support.customtabs.CustomTabsClient) R(org.fossasia.openevent.R) RetrofitResponseEvent(org.fossasia.openevent.common.events.RetrofitResponseEvent) NetworkInfo(android.net.NetworkInfo) SponsorDownloadEvent(org.fossasia.openevent.common.events.SponsorDownloadEvent) Urls(org.fossasia.openevent.common.api.Urls) DiscountCodeFragment(org.fossasia.openevent.core.discount.DiscountCodeFragment) ScheduleFragment(org.fossasia.openevent.core.schedule.ScheduleFragment) SharedPreferencesUtil(org.fossasia.openevent.common.utils.SharedPreferencesUtil) Timber(timber.log.Timber) AuthUtil(org.fossasia.openevent.core.auth.AuthUtil) List(java.util.List) CompositeDisposable(io.reactivex.disposables.CompositeDisposable) NetworkUtils(org.fossasia.openevent.common.network.NetworkUtils) Nullable(android.support.annotation.Nullable) AboutFragment(org.fossasia.openevent.core.about.AboutFragment) ShowNetworkDialogEvent(org.fossasia.openevent.common.events.ShowNetworkDialogEvent) Context(android.content.Context) AppBarLayout(android.support.design.widget.AppBarLayout) CoordinatorLayout(android.support.design.widget.CoordinatorLayout) DownloadEvent(org.fossasia.openevent.common.events.DownloadEvent) Utils(org.fossasia.openevent.common.utils.Utils) RealmList(io.realm.RealmList) ZoomableImageUtil(org.fossasia.openevent.common.ui.image.ZoomableImageUtil) Intent(android.content.Intent) FAQFragment(org.fossasia.openevent.core.faqs.FAQFragment) MenuItem(android.view.MenuItem) InputMethodManager(android.view.inputmethod.InputMethodManager) GravityCompat(android.support.v4.view.GravityCompat) RetrofitError(org.fossasia.openevent.common.events.RetrofitError) Event(org.fossasia.openevent.data.Event) MotionEvent(android.view.MotionEvent) NotificationsFragment(org.fossasia.openevent.core.notifications.NotificationsFragment) Speaker(org.fossasia.openevent.data.Speaker) Build(android.os.Build) WeakReference(java.lang.ref.WeakReference) ActionBar(android.support.v7.app.ActionBar) EventLoadedEvent(org.fossasia.openevent.common.events.EventLoadedEvent) DialogInterface(android.content.DialogInterface) MicrolocationDownloadEvent(org.fossasia.openevent.common.events.MicrolocationDownloadEvent) RealmResults(io.realm.RealmResults) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) DateConverter(org.fossasia.openevent.common.date.DateConverter) NoInternetEvent(org.fossasia.openevent.common.events.NoInternetEvent) FeedFragment(org.fossasia.openevent.core.feed.FeedFragment) SessionTypesDownloadEvent(org.fossasia.openevent.common.events.SessionTypesDownloadEvent) SpeakersListFragment(org.fossasia.openevent.core.speaker.SpeakersListFragment) InputStream(java.io.InputStream) Intent(android.content.Intent) Subscribe(com.squareup.otto.Subscribe)

Example 45 with Subscribe

use of com.squareup.otto.Subscribe in project open-event-android by fossasia.

the class MainActivity method startDownloadFromNetwork.

private void startDownloadFromNetwork() {
    fromServer = true;
    boolean preference = SharedPreferencesUtil.getBoolean(getResources().getString(R.string.download_mode_key), true);
    if (preference) {
        disposable.add(NetworkUtils.haveNetworkConnectionObservable(MainActivity.this).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(isConnected -> {
            if (isConnected) {
                StrategyRegistry.getInstance().getEventBusStrategy().postEventOnUIThread(new DataDownloadEvent());
            } else {
                final Snackbar snackbar = Snackbar.make(mainFrame, R.string.internet_preference_warning, Snackbar.LENGTH_INDEFINITE);
                snackbar.setAction(R.string.yes, view -> downloadFromAssets());
                snackbar.show();
            }
        }));
    } else {
        StrategyRegistry.getInstance().getEventBusStrategy().postEventOnUIThread(new DataDownloadEvent());
    }
}
Also used : Bundle(android.os.Bundle) Completable(io.reactivex.Completable) ImageView(android.widget.ImageView) DataDownloadEvent(org.fossasia.openevent.common.events.DataDownloadEvent) Track(org.fossasia.openevent.data.Track) Handler(android.os.Handler) ConnectivityManager(android.net.ConnectivityManager) SmoothActionBarDrawerToggle(org.fossasia.openevent.common.ui.SmoothActionBarDrawerToggle) Realm(io.realm.Realm) TracksDownloadEvent(org.fossasia.openevent.common.events.TracksDownloadEvent) SessionType(org.fossasia.openevent.data.SessionType) Fragment(android.support.v4.app.Fragment) LocationsFragment(org.fossasia.openevent.core.location.LocationsFragment) Snackbar(android.support.design.widget.Snackbar) DialogFactory(org.fossasia.openevent.common.ui.DialogFactory) Sponsor(org.fossasia.openevent.data.Sponsor) ConstantStrings(org.fossasia.openevent.common.ConstantStrings) FacebookApi(org.fossasia.openevent.core.feed.facebook.api.FacebookApi) ButterKnife(butterknife.ButterKnife) UserProfileActivity(org.fossasia.openevent.core.auth.profile.UserProfileActivity) Dialog(android.app.Dialog) SponsorsFragment(org.fossasia.openevent.core.sponsor.SponsorsFragment) BaseActivity(org.fossasia.openevent.common.ui.base.BaseActivity) CommonTaskLoop(org.fossasia.openevent.common.utils.CommonTaskLoop) SpeakerDownloadEvent(org.fossasia.openevent.common.events.SpeakerDownloadEvent) Menu(android.view.Menu) DownloadCompleteHandler(org.fossasia.openevent.common.api.DownloadCompleteHandler) Settings(android.provider.Settings) Observable(io.reactivex.Observable) DrawerLayout(android.support.v4.widget.DrawerLayout) StrategyRegistry(org.fossasia.openevent.config.StrategyRegistry) ComponentName(android.content.ComponentName) DataDownloadManager(org.fossasia.openevent.common.api.DataDownloadManager) TextUtils(android.text.TextUtils) IOException(java.io.IOException) CounterEvent(org.fossasia.openevent.common.events.CounterEvent) Subscribe(com.squareup.otto.Subscribe) FragmentManager(android.support.v4.app.FragmentManager) AlertDialog(android.support.v7.app.AlertDialog) Toolbar(android.support.v7.widget.Toolbar) Microlocation(org.fossasia.openevent.data.Microlocation) Session(org.fossasia.openevent.data.Session) JsonReadEvent(org.fossasia.openevent.common.events.JsonReadEvent) RealmDataRepository(org.fossasia.openevent.data.repository.RealmDataRepository) EditText(android.widget.EditText) NavigationView(android.support.design.widget.NavigationView) Rect(android.graphics.Rect) SocialLink(org.fossasia.openevent.data.extras.SocialLink) AndroidSchedulers(io.reactivex.android.schedulers.AndroidSchedulers) SessionDownloadEvent(org.fossasia.openevent.common.events.SessionDownloadEvent) BindView(butterknife.BindView) TracksFragment(org.fossasia.openevent.core.track.TracksFragment) SettingsActivity(org.fossasia.openevent.core.settings.SettingsActivity) EventDownloadEvent(org.fossasia.openevent.common.events.EventDownloadEvent) CustomTabsServiceConnection(android.support.customtabs.CustomTabsServiceConnection) APIClient(org.fossasia.openevent.common.api.APIClient) View(android.view.View) Schedulers(io.reactivex.schedulers.Schedulers) CustomTabsClient(android.support.customtabs.CustomTabsClient) R(org.fossasia.openevent.R) RetrofitResponseEvent(org.fossasia.openevent.common.events.RetrofitResponseEvent) NetworkInfo(android.net.NetworkInfo) SponsorDownloadEvent(org.fossasia.openevent.common.events.SponsorDownloadEvent) Urls(org.fossasia.openevent.common.api.Urls) DiscountCodeFragment(org.fossasia.openevent.core.discount.DiscountCodeFragment) ScheduleFragment(org.fossasia.openevent.core.schedule.ScheduleFragment) SharedPreferencesUtil(org.fossasia.openevent.common.utils.SharedPreferencesUtil) Timber(timber.log.Timber) AuthUtil(org.fossasia.openevent.core.auth.AuthUtil) List(java.util.List) CompositeDisposable(io.reactivex.disposables.CompositeDisposable) NetworkUtils(org.fossasia.openevent.common.network.NetworkUtils) Nullable(android.support.annotation.Nullable) AboutFragment(org.fossasia.openevent.core.about.AboutFragment) ShowNetworkDialogEvent(org.fossasia.openevent.common.events.ShowNetworkDialogEvent) Context(android.content.Context) AppBarLayout(android.support.design.widget.AppBarLayout) CoordinatorLayout(android.support.design.widget.CoordinatorLayout) DownloadEvent(org.fossasia.openevent.common.events.DownloadEvent) Utils(org.fossasia.openevent.common.utils.Utils) RealmList(io.realm.RealmList) ZoomableImageUtil(org.fossasia.openevent.common.ui.image.ZoomableImageUtil) Intent(android.content.Intent) FAQFragment(org.fossasia.openevent.core.faqs.FAQFragment) MenuItem(android.view.MenuItem) InputMethodManager(android.view.inputmethod.InputMethodManager) GravityCompat(android.support.v4.view.GravityCompat) RetrofitError(org.fossasia.openevent.common.events.RetrofitError) Event(org.fossasia.openevent.data.Event) MotionEvent(android.view.MotionEvent) NotificationsFragment(org.fossasia.openevent.core.notifications.NotificationsFragment) Speaker(org.fossasia.openevent.data.Speaker) Build(android.os.Build) WeakReference(java.lang.ref.WeakReference) ActionBar(android.support.v7.app.ActionBar) EventLoadedEvent(org.fossasia.openevent.common.events.EventLoadedEvent) DialogInterface(android.content.DialogInterface) MicrolocationDownloadEvent(org.fossasia.openevent.common.events.MicrolocationDownloadEvent) RealmResults(io.realm.RealmResults) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) DateConverter(org.fossasia.openevent.common.date.DateConverter) NoInternetEvent(org.fossasia.openevent.common.events.NoInternetEvent) FeedFragment(org.fossasia.openevent.core.feed.FeedFragment) SessionTypesDownloadEvent(org.fossasia.openevent.common.events.SessionTypesDownloadEvent) SpeakersListFragment(org.fossasia.openevent.core.speaker.SpeakersListFragment) InputStream(java.io.InputStream) DataDownloadEvent(org.fossasia.openevent.common.events.DataDownloadEvent) Snackbar(android.support.design.widget.Snackbar)

Aggregations

Subscribe (com.squareup.otto.Subscribe)85 Test (org.junit.Test)28 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)27 RawTodoList (com.armueller.fluxytodo.data.RawTodoList)13 ArrayList (java.util.ArrayList)12 TodoAction (com.armueller.fluxytodo.actions.TodoAction)9 VideoData (com.zype.android.webapi.model.video.VideoData)8 DataBundle (com.armueller.fluxytodo.actions.DataBundle)7 File (com.zype.android.webapi.model.player.File)7 Intent (android.content.Intent)6 FilteredTodoList (com.armueller.fluxytodo.data.FilteredTodoList)6 ConsumerFavoriteVideoData (com.zype.android.webapi.model.consumers.ConsumerFavoriteVideoData)6 Bundle (android.os.Bundle)5 Video (com.zype.android.Db.Entity.Video)5 Consumer (com.zype.android.webapi.model.consumers.Consumer)5 IOException (java.io.IOException)5 Context (android.content.Context)4 ConnectivityManager (android.net.ConnectivityManager)4 NetworkInfo (android.net.NetworkInfo)4 Dialog (android.app.Dialog)3