Parcourir la source

VLCCustomDialogProvider: Fix typo in updateProgressWithReference

Soomin Lee il y a 6 ans
Parent
commit
b6f0a24fb7
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      Headers/Public/VLCDialogProvider.h
  2. 2 2
      Sources/VLCCustomDialogProvider.m

+ 1 - 1
Headers/Public/VLCDialogProvider.h

@@ -98,7 +98,7 @@ typedef NS_ENUM(NSUInteger, VLCDialogQuestionType) {
  */
 - (void)updateProgressWithReference:(NSValue * _Nonnull)reference
                             message:(NSString * _Nullable)message
-                            postion:(float)position;
+                            position:(float)position;
 
 /** VLC decided to destroy a dialog
  * \param reference to the dialog to destroy

+ 2 - 2
Sources/VLCCustomDialogProvider.m

@@ -264,10 +264,10 @@ static void updateProgressCallback(void *p_data,
         return;
     }
 
-    if ([self.customRenderer respondsToSelector:@selector(updateProgressWithReference:message:postion:)]) {
+    if ([self.customRenderer respondsToSelector:@selector(updateProgressWithReference:message:position:)]) {
         [self.customRenderer updateProgressWithReference:dialogData[0]
                                                  message:dialogData[1]
-                                                 postion:[dialogData[2] floatValue]];
+                                                 position:[dialogData[2] floatValue]];
     }
 }