From e2e6c30da7b682c97b8de7207a4166833011b89e Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Tue, 30 Apr 2019 10:36:05 -0700 Subject: [PATCH] [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/2168 Closes https://github.com/mozilla-mobile/fenix/issues/2170 - Catch ClassCastException for non bool prefs --- .../main/java/org/mozilla/fenix/settings/SettingsFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt b/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt index 5831e763e..eb7f2ecb8 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt @@ -71,6 +71,8 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse } } catch (e: IllegalArgumentException) { // The event is not tracked + } catch (e: ClassCastException) { + // The setting is not a boolean, not tracked } } }