Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions libredex/DexTypeEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ bool implements(const DexClass* cls, const DexType* intf) {
if (is_interface(cls)) {
return false;
}
for (const auto interface : cls->get_interfaces()->get_type_list()) {
if (interface == intf) {
return true;
auto parent = cls;
while (parent) {
for (const auto interface : parent->get_interfaces()->get_type_list()) {
if (interface == intf) {
return true;
}
}
parent = type_class(parent->get_super_class());
}
return false;
}
Expand Down