Browse Source

Version 1.1

Added compatibility with the lastest version of "Google Assistant"
Moved this package to the Packix repo.
master
Gil Shahar 6 years ago
parent
commit
2c0c4f67c2
No account linked to committer's email address
2 changed files with 16 additions and 2 deletions
  1. +15
    -1
      Tweak.xm
  2. +1
    -1
      control

+ 15
- 1
Tweak.xm View File

@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

+ 1
- 1
control View File

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

Loading…
Cancel
Save