Fix the activity leak issue

Fix the activity leak issue by removing the the messages in the handler.

Bug: 332876871
Test: atest ViewRootImplTest
Change-Id: I226941bf58a95dc8d7197b05569accc515ed424d
1 file changed