Skip to content
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

Fix example project so it runs on Android devices older than Android API 24 (Android 7.0) #1367

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Jun 18, 2021

See commit-by-commit for details

Testing

  • Tested on an Android 4.4 emulator to confirm the example if functional.
    • Has some visual issues with dialogs on this old of a version but usable and no longer crashes.

This change is Reviewable

* ic_launcher_foreground.xml is a required resource for the example
project and doesn't contain any API level 24 features so moved to
the standard drawable folder for all versions of Android.
* ripple requires Android API 21 (Android 5.0) so used shape instead
for backwards compatibility.
* Moved the existing drawable using ripple to drawable-v21 folder so
these can be used for that API and up to still take advantage of the
feature in the example project.
* Confirmed the example app now runs on an Android 4.4 emulator.
@jkasten2 jkasten2 requested review from Jeasmine and emawby June 18, 2021 07:29
@jkasten2 jkasten2 merged commit b328dbf into main Jun 21, 2021
@jkasten2 jkasten2 deleted the fix/example_compat_with_older_than_api_24 branch June 21, 2021 03:07
@Jeasmine Jeasmine mentioned this pull request Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants