Register onSharePreferenceChangeListener.