Commit 6dae3122 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Hide Displayed Badge when Fullscreen is enabled

Fixed: 1056251
Change-Id: I531de3583a0877e1925f1a8c322c11610f3b4416
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078842Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745491}
parent 6540ed59
......@@ -176,6 +176,7 @@ const CGFloat kUpdateDisplayedBadgeAnimationDamping = 0.85;
kFullScreenProgressThreshold,
0);
self.fullScreenBadge.alpha = alphaValue;
self.displayedBadge.hidden = YES;
} else {
self.fullScreenBadge.fullScreenOn = NO;
// Fade in/out the FullScreen badge with the FullScreen off configurations
......@@ -184,6 +185,7 @@ const CGFloat kUpdateDisplayedBadgeAnimationDamping = 0.85;
CGFloat alphaValue = fmax((progress - kFullScreenProgressThreshold) /
(1 - kFullScreenProgressThreshold),
0);
self.displayedBadge.hidden = NO;
self.displayedBadge.alpha = alphaValue;
self.fullScreenBadge.alpha = alphaValue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment