Skip to content

Commit

Permalink
Fix: hidden individual upload-measurement toast (#531)
Browse files Browse the repository at this point in the history
Fixes ooni/probe#2511,
ooni/probe#2487

## Proposed Changes

  - Updated constraints for UploadBarFooter
  • Loading branch information
aanorbel authored Oct 19, 2023
1 parent cfe9f0c commit 9602f41
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ -(IBAction)reRun{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ -(void)reloadFooter{
[self.scrollView setNeedsUpdateConstraints];
}
else {
self.scrollViewFooterConstraint.constant = 0;
self.scrollViewFooterConstraint.constant = 64;
[self.scrollView setNeedsUpdateConstraints];
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ -(void)viewWillAppear:(BOOL)animated{
}

-(void)reloadConstraints{
CGFloat uploadConstraint = 0;
if ([RunningTest currentTest].isTestRunning){
uploadConstraint += 64;
}
CGFloat uploadConstraint = 64;
dispatch_async(dispatch_get_main_queue(), ^{
self.uploadBarFooterConstraint.constant = uploadConstraint;
});
Expand Down

0 comments on commit 9602f41

Please sign in to comment.