Commit c77d02d2 authored by Felix Paul Kühne's avatar Felix Paul Kühne

deletion capable view: force hide hint view on success

(cherry picked from commit cce12fa2)
parent f8690252
...@@ -14,8 +14,10 @@ ...@@ -14,8 +14,10 @@
@interface VLCDeletionCapableViewController : UIViewController @interface VLCDeletionCapableViewController : UIViewController
@property (nonatomic, weak) IBOutlet UIView *deleteHintView; @property (nonatomic, weak, nullable) IBOutlet UIView *deleteHintView;
@property (nonatomic, readonly, nullable) NSIndexPath *indexPathToDelete; @property (nonatomic, readonly, nullable) NSIndexPath *indexPathToDelete;
@property (nonatomic, readonly, nullable) NSString *itemToDelete; @property (nonatomic, readonly, nullable) NSString *itemToDelete;
- (void)deleteFileAtIndex:(NSIndexPath * _Nullable)indexPathToDelete;
@end @end
...@@ -70,7 +70,9 @@ ...@@ -70,7 +70,9 @@
- (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete - (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete
{ {
// NO-OP, implemented by subclass [self.hintTimer invalidate];
self.hintTimer = nil;
[self animateDeletHintToVisibility:NO];
} }
- (void)animateDeletHintToVisibility:(BOOL)visible - (void)animateDeletHintToVisibility:(BOOL)visible
......
...@@ -183,6 +183,7 @@ ...@@ -183,6 +183,7 @@
- (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete - (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete
{ {
[super deleteFileAtIndex:indexPathToDelete];
if (!indexPathToDelete) { if (!indexPathToDelete) {
return; return;
} }
......
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
- (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete - (void)deleteFileAtIndex:(NSIndexPath *)indexPathToDelete
{ {
[super deleteFileAtIndex:indexPathToDelete];
if (!indexPathToDelete) { if (!indexPathToDelete) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment