From a0015cda323b0ad99df409be42767172450c59c5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 2 Jun 2017 13:20:33 +0200 Subject: [PATCH] correct method name: getLocalizedListEntry() This gets the data, it does not set it. And it matches the other getLocalized*() methods. --- app/src/main/java/org/fdroid/fdroid/data/App.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/data/App.java b/app/src/main/java/org/fdroid/fdroid/data/App.java index d1c972c6d..cc390449a 100644 --- a/app/src/main/java/org/fdroid/fdroid/data/App.java +++ b/app/src/main/java/org/fdroid/fdroid/data/App.java @@ -476,11 +476,11 @@ public class App extends ValueObject implements Comparable, Parcelable { promoGraphic = getLocalizedGraphicsEntry(localized, localesToUse, "promoGraphic"); tvBanner = getLocalizedGraphicsEntry(localized, localesToUse, "tvBanner"); - wearScreenshots = setLocalizedListEntry(localized, localesToUse, "wearScreenshots"); - phoneScreenshots = setLocalizedListEntry(localized, localesToUse, "phoneScreenshots"); - sevenInchScreenshots = setLocalizedListEntry(localized, localesToUse, "sevenInchScreenshots"); - tenInchScreenshots = setLocalizedListEntry(localized, localesToUse, "tenInchScreenshots"); - tvScreenshots = setLocalizedListEntry(localized, localesToUse, "tvScreenshots"); + wearScreenshots = getLocalizedListEntry(localized, localesToUse, "wearScreenshots"); + phoneScreenshots = getLocalizedListEntry(localized, localesToUse, "phoneScreenshots"); + sevenInchScreenshots = getLocalizedListEntry(localized, localesToUse, "sevenInchScreenshots"); + tenInchScreenshots = getLocalizedListEntry(localized, localesToUse, "tenInchScreenshots"); + tvScreenshots = getLocalizedListEntry(localized, localesToUse, "tvScreenshots"); } private String getLocalizedEntry(Map> localized, @@ -518,7 +518,7 @@ public class App extends ValueObject implements Comparable, Parcelable { return null; } - private String[] setLocalizedListEntry(Map> localized, + private String[] getLocalizedListEntry(Map> localized, Set locales, String key) { try { for (String locale : locales) {