You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc fixes and additions to make Telegram launch
This commit is contained in:
@@ -100,6 +100,10 @@ public class PropertyValuesHolder {
|
||||
public void setEvaluator(TypeEvaluator value) {}
|
||||
|
||||
public void calculateValue(float fraction) {
|
||||
if (fraction < 0f)
|
||||
fraction = 0f;
|
||||
if (fraction > 1f)
|
||||
fraction = 1f;
|
||||
if (values_object != null) {
|
||||
value = values_object[(int) (fraction * (values_object.length - 1) + 0.5f)];
|
||||
} else if (values_float != null) {
|
||||
|
||||
Reference in New Issue
Block a user