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

Commit 7a44b70

Browse files
committed
优化 日志显示
1 parent ad34006 commit 7a44b70

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

app/src/main/assets/web/js/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/tkaxv7s/xposed/sesame/model/task/greenFinance/GreenFinance.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ private void doTick(final String type) {
215215
continue;
216216
}
217217
str = GreenFinanceRpcCall.submitTick(type, jsonObject.getString("behaviorCode"));
218-
TimeUtil.sleep(1000);
218+
TimeUtil.sleep(1500);
219219
JSONObject object = new JSONObject(str);
220220
if (!object.optBoolean("success")
221221
|| !String.valueOf(true).equals(JsonUtil.getValueByPath(object, "result.result"))) {
222-
Log.i(TAG + ".doTick.submitTick", object.optString("resultDesc"));
223-
continue;
222+
Log.other("绿色经营📊[" + jsonObject.getString("title") + "]打卡失败");
223+
break;
224224
}
225225
Log.other("绿色经营📊[" + jsonObject.getString("title") + "]打卡成功");
226226
// Thread.sleep(executeIntervalInt);

app/src/main/java/tkaxv7s/xposed/sesame/ui/HtmlViewerActivity.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ protected void onResume() {
6161
WebSettings settings = mWebView.getSettings();
6262
if (intent != null) {
6363
if (intent.getBooleanExtra("nextLine", true)) {
64-
settings.setTextZoom(85);
65-
settings.setUseWideViewPort(false);
64+
settings.setTextZoom(90);
65+
settings.setSupportZoom(false);
66+
settings.setLoadWithOverviewMode(false);
67+
settings.setUseWideViewPort(true);
6668
} else {
6769
settings.setTextZoom(100);
70+
settings.setSupportZoom(true);
6871
settings.setUseWideViewPort(true);
6972
}
7073
uri = intent.getData();
@@ -75,6 +78,7 @@ protected void onResume() {
7578
return;
7679
}
7780
settings.setTextZoom(100);
81+
settings.setSupportZoom(true);
7882
settings.setUseWideViewPort(true);
7983
}
8084

app/src/main/res/layout/activity_html_viewer.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
<RelativeLayout
1010
android:layout_width="match_parent"
11-
android:layout_height="match_parent">
11+
android:layout_height="wrap_content">
1212

1313
<tkaxv7s.xposed.sesame.ui.MyWebView
1414
android:layout_width="match_parent"
15-
android:layout_height="match_parent"
15+
android:layout_height="wrap_content"
1616
android:id="@+id/mwv_webview" />
1717

1818
<ProgressBar
1919
android:layout_width="match_parent"
20-
style="?android:attr/progressBarStyleHorizontal"
2120
android:layout_height="wrap_content"
21+
style="?android:attr/progressBarStyleHorizontal"
2222
android:id="@+id/pgb_webview" />
2323

2424
</RelativeLayout>

0 commit comments

Comments
 (0)