Skip to content

Commit

Permalink
fix autorec create and delete message
Browse files Browse the repository at this point in the history
  • Loading branch information
zipleen committed Nov 8, 2014
1 parent a1fa88e commit 8bcc0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TvhClient/TVHProgramDetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)receiveDvrNotification:(NSNotification *) notification {
if ([[notification name] isEqualToString:TVHDvrActionDidSucceedNotification] && ([notification.object isEqualToString:@"recordEvent"] || [notification.object isEqualToString:@"api/idnode/delete"] )) {
[TVHShowNotice successNoticeInView:self.view title:NSLocalizedString(@"Succesfully added Recording", nil)];
}
if ([[notification name] isEqualToString:TVHDvrActionDidSucceedNotification] && [notification.object isEqualToString:@"recordSeries"]) {
if ([[notification name] isEqualToString:TVHDvrActionDidSucceedNotification] && ([notification.object isEqualToString:@"recordSeries"] || [notification.object isEqualToString:@"api/dvr/autorec/create"])) {
[TVHShowNotice successNoticeInView:self.view title:NSLocalizedString(@"Succesfully added Auto Recording", nil)];
}
}
Expand Down
5 changes: 4 additions & 1 deletion TvhClient/TVHRecordingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ - (void)receiveDvrNotification:(NSNotification *) notification {
else if([notification.object isEqualToString:@"cancelEntry"]) {
[TVHShowNotice successNoticeInView:self.view title:NSLocalizedString(@"Succesfully Canceled Recording", nil)];
}
else if([notification.object isEqualToString:@"api/idnode/delete"]) {
[TVHShowNotice successNoticeInView:self.view title:NSLocalizedString(@"Succesfully Deleted Auto Recording", nil)];
}
}
// this is WRONG, there should be a specific notification for the autorec deleting
if ( [[notification name] isEqualToString:TVHDidSuccessedTableMgrActionNotification] ) {
if ( [notification.object isEqualToString:@"delete"]) {
if ( [notification.object isEqualToString:@"delete"] ) {
[TVHShowNotice successNoticeInView:self.view title:NSLocalizedString(@"Succesfully Deleted Auto Recording", nil)];
}
}
Expand Down

0 comments on commit 8bcc0e2

Please sign in to comment.