aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-03-22 13:32:09 +0000
committerGravatar Yue Gan <yueg@google.com>2017-03-22 15:11:48 +0000
commit1e18045ed9d6ab9c945cec69286a7d8bd288a507 (patch)
tree857cccf710fc68e259e30cf2e15a21ea37e98e6e /src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java
parent81d3c3eccdc92d2c047b7c066ff6d7acdc33c113 (diff)
Filter android_binary resources by screen density in the analysis phase
In addition to filtering android_binary resources by resource_configuration_filters, we also filter by densities. Doing this in analysis rather than execution should also result in a speed-up as there's no need to copy files unwanted for actions to use. This behavior is controlled by the same object and flags that already control resource configuration filtering, simplifying the code. -- PiperOrigin-RevId: 150871620 MOS_MIGRATED_REVID=150871620
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java b/src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java
index c89de68856..a18daa0027 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/ResourceContainer.java
@@ -128,7 +128,7 @@ public abstract class ResourceContainer {
/**
* Returns a copy of this container with filtered resources. The original container is unchanged.
*/
- public ResourceContainer filter(ResourceConfigurationFilter filter) {
+ public ResourceContainer filter(ResourceFilter filter) {
return toBuilder().setResources(filter.filter(getResources())).build();
}