Skip to content

Commit

Permalink
fix: properly expose precompile flags for Ti.Media.queryMusicLibrary …
Browse files Browse the repository at this point in the history
…API (#13398)

* fix: properly expose precompile flags for Ti.Media.queryMusicLibrary API

* fix: fix missing check
  • Loading branch information
hansemannn committed Apr 17, 2022
1 parent 0205aa7 commit 74a6e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/MediaModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
#ifdef USE_TI_MEDIA

#if defined(USE_TI_MEDIAGETAPPMUSICPLAYER) || defined(USE_TI_MEDIAOPENMUSICLIBRARY) || defined(USE_TI_MEDIAAPPMUSICPLAYER) || defined(USE_TI_MEDIAGETSYSTEMMUSICPLAYER) || defined(USE_TI_MEDIASYSTEMMUSICPLAYER) || defined(USE_TI_MEDIAHASMUSICLIBRARYPERMISSIONS)
#if defined(USE_TI_MEDIAGETAPPMUSICPLAYER) || defined(USE_TI_MEDIAOPENMUSICLIBRARY) || defined(USE_TI_MEDIAAPPMUSICPLAYER) || defined(USE_TI_MEDIAGETSYSTEMMUSICPLAYER) || defined(USE_TI_MEDIASYSTEMMUSICPLAYER) || defined(USE_TI_MEDIAHASMUSICLIBRARYPERMISSIONS) || defined(USE_TI_MEDIAQUERYMUSICLIBRARY)
#import <MediaPlayer/MediaPlayer.h>
#endif
#if IS_SDK_IOS_14 && defined(USE_TI_MEDIAOPENPHOTOGALLERY)
Expand Down Expand Up @@ -50,7 +50,7 @@
BOOL saveToRoll;

// Music picker
#ifdef USE_TI_MEDIAOPENMUSICLIBRARY
#if defined(USE_TI_MEDIAOPENMUSICLIBRARY) || defined(USE_TI_MEDIAQUERYMUSICLIBRARY)
MPMediaPickerController *musicPicker;
#endif

Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/MediaModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ - (void)popoverPresentationController:(UIPopoverPresentationController *)popover

- (void)popoverPresentationControllerDidDismissPopover:(UIPopoverPresentationController *)popoverPresentationController
{
#ifdef USE_TI_MEDIAOPENMUSICLIBRARY
#if defined(USE_TI_MEDIAOPENMUSICLIBRARY) || defined(USE_TI_MEDIAQUERYMUSICLIBRARY)
if ([popoverPresentationController presentedViewController] == musicPicker) {
RELEASE_TO_NIL(musicPicker);
}
Expand Down

0 comments on commit 74a6e3c

Please sign in to comment.