public void updateUIToScanningState() { mPullToRefreshLayout.setRefreshing(scanning); supportInvalidateOptionsMenu(); String html; if (scanning) { html = getString(R.string.scan_empty_text); } else { html = getString(R.string.no_passes_empty_text); } emptyView.setText(Html.fromHtml(html)); emptyView.setMovementMethod(LinkMovementMethod.getInstance()); }
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); mPullToRefreshLayout.getHeaderTransformer().onConfigurationChanged(getActivity(), newConfig); }