dwalkes / WakeMeSki

An application for the Android OS which turns your phone into a ski or snowboard alarm clock with ski resort monitoring features. This project is based on android-ski-report found at http://code.google.com/p/android-ski-report/
www.wakemeski.com
7 stars 0 forks source link

Enabled shared preference check does not reference latest value of preference #22

Closed dwalkes closed 13 years ago

dwalkes commented 13 years ago

Noticed when testing on 1.5 - got in a situation where pressing the "enable" disabled the alarm and vise-versa.

I believe this is because mAlarmEnablePreference does not represent that latest value of the preference in onSharedPreferenceChanged when key = ALARM_ENABLE_PREF_KEY.

dwalkes commented 13 years ago

Fixed with commit 1354e65625d4ade7a3f74d5d097ede939b2952ed