Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #273 from TKaxv-7S/dev
Browse files Browse the repository at this point in the history
dev合并至release
  • Loading branch information
TKaxv-7S authored Jul 24, 2024
2 parents b416270 + 52887ff commit c9b763b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/web/js/index.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private JSONObject querySelfHome() {
userHomeObject = new JSONObject(AntForestRpcCall.queryHomePage());
long end = System.currentTimeMillis();
long serverTime = userHomeObject.getLong("now");
int offsetTime = offsetTimeMath.nextInteger((int) (start + (end - start) * 2 / 3 - serverTime));
int offsetTime = offsetTimeMath.nextInteger((int) ((start + end) / 2 - serverTime));
Log.i("服务器时间:" + serverTime + ",本地与服务器时间差:" + offsetTime);
} catch (Throwable t) {
Log.printStackTrace(t);
Expand All @@ -581,7 +581,7 @@ private JSONObject queryFriendHome(String userId) {
userHomeObject = new JSONObject(AntForestRpcCall.queryFriendHomePage(userId));
long end = System.currentTimeMillis();
long serverTime = userHomeObject.getLong("now");
int offsetTime = offsetTimeMath.nextInteger((int) (start + (end - start) * 2 / 3 - serverTime));
int offsetTime = offsetTimeMath.nextInteger((int) ((start + end) / 2 - serverTime));
Log.i("服务器时间:" + serverTime + ",本地与服务器时间差:" + offsetTime);
} catch (Throwable t) {
Log.printStackTrace(t);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,10 @@ protected void onResume() {
WebSettings settings = mWebView.getSettings();
if (intent != null) {
if (intent.getBooleanExtra("nextLine", true)) {
settings.setTextZoom(90);
settings.setSupportZoom(false);
settings.setLoadWithOverviewMode(false);
settings.setUseWideViewPort(true);
settings.setTextZoom(85);
settings.setUseWideViewPort(false);
} else {
settings.setTextZoom(100);
settings.setSupportZoom(true);
settings.setUseWideViewPort(true);
}
uri = intent.getData();
Expand All @@ -78,7 +75,6 @@ protected void onResume() {
return;
}
settings.setTextZoom(100);
settings.setSupportZoom(true);
settings.setUseWideViewPort(true);
}

Expand Down

0 comments on commit c9b763b

Please sign in to comment.