From 2c0c4f67c278f59f53a31287f5b2ffabcf9be8e6 Mon Sep 17 00:00:00 2001 From: Gil Shahar Date: Fri, 7 Sep 2018 10:50:28 +0300 Subject: [PATCH] Version 1.1 Added compatibility with the lastest version of "Google Assistant" Moved this package to the Packix repo. --- Tweak.xm | 16 +++++++++++++++- control | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Tweak.xm b/Tweak.xm index eb63ea4..ff2829e 100644 --- a/Tweak.xm +++ b/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 \ No newline at end of file +%end + + + +%hook OPAZeroStateViewController +-(void)viewDidLoad{ + %orig; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openMicForVoiceQuery) name:UIApplicationDidBecomeActiveNotification object:nil]; + [self openMicForVoiceQuery]; +} +%end diff --git a/control b/control index a55c8ef..9e4fc31 100644 --- a/control +++ b/control @@ -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