Added compatibility with the lastest version of "Google Assistant"
Moved this package to the Packix repo.
Este commit está contenido en:
2018-09-07 10:50:28 +03:00
cometido por GitHub
padre 3077da0cb2
commit 2c0c4f67c2
Se han modificado 2 ficheros con 16 adiciones y 2 borrados

Ver fichero

@ -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

Ver fichero

@ -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