Skip to content

Commit

Permalink
Ensure the fragment is unregistered onPause
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Dec 16, 2015
1 parent ce023bf commit 0ee615a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class ShadowsocksSettings extends PreferenceFragment with OnSharedPreferenceChan

override def onPause {
super.onPause()
ShadowsocksApplication.settings.unregisterOnSharedPreferenceChangeListener(this)
}

def onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) = key match {
Expand Down

0 comments on commit 0ee615a

Please sign in to comment.