iOS: #1148 (login as error)

Fixed incorrect HUD behavior.
This commit is contained in:
David Sinclair 2018-11-13 15:23:33 -08:00
parent 79824df7e3
commit 32cc3080e5

View file

@ -266,10 +266,10 @@
[appDelegate.networkManager GET:urlString parameters:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
NSLog(@"Login as %@ successful", username);
[MBProgressHUD hideHUDForView:self.view animated:YES];
[MBProgressHUD hideHUDForView:appDelegate.feedsViewController.view animated:YES];
[appDelegate reloadFeedsView:YES];
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
[MBProgressHUD hideHUDForView:self.view animated:YES];
[MBProgressHUD hideHUDForView:appDelegate.feedsViewController.view animated:YES];
[self informError:error];
}];