Handler::Handler(Looper& looper) { mMessageQueue = &looper.myMessageQueue(); mRunnableQueue = &looper.myRunnableQueue(); }
Handler::Handler() { Looper* looper = Looper::myLooper(); Assert::assertNotNull(looper); mMessageQueue = &looper->myMessageQueue(); mRunnableQueue = &looper->myRunnableQueue(); }