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: add misc stuff needed by Teeter
note that Teeter still needs more stuff before it will work
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.util;
|
||||
|
||||
import android.view.Display;
|
||||
|
||||
/**
|
||||
* A structure describing general information about a display, such as its
|
||||
* size, density, and font scaling.
|
||||
@@ -219,8 +221,8 @@ public class DisplayMetrics {
|
||||
}
|
||||
|
||||
public void setToDefaults() {
|
||||
widthPixels = 0;
|
||||
heightPixels = 0;
|
||||
widthPixels = Display.window_width;
|
||||
heightPixels = Display.window_height;
|
||||
density = DENSITY_DEVICE / (float)DENSITY_DEFAULT;
|
||||
densityDpi = DENSITY_DEVICE;
|
||||
scaledDensity = density;
|
||||
|
||||
Reference in New Issue
Block a user