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

Commit d50a6ec0 authored by Wu-cheng Li's avatar Wu-cheng Li Committed by Android (Google) Code Review
Browse files

Merge "Remove setPreviewDisplay in CameraService::Client::~Client()."

parents e1ab2228 8d7a59c3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -336,11 +336,6 @@ CameraService::Client::~Client() {
    int callingPid = getCallingPid();
    LOG1("Client::~Client E (pid %d, this %p)", callingPid, this);

    // Clean up the ANativeWindow
    if (mSurface != 0) {
        setPreviewDisplay(0);
    }

    // set mClientPid to let disconnet() tear down the hardware
    mClientPid = callingPid;
    disconnect();