Skip to content

Commit

Permalink
Fix to add BuiltinClassNameFilter to the end of the filter list
Browse files Browse the repository at this point in the history
  • Loading branch information
tmurakami committed May 16, 2017
1 parent 2330460 commit 8dd83f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void install(@NonNull Instrumentation instrumentation) {
*/
@NonNull
public static Builder builder(@NonNull Context context) {
return new Builder(context.getApplicationInfo()).classNameFilters(BuiltinClassNameFilter.INSTANCE);
return new Builder(context.getApplicationInfo());
}

/**
Expand Down Expand Up @@ -96,6 +96,7 @@ public Builder classNameFilters(@NonNull ClassNameFilter... filters) {
@NonNull
public DexOpener build() {
List<ClassNameFilter> filters = new ArrayList<>(classNameFilters);
filters.add(BuiltinClassNameFilter.INSTANCE);
ClassNameFilter filter = new ClassNameFilters(Collections.unmodifiableList(filters));
return new DexOpenerImpl(applicationInfo, filter, DexFileLoader.INSTANCE, DexClassFileFactory.INSTANCE);
}
Expand Down

0 comments on commit 8dd83f4

Please sign in to comment.