Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not display subtitle if it's the same with title on payment details dialog #901

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
android:label="Breez Cloud"
android:name="${applicationName}"
android:roundIcon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:allowBackup="false">

<service
android:name=".BreezFcmService"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class PaymentDetailsDialogDescription extends StatelessWidget {
Widget build(BuildContext context) {
final themeData = Theme.of(context);

final description = paymentMinutiae.description;
if (description.isEmpty) {
final title = paymentMinutiae.title.replaceAll("\n", " ");
final description = paymentMinutiae.description.trim();
if (description.isEmpty || title == description) {
return Container();
}

Expand Down
Loading