Skip to content

Commit 3aeb067

Browse files
authored
Fixes mozilla-mobile#3144 - There is a flicker when opening the ETP menu (if ETP is turned OFF)
1 parent 407d611 commit 3aeb067

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Blockzilla/Tracking Protection/Presentation/SheetModalViewController.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SheetModalViewController: UIViewController {
2424
private lazy var dimmedView: UIView = {
2525
let view = UIView()
2626
view.backgroundColor = .black
27-
view.alpha = maximumDimmingAlpha
27+
view.alpha = 0
2828
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(animateDismissView))
2929
view.addGestureRecognizer(tapGesture)
3030
return view
@@ -118,7 +118,6 @@ class SheetModalViewController: UIViewController {
118118
}
119119

120120
func animateShowDimmedView() {
121-
dimmedView.alpha = 0
122121
UIView.animate(withDuration: .animationDuration) {
123122
self.dimmedView.alpha = self.maximumDimmingAlpha
124123
}

0 commit comments

Comments
 (0)