mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-18 15:18:37 -05:00
Always fall back to English and then untranslated
This commit is contained in:
@@ -222,7 +222,7 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
item.setVisible(false);
|
||||
}
|
||||
|
||||
if(loyaltyCard != null && !loyaltyCard.extras.getAllValues(Locale.getDefault().getLanguage()).isEmpty())
|
||||
if(loyaltyCard != null && !loyaltyCard.extras.getAllValues(new String[]{Locale.getDefault().getLanguage(), "en", ""}).isEmpty())
|
||||
{
|
||||
MenuItem item = menu.findItem(R.id.action_view_extras);
|
||||
item.setVisible(true);
|
||||
@@ -304,7 +304,7 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
{
|
||||
StringBuilder items = new StringBuilder();
|
||||
|
||||
HashMap<String, String> extraValues = loyaltyCard.extras.getAllValues(Locale.getDefault().getLanguage());
|
||||
HashMap<String, String> extraValues = loyaltyCard.extras.getAllValues(new String[]{Locale.getDefault().getLanguage(), "en", ""});
|
||||
for(String key : extraValues.keySet())
|
||||
{
|
||||
items.append(extraValues.get(key) + "\n");
|
||||
|
||||
Reference in New Issue
Block a user