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:
David Sinclair 2015-10-27 21:52:11 -07:00
parent 79ba283ffe
commit 2ce271e664

View file

@ -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 {