mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
fix: rename isDarkTheme property to prevent recursion (#6231)
This commit is contained in:
parent
fa24b93830
commit
218476acbc
1 changed files with 4 additions and 4 deletions
|
|
@ -223,7 +223,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
|||
private var view: View? = null
|
||||
private var scope: LifecycleCoroutineScope? = null
|
||||
private var presenter: NearbyParentFragmentPresenter? = null
|
||||
private var isDarkTheme = false
|
||||
private var _isDarkTheme = false
|
||||
private var isFABsExpanded = false
|
||||
private var selectedPlace: Place? = null
|
||||
private var clickedMarker: Marker? = null
|
||||
|
|
@ -461,7 +461,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
|||
}
|
||||
}
|
||||
}
|
||||
isDarkTheme = systemThemeUtils?.isDeviceInNightMode() == true
|
||||
_isDarkTheme = systemThemeUtils?.isDeviceInNightMode() == true
|
||||
if (Utils.isMonumentsEnabled(Date())) {
|
||||
binding?.rlContainerWlmMonthMessage?.visibility = View.VISIBLE
|
||||
} else {
|
||||
|
|
@ -631,7 +631,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
|||
* another refactor
|
||||
*/
|
||||
private fun initThemePreferences() {
|
||||
if (isDarkTheme) {
|
||||
if (_isDarkTheme) {
|
||||
binding!!.bottomSheetNearby.rvNearbyList.setBackgroundColor(
|
||||
requireContext().resources.getColor(fr.free.nrw.commons.R.color.contributionListDarkBackground)
|
||||
)
|
||||
|
|
@ -915,7 +915,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
|||
}
|
||||
|
||||
override fun isDarkTheme(): Boolean {
|
||||
return isDarkTheme
|
||||
return _isDarkTheme
|
||||
}
|
||||
})
|
||||
binding!!.nearbyFilterList.root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue