Skip to content

Commit ca04a86

Browse files
committed
修复bug
1 parent 862bb68 commit ca04a86

7 files changed

+5
-8
lines changed

app/release/app-release.apk

72 Bytes
Binary file not shown.

app/release/output-metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"type": "SINGLE",
1212
"filters": [],
1313
"attributes": [],
14-
"versionCode": 2,
15-
"versionName": "1.1",
14+
"versionCode": 3,
15+
"versionName": "1.2",
1616
"outputFile": "app-release.apk"
1717
}
1818
],

app/src/main/java/com/cjyyxn/screenfilter/FilterViewManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public FilterViewManager(Context c) {
3232

3333
layoutParams.type = WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY;
3434
// width 和 height 尽可能大,从而覆盖屏幕
35-
layoutParams.width = 1800;
35+
layoutParams.width = 3200;
3636
layoutParams.height = 3200;
3737
layoutParams.format = PixelFormat.TRANSLUCENT;
3838
layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |

app/src/main/java/com/cjyyxn/screenfilter/GlobalStatus.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ public static void setBrightness(float brightness) {
328328
* 触发屏幕截图
329329
* 先模拟上划操作,从而上拉任务栏
330330
* 延时后打开系统截图服务
331-
* 可能需要 500 ms
332331
*/
333332
public static void triggerScreenCap() {
334333
if (appAccessibilityService != null) {
@@ -361,7 +360,7 @@ public void onCompleted(GestureDescription gestureDescription) {
361360
new Handler(Looper.getMainLooper()).postDelayed(() -> {
362361
Log.d("ccjy", "开启系统截图服务");
363362
appAccessibilityService.performGlobalAction(GLOBAL_ACTION_TAKE_SCREENSHOT);
364-
}, 200);
363+
}, 500);
365364
}
366365
}
367366

app/src/main/java/com/cjyyxn/screenfilter/quicksetting/QuickSettingFilter.java

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public void run() {
4040
}
4141
}
4242
};
43-
// 每隔 0.1秒钟执行一次任务
4443
new Timer().schedule(task, 0, 1000);
4544
}
4645

app/src/main/java/com/cjyyxn/screenfilter/quicksetting/QuickSettingIntelligentBrightness.java

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public void run() {
4040
}
4141
}
4242
};
43-
// 每隔 0.1秒钟执行一次任务
4443
new Timer().schedule(task, 0, 1000);
4544
}
4645

app/src/main/java/com/cjyyxn/screenfilter/quicksetting/QuickSettingScreenShot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void onClick() {
1515
GlobalStatus.triggerScreenCap();
1616
new Handler(Looper.getMainLooper()).postDelayed(() -> {
1717
GlobalStatus.setTempControlMode(false);
18-
}, 800);
18+
}, 1300);
1919
}, 400);
2020
}
2121
}

0 commit comments

Comments
 (0)