Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40165936 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder_ndk: consider empty result as false"

parents dd99c310 9facfce6
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -99,6 +99,7 @@ std::optional<bool> AIBinder::associateClassInternal(const AIBinder_Class* clazz
    if (set) {
    if (set) {
        // if this is a local object, it's not one known to libbinder_ndk
        // if this is a local object, it's not one known to libbinder_ndk
        mClazz = clazz;
        mClazz = clazz;
        return true;
    }
    }


    return {};
    return {};
@@ -127,7 +128,7 @@ bool AIBinder::associateClass(const AIBinder_Class* clazz) {
        return false;
        return false;
    }
    }


    return associateClassInternal(clazz, newDescriptor, true).value_or(true);
    return associateClassInternal(clazz, newDescriptor, true).value();
}
}


ABBinder::ABBinder(const AIBinder_Class* clazz, void* userData)
ABBinder::ABBinder(const AIBinder_Class* clazz, void* userData)