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
View: handle all invalidate methods
This commit is contained in:
@@ -945,8 +945,12 @@ public class View extends Object {
|
|||||||
|
|
||||||
protected void onFinishInflate() {}
|
protected void onFinishInflate() {}
|
||||||
|
|
||||||
public void invalidate(Rect dirty) {}
|
public void invalidate(Rect dirty) {
|
||||||
public void invalidate(int l, int t, int r, int b) {}
|
nativeInvalidate(widget);
|
||||||
|
}
|
||||||
|
public void invalidate(int l, int t, int r, int b) {
|
||||||
|
nativeInvalidate(widget);
|
||||||
|
}
|
||||||
public void invalidate() {
|
public void invalidate() {
|
||||||
nativeInvalidate(widget);
|
nativeInvalidate(widget);
|
||||||
}
|
}
|
||||||
@@ -1018,13 +1022,18 @@ public class View extends Object {
|
|||||||
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
requestLayout();
|
invalidate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void postInvalidate(int left, int top, int right, int bottom) {
|
public void postInvalidate(final int left, final int top, final int right, final int bottom) {
|
||||||
Slog.w(TAG, "postInvalidate(" + left + "," + top + "," + right + "," + bottom + ") called");
|
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
invalidate(left, top, right, bottom);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOnGenericMotionListener(View.OnGenericMotionListener l) {}
|
public void setOnGenericMotionListener(View.OnGenericMotionListener l) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user