@Override
  public void onDestroy() {
    super.onDestroy();

    shaderView.renderer.errorListener = null;
    shaderView.renderer.fpsListener = null;

    // close cursor
    if (adapter != null) adapter.changeCursor(null);
  }
 private void updateAdapter() {
   adapter.changeCursor(dataSource.queryAll());
   resetFps();
 }