Skip to content

Commit 88ec8d0

Browse files
Merge branch 'CCExtractor:master' into anto-dev
2 parents beae38b + f512b90 commit 88ec8d0

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

lib/Api/event_handler_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:provider/provider.dart';
1212
import '../Constants/notification_keys.dart';
1313
import '../Provider/filter_provider.dart';
1414

15-
String torrentLength = '';
15+
String torrentLength = '0';
1616

1717
class EventHandlerApi {
1818
//Sets the transfer rate if the event returned is TRANSFER_SUMMARY_FULL_UPDATE

lib/Components/RSSFeedHomePage.dart

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:flood_mobile/Api/update_feed_api.dart';
55
import 'package:flood_mobile/Model/single_feed_and_response_model.dart';
66
import 'package:flood_mobile/Provider/home_provider.dart';
77
import 'package:flutter/material.dart';
8+
import 'package:flood_mobile/Components/flood_snackbar.dart';
89
import 'package:provider/provider.dart';
910
import '../Api/delete_feeds_and_rules.dart';
1011
import '../Api/feed_api.dart';
@@ -610,6 +611,16 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
610611
context: context,
611612
);
612613
}
614+
final addFeedSnackbar =
615+
addFloodSnackBar(
616+
SnackbarType
617+
.information,
618+
'New Feed added successfully',
619+
'Dismiss');
620+
621+
ScaffoldMessenger.of(context)
622+
.showSnackBar(
623+
addFeedSnackbar);
613624
FeedsApi.listAllFeedsAndRules(
614625
context: context);
615626
if (isUpdateFeedSelected) {
@@ -1984,6 +1995,16 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
19841995
count: 0,
19851996
context: context,
19861997
);
1998+
final addRuleSnackbar =
1999+
addFloodSnackBar(
2000+
SnackbarType
2001+
.information,
2002+
'New Rule added successfully',
2003+
'Dismiss');
2004+
2005+
ScaffoldMessenger.of(context)
2006+
.showSnackBar(
2007+
addRuleSnackbar);
19872008
FeedsApi.listAllFeedsAndRules(
19882009
context: context);
19892010
});

lib/Model/notification_model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class NotificationContentModel {
5555
return NotificationContentModel(
5656
identification: json['_id'],
5757
id: json['id'],
58-
name: json['data']['title'],
58+
name: json['data']['name'],
5959
read: json['read'],
6060
ts: json['ts'],
6161
status: status,

0 commit comments

Comments
 (0)