|
|
|
@ -10,6 +10,7 @@
|
|
|
|
|
#import "NotificationSettingsViewController.h"
|
|
|
|
|
#import "OWSContactsManager.h"
|
|
|
|
|
#import "OWSLinkedDevicesTableViewController.h"
|
|
|
|
|
#import "OWSNavigationController.h"
|
|
|
|
|
#import "PrivacySettingsTableViewController.h"
|
|
|
|
|
#import "ProfileViewController.h"
|
|
|
|
|
#import "PropertyListPreferences.h"
|
|
|
|
@ -29,6 +30,18 @@
|
|
|
|
|
|
|
|
|
|
@implementation AppSettingsViewController
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* We always present the settings controller modally, from within an OWSNavigationController
|
|
|
|
|
*/
|
|
|
|
|
+ (OWSNavigationController *)inModalNavigationController
|
|
|
|
|
{
|
|
|
|
|
AppSettingsViewController *viewController = [AppSettingsViewController new];
|
|
|
|
|
OWSNavigationController *navController =
|
|
|
|
|
[[OWSNavigationController alloc] initWithRootViewController:viewController];
|
|
|
|
|
|
|
|
|
|
return navController;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (instancetype)init
|
|
|
|
|
{
|
|
|
|
|
self = [super init];
|
|
|
|
@ -64,6 +77,8 @@
|
|
|
|
|
[super viewDidLoad];
|
|
|
|
|
[self.navigationItem setHidesBackButton:YES];
|
|
|
|
|
|
|
|
|
|
OWSAssert([self.navigationController isKindOfClass:[OWSNavigationController class]]);
|
|
|
|
|
|
|
|
|
|
[self.navigationController.navigationBar setTranslucent:NO];
|
|
|
|
|
self.navigationItem.leftBarButtonItem =
|
|
|
|
|
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemStop
|
|
|
|
|