title: Correct way of detecting preference changes in a live wallpaper?
body: <p>I created a live wallpaper with a preference activity. Unfortunately, any time the user changes a setting the onSharedPreferenceChangeListener gets called. The listener calls some routines that are somewhat CPU intensive (reinitialize a large mesh) so it makes the preference activity sluggish. How can I call the listener only when the user exits the preference activity?</p>