Replaced campaignPreference with CAMPAIGNS_DEFAULT_PREFERENCE (#5357)

Co-authored-by: Kwong Yu Zhou <https://github.com/kwong-yu-zhou>
Co-authored-by: Adam Jones <domdomegg+git@gmail.com>
This commit is contained in:
Kwong Yu Zhou 2024-02-15 05:23:23 +08:00 committed by GitHub
parent 2d5b7cc579
commit 013bc7db39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ public class CampaignView extends SwipableCardView {
@Override public boolean onSwipe(final View view) {
view.setVisibility(View.GONE);
((BaseActivity) getContext()).defaultKvStore
.putBoolean(campaignPreference, false);
.putBoolean(CAMPAIGNS_DEFAULT_PREFERENCE, false);
ViewUtil.showLongToast(getContext(),
getResources().getString(R.string.nearby_campaign_dismiss_message));
return true;