issue_80: Rageshake handling

Rageshake doesn't work on the image upload screen #80

- Define the navigation bar tint color.
- Disable navigation bar tint color change according to HS status.
- Set RageShake manager.
This commit is contained in:
giomfo
2016-02-10 22:12:17 +01:00
parent e16dae4caa
commit d22417ee94
19 changed files with 99 additions and 9 deletions
@@ -24,6 +24,10 @@
#import "MediaAlbumTableCell.h"
#import "VectorDesignValues.h"
#import "RageShakeManager.h"
static void *CapturingStillImageContext = &CapturingStillImageContext;
static void *RecordingContext = &RecordingContext;
@@ -90,6 +94,11 @@ static void *RecordingContext = &RecordingContext;
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// Setup `MXKViewControllerHandling` properties
self.defaultBarTintColor = kVectorNavBarTintColor;
self.enableBarTintColorStatusChange = NO;
self.rageShakeManager = [RageShakeManager sharedManager];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(onButtonPressed:)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedStringFromTable(@"camera", @"Vector", nil) style:UIBarButtonItemStylePlain target:self action:@selector(onButtonPressed:)];