From ee758e84702c50d33496e6d895dcb68ca19bc29d Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Thu, 10 Nov 2022 10:26:36 -0500 Subject: [PATCH] Fixed bug from previous commit --- lib/main.dart | 2 +- lib/providers/notifications_provider.dart | 8 +++++--- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 6b4574d..b141728 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -15,7 +15,7 @@ import 'package:dynamic_color/dynamic_color.dart'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:android_alarm_manager_plus/android_alarm_manager_plus.dart'; -const String currentVersion = '0.6.9'; +const String currentVersion = '0.6.10'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/providers/notifications_provider.dart b/lib/providers/notifications_provider.dart index 7705cf5..07f85ca 100644 --- a/lib/providers/notifications_provider.dart +++ b/lib/providers/notifications_provider.dart @@ -27,9 +27,11 @@ class UpdateNotification extends ObtainiumNotification { 'Updates Available', 'Notifies the user that updates are available for one or more Apps tracked by Obtainium', Importance.max) { - message = updates.length == 1 - ? '${updates[0].name} has an update.' - : '${(updates.length == 2 ? '${updates[0].name} and ${updates[1].name}' : '${updates[0].name} and ${updates.length - 1} more apps')} have updates.'; + message = updates.isEmpty + ? "No new updates." + : updates.length == 1 + ? '${updates[0].name} has an update.' + : '${(updates.length == 2 ? '${updates[0].name} and ${updates[1].name}' : '${updates[0].name} and ${updates.length - 1} more apps')} have updates.'; } } diff --git a/pubspec.yaml b/pubspec.yaml index 9a6f2fd..9a215ec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.6.9+53 # When changing this, update the tag in main() accordingly +version: 0.6.10+54 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'