mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
iOS: fixed #779 (selected text glitch)
Easier than expected; just needed to detect when it's been blanked and force a redraw. Makes loading a different story tidier, too.
This commit is contained in:
parent
79ba283ffe
commit
2ce271e664
1 changed files with 5 additions and 0 deletions
|
@ -205,6 +205,7 @@
|
|||
|
||||
- (void)viewDidDisappear:(BOOL)animated {
|
||||
[super viewDidDisappear:animated];
|
||||
[self clearStory];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
@ -226,6 +227,10 @@
|
|||
_orientation = [UIApplication sharedApplication].statusBarOrientation;
|
||||
NSLog(@"Found stale orientation in story detail: %@", NSStringFromCGSize(self.view.bounds.size));
|
||||
}
|
||||
|
||||
if ([self.webView.request.URL.absoluteString isEqualToString:@"about:blank"]) {
|
||||
[self drawStory];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated {
|
||||
|
|
Loading…
Add table
Reference in a new issue