Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

Commit 5204747

Browse files
sdspikesLyla
authored andcommitted
3.08 Inflate view in SettingsActivity
1 parent d5eebe9 commit 5204747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/example/android/sunshine/app/SettingsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public class SettingsActivity extends PreferenceActivity
3636
public void onCreate(Bundle savedInstanceState) {
3737
super.onCreate(savedInstanceState);
3838
// Add 'general' preferences, defined in the XML file
39-
// TODO: Add preferences from XML
39+
addPreferencesFromResource(R.xml.pref_general);
4040

4141
// For all preferences, attach an OnPreferenceChangeListener so the UI summary can be
4242
// updated when the preference changes.
43-
// TODO: Add preference
43+
bindPreferenceSummaryToValue(findPreference(getString(R.string.pref_location_key)));
4444
}
4545

4646
/**

0 commit comments

Comments
 (0)