|
|
@ -446,6 +446,10 @@ typedef enum : NSUInteger {
|
|
|
|
selector:@selector(startExpirationTimerAnimations)
|
|
|
|
selector:@selector(startExpirationTimerAnimations)
|
|
|
|
name:UIApplicationWillEnterForegroundNotification
|
|
|
|
name:UIApplicationWillEnterForegroundNotification
|
|
|
|
object:nil];
|
|
|
|
object:nil];
|
|
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
|
|
|
|
selector:@selector(resetContentAndLayout)
|
|
|
|
|
|
|
|
name:UIApplicationWillEnterForegroundNotification
|
|
|
|
|
|
|
|
object:nil];
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
selector:@selector(cancelReadTimer)
|
|
|
|
selector:@selector(cancelReadTimer)
|
|
|
|
name:UIApplicationDidEnterBackgroundNotification
|
|
|
|
name:UIApplicationDidEnterBackgroundNotification
|
|
|
@ -525,6 +529,11 @@ typedef enum : NSUInteger {
|
|
|
|
|
|
|
|
|
|
|
|
[self ensureBlockStateIndicator];
|
|
|
|
[self ensureBlockStateIndicator];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[self resetContentAndLayout];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (void)resetContentAndLayout
|
|
|
|
|
|
|
|
{
|
|
|
|
// Avoid layout corrupt issues and out-of-date message subtitles.
|
|
|
|
// Avoid layout corrupt issues and out-of-date message subtitles.
|
|
|
|
[self.collectionView.collectionViewLayout invalidateLayout];
|
|
|
|
[self.collectionView.collectionViewLayout invalidateLayout];
|
|
|
|
[self.collectionView reloadData];
|
|
|
|
[self.collectionView reloadData];
|
|
|
|