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
Window: directly attach the decorView
This commit is contained in:
@@ -37,6 +37,7 @@ public class Window {
|
||||
this.context = context;
|
||||
decorView = new FrameLayout(context);
|
||||
decorView.setId(android.R.id.content);
|
||||
decorView.onAttachedToWindow();
|
||||
}
|
||||
|
||||
public void addFlags(int flags) {}
|
||||
@@ -58,11 +59,6 @@ public class Window {
|
||||
}
|
||||
}
|
||||
|
||||
public void attached() {
|
||||
if (decorView != null)
|
||||
decorView.onAttachedToWindow();
|
||||
}
|
||||
|
||||
public View getDecorView() {
|
||||
return decorView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user