Hourglass

This commit is contained in:
Sewmina
2022-03-23 03:41:05 +05:30
parent acfb03d7a3
commit aa72b5dc92
7 changed files with 432 additions and 131 deletions

View File

@@ -41,6 +41,8 @@ class NotificationManager{
if (ongoingActData != null) {
List<String> data = ongoingActData.split("<td>");
const AndroidNotificationDetails androidNotificationDetails = AndroidNotificationDetails('0', 'Ongoing',
enableVibration: false,
playSound: false,
ongoing: true,
autoCancel: false);
const NotificationDetails notificationDetails = NotificationDetails(android: androidNotificationDetails);
@@ -60,10 +62,10 @@ class NotificationManager{
}
}catch(e){
print("error ongoing activity");
await fltrNotification.cancel(1);
fltrNotification.cancel(1);
}
}else{
await fltrNotification.cancel(1);
fltrNotification.cancel(1);
}
if(adaptive_notification && adaptive_notification_availabel){