Revert "frameworks/base: Fix the random UI corruption"

This reverts commit 1a1bf99db608117451499052c8b3ab6299db2e3c.