Fixed occasional lag in UI.

Receiving the input occasionally lagged just before a new line was added
(at least on my Acer Iconia 501A - Android 4.0.3).