mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing view draw issues when selecting interactions and activities from either profile views or the dashboard.
This commit is contained in:
parent
2246eae853
commit
c167863c95
6 changed files with 40 additions and 30 deletions
|
@ -372,7 +372,7 @@
|
||||||
[self.searchBar setShowsCancelButton:NO animated:YES];
|
[self.searchBar setShowsCancelButton:NO animated:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self testForTryFeed];
|
// [self testForTryFeed];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidAppear:(BOOL)animated {
|
- (void)viewDidAppear:(BOOL)animated {
|
||||||
|
@ -411,6 +411,12 @@
|
||||||
self.popoverController = nil;
|
self.popoverController = nil;
|
||||||
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
|
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
|
||||||
|
|
||||||
|
if (self.isMovingToParentViewController) {
|
||||||
|
appDelegate.inFindingStoryMode = NO;
|
||||||
|
appDelegate.tryFeedStoryId = nil;
|
||||||
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
||||||
|
}
|
||||||
|
|
||||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad &&
|
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad &&
|
||||||
self.isMovingToParentViewController &&
|
self.isMovingToParentViewController &&
|
||||||
(appDelegate.masterContainerViewController.storyTitlesOnLeft ||
|
(appDelegate.masterContainerViewController.storyTitlesOnLeft ||
|
||||||
|
@ -1112,7 +1118,16 @@
|
||||||
!appDelegate.inFindingStoryMode ||
|
!appDelegate.inFindingStoryMode ||
|
||||||
!appDelegate.tryFeedStoryId) return;
|
!appDelegate.tryFeedStoryId) return;
|
||||||
|
|
||||||
// NSLog(@"Test for try feed");
|
if (!self.view.window) {
|
||||||
|
NSLog(@"No longer looking for try feed.");
|
||||||
|
appDelegate.inFindingStoryMode = NO;
|
||||||
|
appDelegate.tryFeedStoryId = nil;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
NSLog(@"Test for try feed");
|
||||||
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
||||||
|
MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
|
||||||
|
HUD.labelText = @"Finding story...";
|
||||||
|
|
||||||
for (int i = 0; i < [storiesCollection.activeFeedStories count]; i++) {
|
for (int i = 0; i < [storiesCollection.activeFeedStories count]; i++) {
|
||||||
NSString *storyIdStr = [[storiesCollection.activeFeedStories
|
NSString *storyIdStr = [[storiesCollection.activeFeedStories
|
||||||
|
|
|
@ -592,6 +592,7 @@
|
||||||
}
|
}
|
||||||
- (void)transitionToFeedDetail:(BOOL)resetLayout {
|
- (void)transitionToFeedDetail:(BOOL)resetLayout {
|
||||||
[self hidePopover];
|
[self hidePopover];
|
||||||
|
if (self.feedDetailIsVisible) resetLayout = NO;
|
||||||
self.feedDetailIsVisible = YES;
|
self.feedDetailIsVisible = YES;
|
||||||
|
|
||||||
if (resetLayout) {
|
if (resetLayout) {
|
||||||
|
|
|
@ -1034,14 +1034,6 @@
|
||||||
isSocial:(BOOL)social
|
isSocial:(BOOL)social
|
||||||
withUser:(NSDictionary *)user
|
withUser:(NSDictionary *)user
|
||||||
showFindingStory:(BOOL)showHUD {
|
showFindingStory:(BOOL)showHUD {
|
||||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
|
||||||
[self.navigationController popToRootViewControllerAnimated:NO];
|
|
||||||
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
|
|
||||||
if (self.feedsViewController.popoverController) {
|
|
||||||
[self.feedsViewController.popoverController dismissPopoverAnimated:NO];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NSDictionary *feed = [self getFeed:feedId];
|
NSDictionary *feed = [self getFeed:feedId];
|
||||||
|
|
||||||
if (social) {
|
if (social) {
|
||||||
|
@ -1066,14 +1058,19 @@
|
||||||
storiesCollection.activeFeed = feed;
|
storiesCollection.activeFeed = feed;
|
||||||
storiesCollection.activeFolder = nil;
|
storiesCollection.activeFolder = nil;
|
||||||
|
|
||||||
[self loadFeedDetailView];
|
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||||
|
[self loadFeedDetailView];
|
||||||
if (showHUD) {
|
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
[self.navigationController popToRootViewControllerAnimated:NO];
|
||||||
[self.storyPageControl showShareHUD:@"Finding story..."];
|
if (self.feedsViewController.popoverController) {
|
||||||
|
[self.feedsViewController.popoverController dismissPopoverAnimated:YES];
|
||||||
|
}
|
||||||
|
if (self.navigationController.presentedViewController) {
|
||||||
|
[self.navigationController dismissViewControllerAnimated:YES completion:^{
|
||||||
|
[self loadFeedDetailView];
|
||||||
|
}];
|
||||||
} else {
|
} else {
|
||||||
MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.feedDetailViewController.view animated:YES];
|
[self loadFeedDetailView];
|
||||||
HUD.labelText = @"Finding story...";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,11 +224,6 @@ static UIFont *userLabelFont;
|
||||||
[self performSelector:@selector(fadeSelectedCell) withObject:self afterDelay:0.2];
|
[self performSelector:@selector(fadeSelectedCell) withObject:self afterDelay:0.2];
|
||||||
// self.navigationController.navigationBar.backItem.title = @"All Sites";
|
// self.navigationController.navigationBar.backItem.title = @"All Sites";
|
||||||
|
|
||||||
// // reset all feed detail specific data
|
|
||||||
// appDelegate.activeFeed = nil;
|
|
||||||
// appDelegate.isSocialView = NO;
|
|
||||||
// appDelegate.isRiverView = NO;
|
|
||||||
appDelegate.inFindingStoryMode = NO;
|
|
||||||
self.interactiveFeedDetailTransition = NO;
|
self.interactiveFeedDetailTransition = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1132,7 +1127,7 @@ static UIFont *userLabelFont;
|
||||||
if (indexPath.section == 0) {
|
if (indexPath.section == 0) {
|
||||||
folderName = @"river_global";
|
folderName = @"river_global";
|
||||||
} else if (indexPath.section == 1) {
|
} else if (indexPath.section == 1) {
|
||||||
folderName = @"river_blurblogs";
|
folderName = @"river_blurblogs";
|
||||||
} else if (indexPath.section == 2) {
|
} else if (indexPath.section == 2) {
|
||||||
folderName = @"everything";
|
folderName = @"everything";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3887,7 +3887,7 @@
|
||||||
"-all_load",
|
"-all_load",
|
||||||
);
|
);
|
||||||
PRODUCT_NAME = NewsBlur;
|
PRODUCT_NAME = NewsBlur;
|
||||||
PROVISIONING_PROFILE = "0a21ce12-0604-4e59-b0b1-1aa2b90afaa5";
|
PROVISIONING_PROFILE = "45143eee-33c3-4c7b-82e2-4b3ac0eb2170";
|
||||||
STRIP_INSTALLED_PRODUCT = NO;
|
STRIP_INSTALLED_PRODUCT = NO;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
"WARNING_CFLAGS[arch=*]" = "-Wall";
|
"WARNING_CFLAGS[arch=*]" = "-Wall";
|
||||||
|
@ -3926,7 +3926,7 @@
|
||||||
"-all_load",
|
"-all_load",
|
||||||
);
|
);
|
||||||
PRODUCT_NAME = NewsBlur;
|
PRODUCT_NAME = NewsBlur;
|
||||||
PROVISIONING_PROFILE = "0a21ce12-0604-4e59-b0b1-1aa2b90afaa5";
|
PROVISIONING_PROFILE = "45143eee-33c3-4c7b-82e2-4b3ac0eb2170";
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
|
|
|
@ -279,6 +279,8 @@ static char const * const UINavigationControllerEmbedInPopoverTagKey = "UINaviga
|
||||||
{
|
{
|
||||||
Method original, swizzle;
|
Method original, swizzle;
|
||||||
|
|
||||||
|
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) return;
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||||
original = class_getInstanceMethod(self, @selector(setContentSizeForViewInPopover:));
|
original = class_getInstanceMethod(self, @selector(setContentSizeForViewInPopover:));
|
||||||
|
@ -313,10 +315,10 @@ static char const * const UINavigationControllerEmbedInPopoverTagKey = "UINaviga
|
||||||
{
|
{
|
||||||
[self sizzled_setPreferredContentSize:aSize];
|
[self sizzled_setPreferredContentSize:aSize];
|
||||||
|
|
||||||
if ([self isKindOfClass:[UINavigationController class]] == NO && self.navigationController != nil)
|
if ([self isKindOfClass:[UINavigationController class]] == NO && self.navigationController && self.navigationController != nil)
|
||||||
{
|
{
|
||||||
#ifdef WY_BASE_SDK_7_ENABLED
|
#ifdef WY_BASE_SDK_7_ENABLED
|
||||||
if ([self respondsToSelector:@selector(setPreferredContentSize:)]) {
|
if ([self.navigationController respondsToSelector:@selector(setPreferredContentSize:)]) {
|
||||||
[self.navigationController setPreferredContentSize:aSize];
|
[self.navigationController setPreferredContentSize:aSize];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue