diff options
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
-rw-r--r-- | libs/gui/DisplayEventDispatcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/DisplayEventDispatcher.cpp b/libs/gui/DisplayEventDispatcher.cpp index 6f238859a4..94aaa04b43 100644 --- a/libs/gui/DisplayEventDispatcher.cpp +++ b/libs/gui/DisplayEventDispatcher.cpp @@ -59,7 +59,8 @@ status_t DisplayEventDispatcher::initialize() { } if (mLooper != nullptr) { - int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, this, NULL); + int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, + sp<LooperCallback>::fromExisting(this), NULL); if (rc < 0) { return UNKNOWN_ERROR; } |