background info update tweak
This commit is contained in:
1 parent
2b0fb3844b
commit
e51701ef00
2 files changed
+4
-4
No files matched your search
@@ -505,7 +505,7 @@ static const float REFRESH_CYCLE = 2.0f;
|
|||||||
|
|
||||||
- (void) updateLoop {
|
- (void) updateLoop {
|
||||||
// Stop immediately if the view has been detached
|
// Stop immediately if the view has been detached
|
||||||
if (self.superview == nil) {
|
if (self.superview == nil || [self.delegate isStreaming]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -514,7 +514,7 @@ static const float REFRESH_CYCLE = 2.0f;
|
|||||||
[self updateContentsForHost:_host];
|
[self updateContentsForHost:_host];
|
||||||
|
|
||||||
// Queue the next refresh cycle
|
// Queue the next refresh cycle
|
||||||
if(![self.delegate isStreaming]) [self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) updateContentsForHost:(TemporaryHost*)host {
|
- (void) updateContentsForHost:(TemporaryHost*)host {
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ static UIImage* noImage;
|
|||||||
|
|
||||||
- (void) updateLoop {
|
- (void) updateLoop {
|
||||||
// Stop immediately if the view has been detached
|
// Stop immediately if the view has been detached
|
||||||
if (self.superview == nil) {
|
if (self.superview == nil || ![self.updateLoopDelegate isInAppView]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,7 +282,7 @@ static UIImage* noImage;
|
|||||||
[self setAlpha:_app.hidden ? 0.4 : 1.0];
|
[self setAlpha:_app.hidden ? 0.4 : 1.0];
|
||||||
|
|
||||||
// Queue the next refresh cycle
|
// Queue the next refresh cycle
|
||||||
if([self.updateLoopDelegate isInAppView]) [self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
Reference in new issue
Block a user