#1641 (folder highlight does not deactivate upon return)

This commit is contained in:
David Sinclair 2022-03-07 19:47:44 -07:00
parent ed0a6923bc
commit e2aa96da22
2 changed files with 15 additions and 3 deletions

View file

@ -295,7 +295,7 @@ static NSArray<NSString *> *NewsBlurTopSectionNames;
if (self.appDelegate.isCompactWidth) {
[self performSelector:@selector(fadeSelectedCell) withObject:self afterDelay:0.2];
[self performSelector:@selector(clearSelectedHeader) withObject:nil afterDelay:0.2];
[self performSelector:@selector(fadeSelectedHeader) withObject:nil afterDelay:0.2];
self.currentRowAtIndexPath = nil;
}
@ -1693,6 +1693,18 @@ static NSArray<NSString *> *NewsBlurTopSectionNames;
[self highlightSelectedHeader];
}
- (void)fadeSelectedHeader {
if (self.currentSection >= 0) {
FolderTitleView *title = self.folderTitleViews[@(self.currentSection)];
[UIView animateWithDuration:0.2 animations:^{
title.invisibleHeaderButton.layer.backgroundColor = [UIColor clearColor].CGColor;
} completion:NULL];
self.currentSection = -1;
}
}
- (void)clearSelectedHeader {
if (self.currentSection >= 0) {
FolderTitleView *title = self.folderTitleViews[@(self.currentSection)];

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="6pv-7g-17r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="6pv-7g-17r">
<device id="ipad11_0rounded" orientation="landscape" layout="fullscreen" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>