Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in splash when offline #367

Merged
merged 2 commits into from Feb 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,11 +1,8 @@
package io.github.droidkaigi.confsched2017.view.activity;

import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import java.util.Locale;
Expand All @@ -22,6 +19,7 @@
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import timber.log.Timber;

public class SplashActivity extends BaseActivity {

Expand Down Expand Up @@ -73,7 +71,8 @@ private void loadSessionsForCache() {
if (isFinishing()) return;
startActivity(MainActivity.createIntent(SplashActivity.this));
})
.subscribe();
.subscribe(observable -> Timber.tag(TAG).d("Succeeded in loading sessions."),
throwable -> Timber.tag(TAG).e(throwable, "Failed to load sessions."));
compositeDisposable.add(disposable);
}

Expand Down