Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

#639 Shared Preference NPE Fix #640

Merged
merged 2 commits into from
Sep 25, 2020
Merged

Conversation

jsoberg
Copy link
Contributor

@jsoberg jsoberg commented Sep 4, 2020

Began unregistering Shared Pref listeners on activities that have been destroyed. This ensures that we aren't getting callbacks to a destroyed activities, and also that we're not potentially modifying shared preferences multiple times (since a new listener would be registered on each activity creation).

Unrelated cleanup, set some fields in SettingsActivity to be private (since they weren't being used elsewhere).

@jsoberg jsoberg changed the title #638 Shared Preference NPE Fix #639 Shared Preference NPE Fix Sep 4, 2020
…at we aren't leaving callbacks to a destroyed activity

Make fields in SettingsActivity/SettingsFragment private
@jsoberg jsoberg force-pushed the #638-SettingsNpeFix branch from 92e743c to 7e85594 Compare September 4, 2020 20:01
…aren't leaving callbacks to a destroyed activity
@jsoberg jsoberg force-pushed the #638-SettingsNpeFix branch from 7e85594 to 28be98e Compare September 4, 2020 20:03
@jsoberg
Copy link
Contributor Author

jsoberg commented Sep 4, 2020

I realized after I pushed that I accidentally referenced 638 instead of 639 in my commit messages, so I force pushed message rewords for history's sake.

@flocke flocke self-assigned this Sep 5, 2020
@flocke flocke added this to the v0.8.0 milestone Sep 5, 2020
@flocke flocke added the bug label Sep 5, 2020
@flocke flocke merged commit 8b6b76b into andOTP:master Sep 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants