public void addItem(Object data) { History history = new History(); history.getDataHashMap().put("planet", data); history.addToHistoryDB(); mHistoryList.add(0, history); mPlanetsList.add(0, history.createPlanet()); if (null != mOnItemAddHandler) { mOnItemAddHandler.onItemAdded(data); } }