Small improvements

pull/147/head
M66B 6 years ago
parent 3bf3606f18
commit f5f70ae073

@ -749,7 +749,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private String body = null;
@Override
protected Spanned onLoad(final Context context, final Bundle args) throws Throwable {
protected Spanned onLoad(final Context context, final Bundle args) {
TupleMessageEx message = (TupleMessageEx) args.getSerializable("message");
if (body == null)
try {

@ -92,11 +92,7 @@ public class EntityAttachment {
out.write(body == null ? "" : body);
} finally {
if (out != null)
try {
out.close();
} catch (IOException e) {
Log.e(Helper.TAG, e + "\n" + Log.getStackTraceString(e));
}
out.close();
}
}

@ -165,11 +165,7 @@ public class EntityMessage implements Serializable {
out.write(body == null ? "" : body);
} finally {
if (out != null)
try {
out.close();
} catch (IOException e) {
Log.e(Helper.TAG, e + "\n" + Log.getStackTraceString(e));
}
out.close();
}
}

Loading…
Cancel
Save