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

Commit 0d5a06a6 authored by Kevin Schoedel's avatar Kevin Schoedel
Browse files

Fix virtual touchpad re-attachment.

If the client crashes without detaching the virtual touchpad
and a new instance reconnects, it should take over the existing
device without attempting to configure it again.

Bug: 36051900
Test: no
Change-Id: I446f1bc7cb9c08f914b9bfc653857a97fdc7839c
parent e27fbca4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ binder::Status VirtualTouchpadService::attach() {
    // reported when the previous client performs any touchpad action.
    ALOGE("pid=%ld replaces %ld", static_cast<long>(pid),
          static_cast<long>(client_pid_));
    client_pid_ = pid;
    return binder::Status::ok();
  }
  client_pid_ = pid;
  if (const status_t error = touchpad_->Attach()) {