Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Fixes #3634 - Firefox Focus crashes after minimizing several times
Browse files Browse the repository at this point in the history
(cherry picked from commit 355e735)
  • Loading branch information
rilury authored and rvandermeulen committed Dec 22, 2022
1 parent 0b373a7 commit f783351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blockzilla/Utilities/KeyboardType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum KeyboardType: String {

static func identifyKeyboardNameTelemetry() {
guard UIApplication.textInputMode?.responds(to: NSSelectorFromString("identifier")) == true else { return }
(UIApplication.textInputMode?.perform(NSSelectorFromString("identifier")).takeRetainedValue() as? String)
(UIApplication.textInputMode?.perform(NSSelectorFromString("identifier")).takeUnretainedValue() as? String)
.map { KeyboardType.init(identifier: $0).gleanDescription(identifier: $0) }
.map { description in
GleanMetrics.App.keyboardType.set(description)
Expand Down

0 comments on commit f783351

Please sign in to comment.