mirror of
				https://github.com/gilshahar7/InstantAssistant.git
				synced 2025-11-04 00:26:18 +00:00 
			
		
		
		
	Version 1.1
Added compatibility with the lastest version of "Google Assistant" Moved this package to the Packix repo.
This commit is contained in:
		
							
								
								
									
										16
									
								
								Tweak.xm
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								Tweak.xm
									
									
									
									
									
								
							@ -6,10 +6,24 @@
 | 
			
		||||
@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
 | 
			
		||||
%end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
%hook OPAZeroStateViewController
 | 
			
		||||
-(void)viewDidLoad{
 | 
			
		||||
	%orig;
 | 
			
		||||
	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openMicForVoiceQuery) name:UIApplicationDidBecomeActiveNotification object:nil];
 | 
			
		||||
	[self openMicForVoiceQuery];
 | 
			
		||||
}
 | 
			
		||||
%end
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user