Skip to content

Commit

Permalink
Merge pull request #168 from marlonlu/dev
Browse files Browse the repository at this point in the history
Fix Website can't receive callback when Cache-Offline is store.
  • Loading branch information
vasdeveloper authored Nov 23, 2017
2 parents 3fc0099 + 09e1992 commit c903273
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private void handleClientCoreMessage_TemplateChange(Message msg) {
setResult(SONIC_RESULT_CODE_TEMPLATE_CHANGE, SONIC_RESULT_CODE_TEMPLATE_CHANGE, false);
} else {
SonicUtils.log(TAG, Log.INFO, "handleClientCoreMessage_TemplateChange:not refresh.");
setResult(SONIC_RESULT_CODE_TEMPLATE_CHANGE, SONIC_RESULT_CODE_HIT_CACHE, false);
setResult(SONIC_RESULT_CODE_TEMPLATE_CHANGE, SONIC_RESULT_CODE_HIT_CACHE, true);
}
} else {
SonicUtils.log(TAG, Log.INFO, "handleClientCoreMessage_TemplateChange:oh yeah template change hit 304.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ protected void handleFlow_TemplateChange(String newHtml) {
if (SonicUtils.needRefreshPage(cacheOffline)) {
Bundle data = new Bundle();
data.putBoolean(TEMPLATE_CHANGE_BUNDLE_PARAMS_REFRESH, true);
msg.setData(data);
} else {
msg.arg2 = SONIC_RESULT_CODE_HIT_CACHE;
}
}
isCachePendingStream.set(false);
Expand Down

0 comments on commit c903273

Please sign in to comment.