Fixed warnings

pull/146/head
M66B 6 years ago
parent cf858524d2
commit 6204cf8b7d

@ -458,7 +458,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
// Get version info // Get version info
StringBuilder sb = new StringBuilder(); 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", sb.append(String.format("%s: %s %s/%s\r\n",
context.getString(R.string.app_name), context.getString(R.string.app_name),
@ -549,8 +549,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
private class UpdateInfo { private class UpdateInfo {
public String tag_name; // version String tag_name; // version
public String html_url; String html_url;
} }
private void checkUpdate() { private void checkUpdate() {
@ -900,7 +900,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
new SimpleTask<File>() { new SimpleTask<File>() {
@Override @Override
protected File onLoad(Context context, Bundle args) throws Throwable { protected File onLoad(Context context, Bundle args) {
long id = args.getLong("id"); long id = args.getLong("id");
DB db = DB.getInstance(context); DB db = DB.getInstance(context);

@ -978,7 +978,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
new SimpleTask<Void>() { new SimpleTask<Void>() {
@Override @Override
protected Void onLoad(Context context, Bundle args) throws Throwable { protected Void onLoad(Context context, Bundle args) {
long id = args.getLong("id"); long id = args.getLong("id");
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
@ -1015,7 +1015,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
new SimpleTask<Void>() { new SimpleTask<Void>() {
@Override @Override
protected Void onLoad(Context context, Bundle args) throws Throwable { protected Void onLoad(Context context, Bundle args) {
long id = args.getLong("id"); long id = args.getLong("id");
boolean flagged = args.getBoolean("flagged"); boolean flagged = args.getBoolean("flagged");
DB db = DB.getInstance(context); DB db = DB.getInstance(context);

Loading…
Cancel
Save