[fenix] Adds setters and property delegates in `Settings` (https://github.com/mozilla...
commitc02729c5bf92b53eb9535947aea4e8415bf01f8f
authorTiger Oakes <toakes@mozilla.com>
Tue, 20 Aug 2019 17:47:55 +0000 (20 13:47 -0400)
committerSawyer Blatz <sdblatz@gmail.com>
Tue, 20 Aug 2019 17:47:55 +0000 (20 10:47 -0700)
tree841e1b74340270f5da1be1206808d48fe5bf51be
parent56aa7dda0606c276f0f9970a406dd8fcf7b505b3
[fenix] Adds setters and property delegates in `Settings` (https://github.com/mozilla-mobile/fenix/pull/4809)

* Change Settings to use setters

* Add delegate for shared preferences
18 files changed:
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/BrowsingModeManager.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/AccessibilityFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/PhoneFeature.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/RadioSearchEngineListPreference.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SitePermissionsFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SitePermissionsManagePhoneFeatureFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/TrackingProtectionFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/quicksettings/QuickSettingsComponent.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/sharedpreferences/BooleanPreference.kt [new file with mode: 0644]
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/sharedpreferences/PreferencesHolder.kt [new file with mode: 0644]
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/sharedpreferences/SitePermissionsRulesActionPreference.kt [new file with mode: 0644]
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/settings/sharedpreferences/BooleanPreferenceTest.kt [new file with mode: 0644]
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/settings/sharedpreferences/SitePermissionsRulesActionPreferenceTest.kt [new file with mode: 0644]
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/utils/SettingsTest.kt