-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix edge-to-edge enforcement check in ShadowCompatibility
Apps that target Android V and above will be required to support edge-to-edge content, where apps will be responsible for drawing content under the status and navigation bars: https://developer.android.com/about/versions/15/behavior-changes-15#edge-to-edge In framework code, this is primarily detected using CompatChanges.isChangeEnabled(ENFORCE_EDGE_TO_EDGE). However, this previously always returned true because CompatChanges.isChangeEnabled returns true by default in Robolectric. In real Android, CompatChanges.isChangeEnabled(ENFORCE_EDGE_TO_EDGE) only returns true when the target SDK is V or above. PiperOrigin-RevId: 629401576
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters