M module-apps/apps-common/windows/Dialog.cpp => module-apps/apps-common/windows/Dialog.cpp +6 -1
@@ 30,7 30,12 @@ Dialog::Dialog(app::ApplicationCommon *app, const std::string &name) : gui::AppW
void Dialog::onBeforeShow(ShowMode mode, SwitchData *data)
{
if (auto metadata = dynamic_cast<DialogMetadataMessage *>(data); metadata != nullptr) {
- setTitle(metadata->get().title);
+ auto title = metadata->get().title;
+ if (size_t crLfPos = title.find_first_of("\r\n"); crLfPos != title.npos) {
+ auto lengthToReplace = title.size() - crLfPos;
+ title.replace(crLfPos, lengthToReplace, "...");
+ }
+ setTitle(title);
icon->text->setRichText(metadata->get().text);
icon->image->set(metadata->get().icon);
icon->resizeItems();
M pure_changelog.md => pure_changelog.md +1 -0
@@ 66,6 66,7 @@
* Fixed displaying wrong information on screen after rejecting call with SMS template
* Fixed lack of contact search list update when returning to list after contact edition
* Fixed wrong USSD flow when user closed USSD popup with back button
+* Fixed broken abbreviating of multiline text messages content in deletion window
## [1.6.0 2023-02-27]