From 6204cf8b7d10ba1157fa9344967c834832f56da4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 28 Oct 2018 13:26:10 +0000 Subject: [PATCH] Fixed warnings --- app/src/main/java/eu/faircode/email/ActivityView.java | 8 ++++---- app/src/main/java/eu/faircode/email/AdapterMessage.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 5852a281..e8f92777 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -458,7 +458,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB // Get version info StringBuilder sb = new StringBuilder(); - sb.append(context.getString(R.string.title_crash_info_remark) + "\n\n\n\n"); + sb.append(context.getString(R.string.title_crash_info_remark)).append("\n\n\n\n"); sb.append(String.format("%s: %s %s/%s\r\n", context.getString(R.string.app_name), @@ -549,8 +549,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB } private class UpdateInfo { - public String tag_name; // version - public String html_url; + String tag_name; // version + String html_url; } private void checkUpdate() { @@ -900,7 +900,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB new SimpleTask() { @Override - protected File onLoad(Context context, Bundle args) throws Throwable { + protected File onLoad(Context context, Bundle args) { long id = args.getLong("id"); DB db = DB.getInstance(context); diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index d2d6b888..596efd36 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -978,7 +978,7 @@ public class AdapterMessage extends PagedListAdapter() { @Override - protected Void onLoad(Context context, Bundle args) throws Throwable { + protected Void onLoad(Context context, Bundle args) { long id = args.getLong("id"); DB db = DB.getInstance(context); @@ -1015,7 +1015,7 @@ public class AdapterMessage extends PagedListAdapter() { @Override - protected Void onLoad(Context context, Bundle args) throws Throwable { + protected Void onLoad(Context context, Bundle args) { long id = args.getLong("id"); boolean flagged = args.getBoolean("flagged"); DB db = DB.getInstance(context);