Skip to content

Commit

Permalink
Fix NPE from missing Google App setting
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzaidi committed Aug 26, 2018
1 parent 51ab73c commit be53124
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ public void onResume() {
mIconPackPref.reloadIconPacks();

SwitchPreference minusOne = (SwitchPreference) findPreference(ENABLE_MINUS_ONE_PREF);
minusOne.setChecked(Utilities.getPrefs(getActivity())
.getBoolean(ENABLE_MINUS_ONE_PREF, true));
if (minusOne != null) {
minusOne.setChecked(Utilities.getPrefs(getActivity())
.getBoolean(ENABLE_MINUS_ONE_PREF, true));
}
}

@Override
Expand Down

0 comments on commit be53124

Please sign in to comment.