Use AsyncTask to update the history in the background.

Part of http://b/issue?id=2485421

Change-Id: Iccb2c3fc22e14eb1eb88d98ebb4499df14ffb511
1 file changed