mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Fix stretchy chat colors on Android 12.
This commit is contained in:
committed by
Cody Henthorne
parent
e637f15a43
commit
bad382e2f3
@@ -100,6 +100,10 @@ public final class RotatableGradientDrawable extends Drawable {
|
||||
fillPaint.setShader(new LinearGradient(fillRect.left, fillRect.top, fillRect.right, fillRect.bottom, colors, positions, Shader.TileMode.CLAMP));
|
||||
}
|
||||
|
||||
public @Nullable Shader getShader() {
|
||||
return fillPaint.getShader();
|
||||
}
|
||||
|
||||
private static Point cornerPrime(@NonNull Point origin, @NonNull Point corner, float degrees) {
|
||||
return new Point(xPrime(origin, corner, Math.toRadians(degrees)), yPrime(origin, corner, Math.toRadians(degrees)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user