Skip to content

Commit

Permalink
Merge pull request #367 from ogapants/fix-splash-crash
Browse files Browse the repository at this point in the history
Fix crash in splash when offline
  • Loading branch information
konifar committed Feb 20, 2017
2 parents 0748ee1 + 49a1547 commit 7b32107
Showing 1 changed file with 3 additions and 4 deletions.
@@ -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

0 comments on commit 7b32107

Please sign in to comment.