aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005/dsub/view/ChangeLog.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005/dsub/view/ChangeLog.java')
-rw-r--r--src/github/daneren2005/dsub/view/ChangeLog.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/view/ChangeLog.java b/src/github/daneren2005/dsub/view/ChangeLog.java
index b847733e..bbc4e4dd 100644
--- a/src/github/daneren2005/dsub/view/ChangeLog.java
+++ b/src/github/daneren2005/dsub/view/ChangeLog.java
@@ -281,7 +281,13 @@ public class ChangeLog {
protected AlertDialog getDialog(boolean full) {
WebView wv = new WebView(mContext);
//wv.setBackgroundColor(0); // transparent
- wv.loadDataWithBaseURL(null, getLog(full), "text/html", "UTF-8", null);
+ String log = getLog(full);
+ // No changes to show
+ if(log == null) {
+ return null;
+ }
+
+ wv.loadDataWithBaseURL(null, log, "text/html", "UTF-8", null);
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setTitle(
@@ -401,6 +407,10 @@ public class ChangeLog {
// ... and sort them (newest version first).
Collections.sort(versions, Collections.reverseOrder());
+ if(versions.size() == 0) {
+ return null;
+ }
+
for (Integer version : versions) {
int key = version.intValue();