You can now Like/Dislike files from the Replay Center

This commit is contained in:
CrushedPixel
2015-05-24 15:00:37 +02:00
parent 0ac9630a22
commit 1c9a04d1dc
6 changed files with 121 additions and 3 deletions

View File

@@ -31,6 +31,11 @@ public class ApiError {
}
public String getTranslatedDesc() {
return I18n.format(key, (Object[])objects);
try {
return I18n.format(key, (Object[]) objects);
} catch(Exception e) {
e.printStackTrace();
return desc;
}
}
}

View File

@@ -23,5 +23,10 @@ public class Rating {
RatingType(String key) {
this.key = key;
}
public static RatingType fromBoolean(Boolean rating) {
return rating == null ? RatingType.NEUTRAL :
(rating ? RatingType.LIKE : RatingType.DISLIKE);
}
}
}