|
|
|
|
|
|
|
|
@property (nonatomic, assign) OPASearchViewController *searchViewController; |
|
|
@property (nonatomic, assign) OPASearchViewController *searchViewController; |
|
|
@end |
|
|
@end |
|
|
|
|
|
|
|
|
|
|
|
@interface OPAZeroStateViewController |
|
|
|
|
|
-(void)openMicForVoiceQuery; |
|
|
|
|
|
@end |
|
|
|
|
|
|
|
|
%hook OPAViewController |
|
|
%hook OPAViewController |
|
|
-(void)viewDidLoad{ |
|
|
-(void)viewDidLoad{ |
|
|
%orig; |
|
|
%orig; |
|
|
[[NSNotificationCenter defaultCenter] addObserver:self.searchViewController selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil]; |
|
|
[[NSNotificationCenter defaultCenter] addObserver:self.searchViewController selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil]; |
|
|
[self.searchViewController didTapOnGlifView]; |
|
|
[self.searchViewController didTapOnGlifView]; |
|
|
} |
|
|
} |
|
|
%end |
|
|
|
|
|
|
|
|
%end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%hook OPAZeroStateViewController |
|
|
|
|
|
-(void)viewDidLoad{ |
|
|
|
|
|
%orig; |
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openMicForVoiceQuery) name:UIApplicationDidBecomeActiveNotification object:nil]; |
|
|
|
|
|
[self openMicForVoiceQuery]; |
|
|
|
|
|
} |
|
|
|
|
|
%end |