Add filtering test

This commit is contained in:
Sylvia van Os
2019-11-23 15:27:31 +01:00
parent 30419b5896
commit e33565abdc
2 changed files with 117 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ public class MainActivity extends AppCompatActivity
if(db.getLoyaltyCardCount() > 0)
{
filter.setVisibility(View.VISIBLE);
// We want the cardList to be visible regardless of the filtered match count
// to ensure that the noMatchingCardsText doesn't end up being shown below
// the keyboard
cardList.setVisibility(View.VISIBLE);
helpText.setVisibility(View.GONE);
if(db.getLoyaltyCardCount(filterText) > 0)