You can now Like/Dislike files from the Replay Center
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user