Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: donation UI visibility issue #1229

Merged
merged 7 commits into from
Aug 28, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ private void goToNavDrawerItem(int item) {
startActivity(i);
break;
}
updateDonationsUIVisibility();
if (mCurrentNavDrawerPosition != NAVDRAWER_ITEM_NEARBY) {
WeatherUtils.toggleWeatherViewVisibility(false,weatherView);
}else{
Expand Down Expand Up @@ -2096,9 +2097,10 @@ private void setupDonationView(HomeActivity homeActivity) {

private void updateDonationsUIVisibility() {
mDonationView = findViewById(R.id.donationView);
if(mDonationView == null) return;
DonationsManager donationsManager = Application.getDonationsManager();

if (donationsManager.shouldShowDonationUI()) {
if (donationsManager.shouldShowDonationUI() && mCurrentNavDrawerPosition == NAVDRAWER_ITEM_NEARBY) {
mDonationView.setVisibility(View.VISIBLE);
}
else {
Expand Down
Loading