Loading app/build.gradle +2 −1 Original line number Original line Diff line number Diff line Loading @@ -97,7 +97,8 @@ dependencies { // Core library // Core library androidTestImplementation 'androidx.test:core:1.0.0' androidTestImplementation 'androidx.test:core:1.0.0' implementation "androidx.core:core-ktx:+" implementation "androidx.core:core-ktx:+" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" //implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" androidTestImplementation "androidx.appcompat:appcompat:1.1.0" } } Loading app/src/androidTest/java/com/facebook/testing/screenshot/ExampleScreenshotTest.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -40,6 +40,7 @@ public class ExampleScreenshotTest { * on the view. * on the view. */ */ LayoutInflater inflater = LayoutInflater.from(getApplicationContext()); //removed the first argument getInstrumentation(), LayoutInflater inflater = LayoutInflater.from(getApplicationContext()); //removed the first argument getInstrumentation(), getApplicationContext().setTheme(R.style.AppTheme); android.view.View view = inflater.inflate(R.layout.activity_notes_list_view, null, false); android.view.View view = inflater.inflate(R.layout.activity_notes_list_view, null, false); /* /* Loading Loading
app/build.gradle +2 −1 Original line number Original line Diff line number Diff line Loading @@ -97,7 +97,8 @@ dependencies { // Core library // Core library androidTestImplementation 'androidx.test:core:1.0.0' androidTestImplementation 'androidx.test:core:1.0.0' implementation "androidx.core:core-ktx:+" implementation "androidx.core:core-ktx:+" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" //implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" androidTestImplementation "androidx.appcompat:appcompat:1.1.0" } } Loading
app/src/androidTest/java/com/facebook/testing/screenshot/ExampleScreenshotTest.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -40,6 +40,7 @@ public class ExampleScreenshotTest { * on the view. * on the view. */ */ LayoutInflater inflater = LayoutInflater.from(getApplicationContext()); //removed the first argument getInstrumentation(), LayoutInflater inflater = LayoutInflater.from(getApplicationContext()); //removed the first argument getInstrumentation(), getApplicationContext().setTheme(R.style.AppTheme); android.view.View view = inflater.inflate(R.layout.activity_notes_list_view, null, false); android.view.View view = inflater.inflate(R.layout.activity_notes_list_view, null, false); /* /* Loading