Skip to content

Commit

Permalink
Merge commit '21107e4a9a1f1efd8d7a953168616c9fed2940d3' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
laktyushin committed Feb 1, 2021
2 parents 476f1f8 + 21107e4 commit e18b673
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions submodules/TelegramUI/Sources/TelegramRootController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ public final class TelegramRootController: NavigationController {
self.accountSettingsController = accountSettingsController
self.rootTabController = tabBarController
self.pushViewController(tabBarController, animated: false)

Queue.mainQueue().after(1.0) {
let datePicker = DatePickerNode(theme: DatePickerTheme(backgroundColor: .white, textColor: .black, secondaryTextColor: .gray, accentColor: .blue, disabledColor: .lightGray, selectionColor: .blue, selectedCurrentTextColor: .white, secondarySelectionColor: .cyan), strings: self.context.sharedContext.currentPresentationData.with { $0 }.strings)

let frame = CGRect(origin: CGPoint(x: 50.0, y: 100.0), size: CGSize(width: 300.0, height: 300.0))
datePicker.updateLayout(size: frame.size, transition: .immediate)
self.rootTabController?.displayNode.addSubnode(datePicker)
}
}

public func updateRootControllers(showCallsTab: Bool) {
Expand Down

0 comments on commit e18b673

Please sign in to comment.