diff --git a/mobile/src/main/java/org/openhab/habdroid/ui/preference/fragments/MainSettingsFragment.kt b/mobile/src/main/java/org/openhab/habdroid/ui/preference/fragments/MainSettingsFragment.kt index bc54174879..7c848ef227 100644 --- a/mobile/src/main/java/org/openhab/habdroid/ui/preference/fragments/MainSettingsFragment.kt +++ b/mobile/src/main/java/org/openhab/habdroid/ui/preference/fragments/MainSettingsFragment.kt @@ -104,6 +104,9 @@ class MainSettingsFragment : AbstractSettingsFragment(), ConnectionFactory.Updat override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { addPreferencesFromResource(R.xml.preferences) + // Populate server prefs here, so they don't get animated. + // Do it in onStart() again to update the list, e.g. after adding new servers. + populateServerPrefs() val addServerPref = getPreference("add_server") val sendDeviceInfoPref = getPreference(PrefKeys.SUBSCREEN_SEND_DEVICE_INFO)