Skip to content

Commit

Permalink
add back device message
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Dec 13, 2024
1 parent 399b783 commit 693efdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ protected void onCreate(Bundle icicle, boolean ready) {
if (!dcContext.wasDeviceMsgEverAdded(deviceMsgLabel)) {
DcMsg msg = null;
if (!getIntent().getBooleanExtra(FROM_WELCOME, false)) {
// msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);
msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);

// InputStream inputStream = getResources().getAssets().open("device-messages/green-checkmark.jpg");
// String outputFile = DcHelper.getBlobdirFile(dcContext, "green-checkmark", ".jpg");
// Util.copy(inputStream, new FileOutputStream(outputFile));
// msg.setFile(outputFile, "image/jpeg");

// msg.setText(getString(R.string.update_1_50_android, "https://get.delta.chat/#changelogs"));
msg.setText(getString(R.string.update_1_50_android, "https://get.delta.chat/#changelogs"));
}
dcContext.addDeviceMsg(deviceMsgLabel, msg);

Expand Down

0 comments on commit 693efdb

Please sign in to comment.