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

Commit f28d584f authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

ContextHubService: Don't change app handle on load am: b0604ecc

am: 0bffa9bd

Change-Id: I530554f083339ae6e1cbb706bef9ec9a7c389a11
parents 2b949b42 0bffa9bd
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -393,16 +393,8 @@ static jint add_app_instance(const hub_app_info *appInfo, uint32_t hubHandle,
    app_instance_info_s entry;
    assert(appInfo);

    const char *action = "Updated";
    if (db.appInstances.count(appInstanceHandle) == 0) {
        action = "Added";
        appInstanceHandle = generate_id();
        if (appInstanceHandle < 0) {
            ALOGE("Cannot find resources to add app instance %" PRId32,
                  appInstanceHandle);
            return -1;
        }
    }
    const char *action =
        (db.appInstances.count(appInstanceHandle) == 0) ? "Added" : "Updated";

    entry.appInfo = *appInfo;