Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For issue #9364 Crash when blocking app permissions and returning to
Browse files Browse the repository at this point in the history
the app
  • Loading branch information
Amejia481 authored and liuche committed Mar 25, 2020
1 parent f0bce01 commit eb5cdcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ import org.mozilla.fenix.settings.PhoneFeature
@SuppressWarnings("TooManyFunctions")
class SitePermissionsFragment : PreferenceFragmentCompat() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
showToolbar(getString(R.string.preferences_site_permissions))
}

override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
setPreferencesFromResource(R.xml.site_permissions_preferences, rootKey)
}

override fun onResume() {
super.onResume()
showToolbar(getString(R.string.preferences_site_permissions))
setupPreferences()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ class SitePermissionsManagePhoneFeatureFragment : Fragment() {
phoneFeature = SitePermissionsManagePhoneFeatureFragmentArgs
.fromBundle(requireArguments())
.permission.toPhoneFeature()

showToolbar(phoneFeature.getLabel(requireContext()))
settings = requireContext().settings()
}

Expand All @@ -84,6 +82,7 @@ class SitePermissionsManagePhoneFeatureFragment : Fragment() {

override fun onResume() {
super.onResume()
showToolbar(phoneFeature.getLabel(requireContext()))
initBlockedByAndroidView(phoneFeature, blockedByAndroidView)
}

Expand Down

0 comments on commit eb5cdcd

Please sign in to comment.