Instrument missing screen metrics (#5764)

* Instrument missing screen metrics

- Done
This commit is contained in:
Gil Eluard
2022-03-08 10:13:46 +01:00
committed by GitHub
parent 35a330c74e
commit acf7d0de13
56 changed files with 269 additions and 246 deletions
@@ -33,7 +33,7 @@
MXKSearchDataSource *filesSearchDataSource;
}
@property (nonatomic) AnalyticsScreenTimer *screenTimer;
@property (nonatomic) AnalyticsScreenTracker *screenTracker;
@end
@@ -52,7 +52,7 @@
// The navigation bar tint color and the rageShake Manager are handled by super (see SegmentedViewController).
self.screenTimer = [[AnalyticsScreenTimer alloc] initWithScreen:AnalyticsScreenRoomSearch];
self.screenTracker = [[AnalyticsScreenTracker alloc] initWithScreen:AnalyticsScreenRoomSearch];
}
- (void)viewDidLoad
@@ -97,6 +97,8 @@
{
[super viewWillAppear:animated];
[self.screenTracker trackScreen];
// Let's child display the loading not this view controller
if (self.activityIndicator)
{
@@ -118,8 +120,6 @@
// Refresh the search results.
// Note: We wait for 'viewDidAppear' call to consider the actual view size during this update.
[self updateSearch];
[self.screenTimer start];
}
- (void)viewWillDisappear:(BOOL)animated
@@ -134,12 +134,6 @@
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[self.screenTimer stop];
}
- (UIStatusBarStyle)preferredStatusBarStyle
{
return ThemeService.shared.theme.statusBarStyle;