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
unify View construction and measurement
No longer allow constructing Views without Context. Lets have only one onMeasure() method to unify behaviour
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package android.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.SurfaceHolder;
|
||||
|
||||
public class Window {
|
||||
@@ -49,7 +50,7 @@ public class Window {
|
||||
public View getDecorView() {
|
||||
if (contentView != null)
|
||||
return contentView;
|
||||
return new View(); // FIXME: this can probably backfire
|
||||
return new View(Context.this_application); // FIXME: this can probably backfire
|
||||
}
|
||||
|
||||
private native void set_widget_as_root(long native_window, long widget);
|
||||
|
||||
Reference in New Issue
Block a user