Browse Source

Version 1.2

master
Gil Shahar 6 years ago
parent
commit
0f36b6e585
No account linked to committer's email address
1 changed files with 7 additions and 24 deletions
  1. +7
    -24
      Tweak.xm

+ 7
- 24
Tweak.xm View File

@interface OPASearchViewController
@interface OPAVoicePlateController
-(void)didTapOnGlifView; -(void)didTapOnGlifView;
@end @end


@interface OPAViewController
@property (nonatomic, assign) OPASearchViewController *searchViewController;
@end

@interface OPAZeroStateViewController
-(void)openMicForVoiceQuery;
@end

%hook OPAViewController
-(void)viewDidLoad{
%orig;
[[NSNotificationCenter defaultCenter] addObserver:self.searchViewController selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil];
[self.searchViewController didTapOnGlifView];
}
%end



%hook OPAZeroStateViewController
-(void)viewDidLoad{
%orig;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openMicForVoiceQuery) name:UIApplicationDidBecomeActiveNotification object:nil];
[self openMicForVoiceQuery];
%hook OPAVoicePlateController
-(OPAVoicePlateController *)init{
OPAVoicePlateController *origself = %orig;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil];
[self didTapOnGlifView];
return origself;
} }
%end %end

Loading…
Cancel
Save