do not override original description with nulls

The original single language description gets stuck straight into
App.description by Jackson.  getLocalizedEntry() might return a null,
in which case it was overriding the original description.  This only
overrides the original description if there is actually a localized
description.
This commit is contained in:
Hans-Christoph Steiner 2017-04-13 20:49:18 +02:00
parent a89323b183
commit e6844a5f4f

View File

@ -397,7 +397,7 @@ public class App extends ValueObject implements Comparable<App>, Parcelable {
if (!TextUtils.isEmpty(value)) {
summary = value;
}
description = getLocalizedEntry(localized, localesToUse, "Description");
value = getLocalizedEntry(localized, localesToUse, "Description");
if (!TextUtils.isEmpty(value)) {
description = value;
}