-
Notifications
You must be signed in to change notification settings - Fork 247
Revised snippets for consistency. #579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Did you try compiling this code? I just tried on my machine and I got an error:
I think that's because Just a reminder, the checks don't currently run against code in androidTest, so you can't count on Github to tell you the code compiles. |
Thanks, Andrew, for finding this. Try it now. Builds locally. |
Thanks! Looks fine to me, the code compiles for me too. (I don't think I have privileges to approve a pull request here, but Alex can do that, I assume?) Just checking -- this last commit is a change to the code in the marked region (the code that shows up on the DAC page). Do you need to change the other Java snippet to match? (the snippet where you show how to define isLetterboxed()?) |
Not sure what you mean, Andrew, The class that defines is letterboxed() is a helper class. It's not a snippet that's pulled from GitHub. But that class is added by this PR. There was just a method before. |
What I mean is, in the latest commit, you've changed But since you have an SME reviewing this CL, I'll let the two of you work that out! |
I see what you mean now. Good point. The |
misc/src/androidTest/java/com/example/snippets/DeviceCompatibilityModeTestJavaSnippets.java
Outdated
Show resolved
Hide resolved
…lityModeTestJavaSnippets.java Co-authored-by: Alex Vanyo <[email protected]>
misc/src/androidTest/java/com/example/snippets/DeviceCompatibilityModeTestJavaSnippets.java
Outdated
Show resolved
Hide resolved
…lityModeTestJavaSnippets.java Co-authored-by: Alex Vanyo <[email protected]>
Revised snippets for consistency and correctness.