mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 13:08:21 +01:00
Bump preference-ktx from 1.1.1 to 1.2.0 (#1773)
This commit is contained in:
parent
a4f455b38f
commit
ce36e86bb2
@ -190,7 +190,7 @@ dependencies {
|
|||||||
implementation "androidx.fragment:fragment-ktx:1.4.0"
|
implementation "androidx.fragment:fragment-ktx:1.4.0"
|
||||||
implementation "androidx.annotation:annotation:1.3.0"
|
implementation "androidx.annotation:annotation:1.3.0"
|
||||||
|
|
||||||
implementation "androidx.preference:preference-ktx:1.1.1"
|
implementation "androidx.preference:preference-ktx:1.2.0"
|
||||||
implementation "androidx.recyclerview:recyclerview:1.2.1"
|
implementation "androidx.recyclerview:recyclerview:1.2.1"
|
||||||
implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
|
implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
|
||||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
||||||
|
@ -173,8 +173,10 @@ class MainActivity : BaseActivity<MainPresenter, ActivityMainBinding>(), MainVie
|
|||||||
caller: PreferenceFragmentCompat,
|
caller: PreferenceFragmentCompat,
|
||||||
pref: Preference
|
pref: Preference
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val fragment =
|
val fragment = supportFragmentManager.fragmentFactory.instantiate(
|
||||||
supportFragmentManager.fragmentFactory.instantiate(classLoader, pref.fragment)
|
classLoader,
|
||||||
|
pref.fragment.toString()
|
||||||
|
)
|
||||||
pushView(fragment)
|
pushView(fragment)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -64,11 +64,11 @@ class AdvancedFragment : PreferenceFragmentCompat(),
|
|||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,11 @@ class AppearanceFragment : PreferenceFragmentCompat(),
|
|||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,10 +83,10 @@ class NotificationsFragment : PreferenceFragmentCompat(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateRecyclerView(
|
override fun onCreateRecyclerView(
|
||||||
inflater: LayoutInflater?,
|
inflater: LayoutInflater,
|
||||||
parent: ViewGroup?,
|
parent: ViewGroup,
|
||||||
state: Bundle?
|
state: Bundle?
|
||||||
): RecyclerView? = super.onCreateRecyclerView(inflater, parent, state)
|
): RecyclerView = super.onCreateRecyclerView(inflater, parent, state)
|
||||||
.also {
|
.also {
|
||||||
it.itemAnimator = null
|
it.itemAnimator = null
|
||||||
it.layoutAnimation = null
|
it.layoutAnimation = null
|
||||||
@ -214,11 +214,11 @@ class NotificationsFragment : PreferenceFragmentCompat(),
|
|||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,11 +96,11 @@ class SyncFragment : PreferenceFragmentCompat(),
|
|||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user