Ported HistoryActivity to scala.