Save the activity on the application instance to ensure we hold a reference. Activities that enable search need to persist.

This commit is contained in:
Charlie Hess 2016-05-03 14:57:16 -07:00
parent a5a2e20449
commit 42768bcc2b
3 changed files with 16 additions and 1 deletions

View file

@ -8,6 +8,7 @@
CrAppControlProtocol> {
@private
BOOL handlingSendEvent_;
NSUserActivity* currentActivity_;
}
+ (AtomApplication*)sharedApplication;
@ -18,4 +19,8 @@
// CrAppControlProtocol:
- (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
- (NSUserActivity*)getCurrentActivity;
- (void)setCurrentActivity:(NSUserActivity*)userActivity;
@end