Analytics: Move code from AppDelegate to a dedicated class: Analytics

This commit is contained in:
manuroe
2018-06-27 09:55:06 +02:00
parent 610e8fe691
commit 054b2afded
38 changed files with 232 additions and 112 deletions
@@ -107,7 +107,7 @@
[super viewWillAppear:animated];
// Screen tracking
[[AppDelegate theDelegate] trackScreen:@"FilesGlobalSearch"];
[[Analytics sharedInstance] trackScreen:@"FilesGlobalSearch"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionDidLeaveRoomNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionNewRoomNotification object:nil];