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 stubs for WhatsApp support
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package android.view;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.graphics.Rect;
|
||||
import android.util.DisplayMetrics;
|
||||
|
||||
public final class Display {
|
||||
@@ -63,4 +64,8 @@ public final class Display {
|
||||
public void getRealSize(Point size) {
|
||||
getSize(size);
|
||||
}
|
||||
|
||||
public void getRectSize(Rect rect) {
|
||||
rect.set(0, 0, getWidth(), getHeight());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2199,4 +2199,8 @@ public class View implements Drawable.Callback {
|
||||
public void scrollBy(int x, int y) {
|
||||
scrollTo(scrollX + x, scrollY + y);
|
||||
}
|
||||
|
||||
public void setAccessibilityPaneTitle(CharSequence paneTitle) {}
|
||||
|
||||
public void setAccessibilityHeading(boolean heading) {}
|
||||
}
|
||||
|
||||
@@ -154,4 +154,8 @@ public class Window {
|
||||
public Transition getSharedElementReenterTransition() {
|
||||
return new Transition();
|
||||
}
|
||||
|
||||
public void setReturnTransition(Transition transition) {}
|
||||
|
||||
public void setEnterTransition(Transition transition) {}
|
||||
}
|
||||
|
||||
@@ -59,4 +59,8 @@ public class WindowInsets {
|
||||
public boolean isConsumed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public WindowInsets consumeDisplayCutout() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user