mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
fixes #3440 "Campaign notification is not removed from Home even when disabling it in the setting" (#4231)
This commit is contained in:
parent
630c2a5dcd
commit
0a857974f0
2 changed files with 5 additions and 2 deletions
|
|
@ -57,8 +57,8 @@ public class CampaignView extends SwipableCardView {
|
|||
|
||||
@Override public boolean onSwipe(View view) {
|
||||
view.setVisibility(View.GONE);
|
||||
/*((MainActivity) getContext()).defaultKvStore
|
||||
.putBoolean("displayCampaignsCardView", false);*/
|
||||
((MainActivity) getContext()).defaultKvStore
|
||||
.putBoolean("displayCampaignsCardView", false);
|
||||
ViewUtil.showLongToast(getContext(),
|
||||
getResources().getString(R.string.nearby_campaign_dismiss_message));
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -577,6 +577,9 @@ public class ContributionsFragment
|
|||
if (store.getBoolean("displayCampaignsCardView", true)) {
|
||||
presenter.getCampaigns();
|
||||
}
|
||||
else{
|
||||
campaignView.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void showMessage(String message) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue