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/android/view/Display: add methods
This commit is contained in:
@@ -14,6 +14,11 @@ public final class Display {
|
||||
outMetrics.heightPixels = this.window_height;
|
||||
}
|
||||
|
||||
public void getRealMetrics(DisplayMetrics outMetrics) {
|
||||
getMetrics(outMetrics); // probably?
|
||||
}
|
||||
|
||||
|
||||
public int getWidth() {
|
||||
return window_width;
|
||||
}
|
||||
@@ -22,6 +27,14 @@ public final class Display {
|
||||
return window_height;
|
||||
}
|
||||
|
||||
public int getRawWidth() {
|
||||
return window_width; // what's the difference?
|
||||
}
|
||||
|
||||
public int getRawHeight() {
|
||||
return window_height; // what's the difference?
|
||||
}
|
||||
|
||||
public int getRotation() {
|
||||
return 0 /*ROTATION_0*/;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user