From c815c3908fdb227cc365a4b1c57bf6b3a51dee83 Mon Sep 17 00:00:00 2001 From: Katharine Date: Tue, 2 Nov 2021 08:14:30 +0800 Subject: [PATCH] added a comment explaining why setText is used there --- app/src/main/java/protect/card_locker/ManageGroupActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/protect/card_locker/ManageGroupActivity.java b/app/src/main/java/protect/card_locker/ManageGroupActivity.java index 45df64b57..6219dea30 100644 --- a/app/src/main/java/protect/card_locker/ManageGroupActivity.java +++ b/app/src/main/java/protect/card_locker/ManageGroupActivity.java @@ -129,6 +129,7 @@ public class ManageGroupActivity extends CatimaAppCompatActivity implements Mana Toast.makeText(getApplicationContext(), R.string.group_updated, Toast.LENGTH_SHORT).show(); finish(); }); + // this setText is here because content_main.xml is reused from main activity mHelpText.setText(getResources().getText(R.string.noGiftCardsGroup)); updateLoyaltyCardList(); }