From a0e2458568bf9a20444fc28a585a1bced723adc0 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Fri, 20 Oct 2023 11:02:15 +0100 Subject: [PATCH] Satisfy the linter. --- .../briarproject/briar/android/PromoVideoTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/briar-android/src/androidTestScreenshot/java/org/briarproject/briar/android/PromoVideoTest.java b/briar-android/src/androidTestScreenshot/java/org/briarproject/briar/android/PromoVideoTest.java index fed98921f..90d7bebbc 100644 --- a/briar-android/src/androidTestScreenshot/java/org/briarproject/briar/android/PromoVideoTest.java +++ b/briar-android/src/androidTestScreenshot/java/org/briarproject/briar/android/PromoVideoTest.java @@ -62,7 +62,7 @@ public class PromoVideoTest extends ScreenshotTest { new ActivityScenarioRule<>(SplashScreenActivity.class); @Inject - protected ContactManager contactManager; + ContactManager contactManager; private OverlayView overlayView; @@ -212,7 +212,7 @@ public class PromoVideoTest extends ScreenshotTest { } // click on new contact - doItemClick(withId(R.id.recyclerView), 0); + doItemClick(withId(R.id.recyclerView)); sleep(DELAY_MEDIUM); @@ -263,15 +263,14 @@ public class PromoVideoTest extends ScreenshotTest { .perform(click()); } - private void doItemClick(final Matcher viewMatcher, int pos) + private void doItemClick(final Matcher viewMatcher) throws InterruptedException { if (isFilming) { onView(viewMatcher).perform( - actionOnItemAtPosition(pos, visualClick(overlayView))); + actionOnItemAtPosition(0, visualClick(overlayView))); sleep(500); } - onView(viewMatcher).perform( - actionOnItemAtPosition(pos, click())); + onView(viewMatcher).perform(actionOnItemAtPosition(0, click())); } private void closeKeyboard(final Matcher viewMatcher)