Respond to CR.
This commit is contained in:
parent
66fae5bd54
commit
4c31d99498
|
@ -4,6 +4,10 @@
|
|||
|
||||
#import <SignalServiceKit/AppContext.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MainAppContext : NSObject <AppContext>
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#import "MainAppContext.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@implementation MainAppContext
|
||||
|
||||
- (BOOL)isMainApp
|
||||
|
@ -23,3 +25,5 @@
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef void (^BackgroundTaskExpirationHandler)(void);
|
||||
|
||||
@protocol AppContext <NSObject>
|
||||
|
@ -16,3 +18,5 @@ typedef void (^BackgroundTaskExpirationHandler)(void);
|
|||
|
||||
id<AppContext> CurrentAppContext();
|
||||
void SetCurrentAppContext(id<AppContext> appContext);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#import "AppContext.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
static id<AppContext> currentAppContext = nil;
|
||||
|
||||
id<AppContext> CurrentAppContext()
|
||||
|
@ -19,3 +21,5 @@ void SetCurrentAppContext(id<AppContext> appContext)
|
|||
|
||||
currentAppContext = appContext;
|
||||
}
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
Loading…
Reference in New Issue