Commit c703008
authored
Fixing compile error in DeviceCompatibilityModeTestJavaSnippets (#575)
Happened to notice a typo in the file, but it still didn't compile when I fixed the
typo, so I made a second fix.
The typo was a missing semicolon at the "import AppCompatActivity" line. But after
I fixed that, I got an error complaining about `assertFalse(isLetterboxed(activity))`
because `isLetterboxed` is expecting an AppCompatActivity but `activity`
is a `MainActivity`. Changing `isLetterboxed` fixed the compile error and also
meant we don't import AppCompatActivity so the original typo goes away. [shrug emoji]
Is this fix okay?1 parent 1b043a4 commit c703008
File tree
1 file changed
+1
-2
lines changed- misc/src/androidTest/java/com/example/snippets
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
0 commit comments