This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
4 additions
and
1 deletion.
-
+4
−1
Cliqz/HomePanel/CliqzHomePanelViewController.swift
|
|
@@ -59,6 +59,7 @@ class CliqzHomePanelViewController: UIViewController, UITextFieldDelegate { |
|
|
} |
|
|
|
|
|
fileprivate var currentIndexType: IndexType = .notSet |
|
|
fileprivate var currentOrientation: DeviceOrientation? = nil |
|
|
|
|
|
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { |
|
|
|
|
|
@@ -127,9 +128,11 @@ class CliqzHomePanelViewController: UIViewController, UITextFieldDelegate { |
|
|
} |
|
|
|
|
|
let indexType = index2type(segmentedControl.selectedSegmentIndex) |
|
|
let orientation = UIDevice.current.getDeviceAndOrientation().1 |
|
|
|
|
|
guard currentIndexType != indexType else { return } |
|
|
guard currentIndexType != indexType || currentOrientation != orientation else { return } |
|
|
currentIndexType = indexType |
|
|
currentOrientation = orientation |
|
|
|
|
|
if segmentedControl.selectedSegmentIndex < 1 { |
|
|
backgroundView.image = UIImage.cliqzBackgroundImage() |
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.