Source:
<code>private void tryToLoadWebview(WebView webView){ if ( callback != null ) callback.startProcess(); if ( unit != null) { if ( unit.isGraded() || unit.isGradedSubDAG() ){ getView().findViewById(R.id.webview_header_text).setVisibility(View.VISIBLE); } else { getView().findViewById(R.id.webview_header_text).setVisibility(View.GONE); } PrefManager pref = new PrefManager(getActivity(), PrefManager.Pref.LOGIN); AuthResponse auth = pref.getCurrentAuth(); Map<String, String> map = new HashMap<String, String>(); if (auth == null || !auth.isSuccess()) { String token = pref.getString(PrefManager.Key.AUTH_TOKEN_SOCIAL); if (token != null) { map.put("Authorization", token); } } else { map.put("Authorization", String.format("%s %s", auth.token_type, auth.access_token)); } Long lastRefresh = pref.getLong(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID_REFRESH_TIME); Long time = pref.getLong(PrefManager.Key.AUTH_ASSESSMENT_SESSION_EXPIRATION); String sessionid = pref.getString(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID); Long curTime = new Date().getTime(); <START> webView.loadUrl(Api.getSessionTokenExchangeUrl(), map); <END> if ( lastRefresh + 60000 > curTime) { map.put("Cookie", PrefManager.Key.SESSION_ID + "=" + sessionid ); webView.loadUrl(unit.getBlockUrl(), map); } else { if ( time < new Date().getTime() || TextUtils.isEmpty(sessionid) ){ pref.put(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID_REFRESH_TIME, curTime); webView.loadUrl(Api.getSessionTokenExchangeUrl(), map); } else { map.put("Cookie", PrefManager.Key.SESSION_ID + "=" + sessionid ); webView.loadUrl(unit.getBlockUrl(), map); } } } }</code><technical_language>Is this line meant here? load load again</technical_language>

Target:
private void tryToLoadWebview(WebView webView){ if ( callback != null ) callback.startProcess(); if ( unit != null) { if ( unit.isGraded() || unit.isGradedSubDAG() ){ getView().findViewById(R.id.webview_header_text).setVisibility(View.VISIBLE); } else { getView().findViewById(R.id.webview_header_text).setVisibility(View.GONE); } PrefManager pref = new PrefManager(getActivity(), PrefManager.Pref.LOGIN); AuthResponse auth = pref.getCurrentAuth(); Map<String, String> map = new HashMap<String, String>(); if (auth == null || !auth.isSuccess()) { String token = pref.getString(PrefManager.Key.AUTH_TOKEN_SOCIAL); if (token != null) { map.put("Authorization", token); } } else { map.put("Authorization", String.format("%s %s", auth.token_type, auth.access_token)); } Long lastRefresh = pref.getLong(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID_REFRESH_TIME); Long sessionIdExpirationDate = pref.getLong(PrefManager.Key.AUTH_ASSESSMENT_SESSION_EXPIRATION); String sessionId = pref.getString(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID); Long curTime = new Date().getTime(); if ( lastRefresh + 60000 > curTime) { map.put("Cookie", PrefManager.Key.SESSION_ID + "=" + sessionId ); webView.loadUrl(unit.getBlockUrl(), map); } else { if ( sessionIdExpirationDate < curTime || TextUtils.isEmpty(sessionId) ){ pref.put(PrefManager.Key.AUTH_ASSESSMENT_SESSION_ID_REFRESH_TIME, curTime); webView.loadUrl(Api.getSessionTokenExchangeUrl(), map); } else { map.put("Cookie", PrefManager.Key.SESSION_ID + "=" + sessionId ); webView.loadUrl(unit.getBlockUrl(), map); } } } }