Skip to content

Commit

Permalink
Merge pull request #11934 from wordpress-mobile/update/fragments
Browse files Browse the repository at this point in the history
Bumped androidx core and fragment dependencies to latest
  • Loading branch information
mzorz authored May 22, 2020
2 parents 3f6d5bd + 5c7c143 commit 757f3cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {

mLoginSiteAddressValidator = new LoginSiteAddressValidator();

mLoginSiteAddressValidator.getIsValid().observe(this, new Observer<Boolean>() {
mLoginSiteAddressValidator.getIsValid().observe(getViewLifecycleOwner(), new Observer<Boolean>() {
@Override public void onChanged(Boolean enabled) {
getPrimaryButton().setEnabled(enabled);
}
});
mLoginSiteAddressValidator.getErrorMessageResId().observe(this, new Observer<Integer>() {
mLoginSiteAddressValidator.getErrorMessageResId().observe(getViewLifecycleOwner(), new Observer<Integer>() {
@Override public void onChanged(Integer resId) {
if (resId != null) {
showError(resId);
Expand Down

0 comments on commit 757f3cc

Please sign in to comment.