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

Fall back to Android's implementation of getResourcesForApplication #4969

Merged
merged 1 commit into from
May 16, 2019

Conversation

copybara-robolectric
Copy link
Contributor

Fall back to Android's implementation of getResourcesForApplication

PackageManager.getResourcesForApplication can be used on an Android device
to get the resources for a not-installed apk, but it only works for
installed apks in robolectric.

This falls back to the platform implementation for not-installed apks,
while maintaining the existing functionality for installed apks.

@copybara-robolectric copybara-robolectric force-pushed the piper_246042251 branch 4 times, most recently from 5a2cfcb to 5dd09fd Compare May 13, 2019 23:02
@copybara-robolectric copybara-robolectric force-pushed the piper_246042251 branch 3 times, most recently from 2ec60ff to c2e93df Compare May 16, 2019 21:39
PackageManager.getResourcesForApplication can be used on an Android device
to get the resources for a not-installed apk, but it only works for
installed apks in robolectric.

This falls back to the platform implementation for not-installed apks,
while maintaining the existing functionality for installed apks.

This change only affects the behavior in binary resource mode. In legacy
resource mode, there should be no change in behavior.

PiperOrigin-RevId: 248604936
@copybara-robolectric copybara-robolectric merged commit ba556d8 into master May 16, 2019
@hoisie hoisie deleted the piper_246042251 branch July 13, 2020 05:39
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.

1 participant