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:
parent
a5a2e20449
commit
42768bcc2b
3 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue