1
0
mirror of https://github.com/gilshahar7/InstantAssistant.git synced 2025-06-27 16:46:47 +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:
2018-09-07 10:50:28 +03:00
committed by GitHub
parent 3077da0cb2
commit 2c0c4f67c2
2 changed files with 16 additions and 2 deletions

View File

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

View File

@ -1,7 +1,7 @@
Package: com.gilshahar7.instantassistant
Name: InstantAssistant
Depends: mobilesubstrate
Version: 1.0
Version: 1.1
Architecture: iphoneos-arm
Description: Always launches the Google Assistant in "listening mode"
Maintainer: gilshahar7