MCPcopy Create free account
hub / github.com/cinit/TMoe / EmptyStubSpan

Class EmptyStubSpan

app/src/main/java/cc/ioctl/tmoe/ui/util/EmptyStubSpan.java:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import androidx.annotation.Nullable;
9
10public class EmptyStubSpan extends ReplacementSpan {
11 @Override
12 public int getSize(@NonNull Paint paint, CharSequence text, int start, int end, @Nullable Paint.FontMetricsInt fm) {
13 return (int) paint.measureText(text, start, end);
14 }
15
16 @Override
17 public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint) {
18 // empty
19 }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected