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
add APIs needed for non legacy NewPipe version
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package android.view;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.util.DisplayMetrics;
|
||||
|
||||
public final class Display {
|
||||
@@ -54,4 +55,8 @@ public final class Display {
|
||||
public long getPresentationDeadlineNanos() {
|
||||
return 0; // what else...
|
||||
}
|
||||
|
||||
public void getSize(Point size) {
|
||||
size.set(getWidth(), getHeight());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user