Skip to content

Commit

Permalink
Fix bug to avoid showing the FAB if user has no sites.
Browse files Browse the repository at this point in the history
  • Loading branch information
develric committed Jan 13, 2020
1 parent f6c3694 commit 3d1836a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ private void initViewModel() {
});
});

mViewModel.start(mBottomNav.getCurrentSelectedPage() == PageType.MY_SITE);
mViewModel.start(mSiteStore.hasSite() && mBottomNav.getCurrentSelectedPage() == PageType.MY_SITE);
}

private @Nullable String getAuthToken() {
Expand Down Expand Up @@ -731,7 +731,7 @@ public void onPageChanged(int position) {
}
}

mViewModel.onPageChanged(pageType == PageType.MY_SITE);
mViewModel.onPageChanged(mSiteStore.hasSite() && pageType == PageType.MY_SITE);
}

// user tapped the new post button in the bottom navbar
Expand Down

0 comments on commit 3d1836a

Please sign in to comment.