Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a45ee970 authored by vadimt's avatar vadimt
Browse files

Recycling accessibility event as the docs require

Change-Id: I94a2ea7ab93690d0216110b5f77f0116177788a7
parent a11ff18d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -519,7 +519,9 @@ public final class LauncherInstrumentation {
                    mInstrumentation.getUiAutomation().executeAndWaitForEvent(
                            command, eventFilter, WAIT_TIME_MS);
            assertNotNull("executeAndWaitForEvent returned null (this can't happen)", event);
            return event.getParcelableData();
            final Parcelable parcelableData = event.getParcelableData();
            event.recycle();
            return parcelableData;
        } catch (TimeoutException e) {
            fail(message.get());
            return null;