protected void updateViewForUser(View v, boolean loading, boolean pageNotFound) {
    TextView tv = (TextView) v.findViewById(R.id.txtPageNotFound);
    HighlightingImageView iv = (HighlightingImageView) v.findViewById(R.id.page_image);

    if ((loading) || (pageNotFound)) {
      if (QuranSettings.getInstance().isNightMode()) {
        tv.setTextColor(Color.WHITE);
      }
      tv.setText(loading ? R.string.pageLoading : R.string.pageNotFound);
      if (!loading && mHasBeenOutOfMemory != null && mHasBeenOutOfMemory)
        tv.setText(R.string.couldNotLoadPage);
      tv.setVisibility(View.VISIBLE);
      iv.setVisibility(View.GONE);
    } else {
      iv.adjustNightMode();
      tv.setVisibility(View.GONE);
      iv.setVisibility(View.VISIBLE);
    }
  }