Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit dac2dd3

Browse files
committed
use addPreferencesFromResource instead of set
1 parent edd1859 commit dac2dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/de/storchp/opentracks/osmplugin/settings/SettingsActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SettingsActivity : AppCompatActivity() {
5151
}
5252

5353
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
54-
setPreferencesFromResource(R.xml.root_preferences, rootKey)
54+
addPreferencesFromResource(R.xml.root_preferences)
5555

5656
@Suppress("KotlinConstantConditions")
5757
if (BuildConfig.offline) {

0 commit comments

Comments
 (0)