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
findViewById(): only search among child views
also set default content view in Window
This commit is contained in:
@@ -239,7 +239,9 @@ public class Activity extends ContextWrapper implements Window.Callback {
|
||||
|
||||
public <T extends android.view.View> T findViewById(int id) {
|
||||
System.out.println("- findViewById - asked for view with id: " + id);
|
||||
View view = View.view_by_id.get(id);
|
||||
View view = null;
|
||||
if (window.contentView != null)
|
||||
view = window.contentView.findViewById(id);
|
||||
System.out.println("- findViewById - found this: " + view);
|
||||
|
||||
return (T)view;
|
||||
|
||||
Reference in New Issue
Block a user