File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
misc/src/androidTest/java/com/example/snippets Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2020import androidx .test .core .app .ActivityScenario ;
2121import androidx .test .ext .junit .rules .ActivityScenarioRule ;
2222import org .junit .Rule ;
23+ import org .junit .Test ;
2324import static org .junit .Assert .assertFalse ;
2425
2526public class DeviceCompatibilityModeTestJavaSnippets {
2627
2728 // [START android_device_compatibility_mode_assert_isLetterboxed_java]
28- @ Test
2929 @ Rule
3030 public ActivityScenarioRule <MainActivity > rule = new ActivityScenarioRule <>(MainActivity .class );
3131
@@ -41,6 +41,7 @@ public void activity_launched_notLetterBoxed() {
4141
4242
4343 // Method used by snippets.
44+ @ Test
4445 public boolean isLetterboxed (Activity activity ) {
4546 return true ;
4647 }
You can’t perform that action at this time.
0 commit comments