From 4b9c146248548cecf96a7335f9987c07ce024494 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Fri, 2 Jan 2015 16:41:05 -0500 Subject: [PATCH] Don't crash if nothing is installed --- .../org/bspeice/minimalbible/activity/viewer/BibleViewer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/viewer/BibleViewer.java b/app/src/main/java/org/bspeice/minimalbible/activity/viewer/BibleViewer.java index c55b585..9df6bd2 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/viewer/BibleViewer.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/viewer/BibleViewer.java @@ -91,6 +91,8 @@ public class BibleViewer extends BaseActivity implements Injector { // No books installed, start the downloader. Intent i = new Intent(this, DownloadActivity.class); startActivityForResult(i, 0); + finish(); + return; } setContentView(R.layout.activity_bible_viewer);