Assigned
Status Update
Comments
bl...@google.com <bl...@google.com> #2
Automated by Blunderbuss job android-tooltopia-uiautomator-blunderbuss-autoassigner for config uiautomator_config for component 1237242.
yi...@google.com <yi...@google.com> #3
I couldn't reproduce the failure:
UiObject2 obj1 = mDevice.findObject(By.focused(true));
mDevice.pressDPadRight();
mDevice.waitForIdle();
UiObject2 obj2 = mDevice.findObject(By.focused(true));
assertFalse(obj1.equals(obj2));
Device: TV emulator
API version: 34
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1):
Version used: 2.4.0-alpha01
I'm using
device.findObject(By.focused(true))
in order to find the currently focused ui element for an Android TV application.Often times when I scroll and then try to get the focused object again, it does not update.
For example
will result in
focused == focused2