iOS: #1139 (scroll to top)

These changes avoid the wacky Sam-only issue of folders moving around, triggered by the notifier bar doing animated layout.
This commit is contained in:
David Sinclair 2018-11-13 14:39:58 -08:00
parent 85d3ae65fa
commit 4ad5a2f4b6
3 changed files with 10 additions and 2 deletions

View file

@ -40,7 +40,7 @@
}
- (void)rebuildOptions {
if ([appDelegate.activeUsername isEqualToString:@"samuel"]) {
if ([appDelegate.activeUsername isEqualToString:@"samuel"] || [appDelegate.activeUsername isEqualToString:@"Dejal"]) {
self.menuOptions = [[NSArray alloc]
initWithObjects:[@"Preferences" uppercaseString],
[@"Mute Sites" uppercaseString],

View file

@ -219,6 +219,10 @@
}
- (void)showIn:(float)time {
if (showing) {
return;
}
showing = YES;
// CGRect frame = self.frame;
// frame.size.width = self.view.frame.size.width;
@ -227,6 +231,10 @@
topOffsetConstraint.constant = -1 * NOTIFIER_HEIGHT;
if (time == 0) {
return;
}
[UIView animateWithDuration:time animations:^{
// CGRect move = self.frame;
// move.origin.x = self.view.frame.origin.x + self.offset.x;

View file

@ -2277,7 +2277,7 @@ heightForHeaderInSection:(NSInteger)section {
self.notifier.style = NBSyncingStyle;
self.notifier.title = @"On its way...";
[self.notifier setProgress:0];
[self.notifier show];
[self.notifier showIn:self.inPullToRefresh_ ? 0.3f : 0.0f];
}
- (void)showCountingNotifier {