aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-02 21:28:28 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-02 21:28:28 -0700
commit8121ea7400b906900654b097d96e521b8c9f8a82 (patch)
tree27ad8722a32a6c736cc85ae8e86b3d897c425549
parent5c52f0ffd528838a7998a5ad84a4ca47f46502e3 (diff)
downloaddsub-8121ea7400b906900654b097d96e521b8c9f8a82.tar.gz
dsub-8121ea7400b906900654b097d96e521b8c9f8a82.tar.bz2
dsub-8121ea7400b906900654b097d96e521b8c9f8a82.zip
Don't show change log when null
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index 0d421168..e2ae0abf 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -20,6 +20,7 @@ package github.daneren2005.dsub.activity;
import android.accounts.Account;
import android.accounts.AccountManager;
+import android.app.Dialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
@@ -214,7 +215,10 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
ChangeLog changeLog = new ChangeLog(this, Util.getPreferences(this));
if(changeLog.isFirstRun()) {
- changeLog.getLogDialog().show();
+ Dialog log = changeLog.getLogDialog();
+ if(log != null) {
+ log.show();
+ }
}
}