Merge branch 'develop' of https://github.com/vector-im/riot-ios into share-extension

This commit is contained in:
Aram Sargsyan
2017-07-25 02:14:19 +04:00
44 changed files with 1558 additions and 257 deletions
+22 -1
View File
@@ -44,6 +44,9 @@
// the selected marker view
UIView* selectedMarkerView;
NSLayoutConstraint *leftMarkerViewConstraint;
// Observe kRiotDesignValuesDidChangeThemeNotification to handle user interface theme change.
id kRiotDesignValuesDidChangeThemeNotificationObserver;
}
@end
@@ -97,6 +100,12 @@
selectedMarkerView = nil;
}
if (kRiotDesignValuesDidChangeThemeNotificationObserver)
{
[[NSNotificationCenter defaultCenter] removeObserver:kRiotDesignValuesDidChangeThemeNotificationObserver];
kRiotDesignValuesDidChangeThemeNotificationObserver = nil;
}
[super destroy];
}
@@ -121,7 +130,6 @@
[super finalizeInit];
// Setup `MXKViewControllerHandling` properties
self.defaultBarTintColor = kRiotNavBarTintColor;
self.enableBarTintColorStatusChange = NO;
//self.rageShakeManager = [RageShakeManager sharedManager];
}
@@ -153,6 +161,19 @@
[NSLayoutConstraint activateConstraints:@[self.selectionContainerTopConstraint]];
[self createSegmentedViews];
// Observe user interface theme change.
kRiotDesignValuesDidChangeThemeNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kRiotDesignValuesDidChangeThemeNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
[self userInterfaceThemeDidChange];
}];
[self userInterfaceThemeDidChange];
}
- (void)userInterfaceThemeDidChange
{
self.defaultBarTintColor = kRiotSecondaryBgColor;
}
- (void)viewWillAppear:(BOOL)animated