udacity / Sunshine-Version-2

The official repository for Developing Android Apps
Apache License 2.0
2.87k stars 4.4k forks source link

SettingsActivity didn't save location's value when I changed this #322

Open luckyluke1994 opened 7 years ago

luckyluke1994 commented 7 years ago

Hi all, I made SettingsActivity follow video lession 3 at Update Data on Activity Start, when I change location zip code to 75001 and when I press back button then go to SettingsActivity location zip code still is 94043, please help me Thanks in advanced

luckyluke1994 commented 7 years ago

oh, I fixed that problem, in my case at the end of method onPreferenceChange() I returned false, so that is why my location didn't update new value, I must return true instead :)