Skip to content

Commit 716cd69

Browse files
committed
try 2
1 parent 5d10614 commit 716cd69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

android-refimpl-app/app/src/androidTest/java/com/zoffcc/applications/trifa/JavaFriendTester.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import androidx.test.filters.LargeTest;
3636
import androidx.test.rule.GrantPermissionRule;
3737
import androidx.test.runner.lifecycle.ActivityLifecycleMonitorRegistry;
38+
import androidx.test.runner.screenshot.Screenshot;
3839

3940
import static androidx.test.InstrumentationRegistry.getTargetContext;
4041
import static androidx.test.core.graphics.BitmapStorage.writeToTestStorage;
@@ -212,7 +213,7 @@ else if (cur_act.equals("SetPasswordActivity"))
212213
screenshot("006");
213214
wait_(10);
214215

215-
screenshot("007");
216+
screenshot_full("007");
216217
wait_(10);
217218

218219
onView(withId(R.id.decline_button)).perform(click());
@@ -250,7 +251,7 @@ private static void screenshot_full(final String num)
250251
{
251252
try
252253
{
253-
writeToTestStorage(captureToBitmap(onView(isRoot())), "test_" + num);
254+
writeToTestStorage(Screenshot.capture().getBitmap(), "test_" + num);
254255
Log.i(TAG, "capture full screenshot: "+ "test_" + num + ".png");
255256
}
256257
catch (Exception e)

0 commit comments

Comments
 (0)