-
Notifications
You must be signed in to change notification settings - Fork 502
adapt for play store #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
adapt for play store #105
Changes from 1 commit
611aa66
56ee969
97cdfea
b2e3a79
8c2a42d
a716625
4d0beff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,9 +82,16 @@ public void onChanged(Boolean aBoolean) { | |
| btAccessibilityPermission.setOnClickListener(new View.OnClickListener() { | ||
| @Override | ||
| public void onClick(View v) { | ||
| Intent intent_abs = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS); | ||
| intent_abs.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | ||
| startActivity(intent_abs); | ||
| new androidx.appcompat.app.AlertDialog.Builder(getContext()) | ||
| .setTitle("重要说明 (Prominent Disclosure)") | ||
| .setMessage("本应用需要使用无障碍服务(AccessibilityService API)来帮您在其他应用中自动查找并点击屏幕上的指定控件(例如各类重复性的按钮)。\n\n本应用属于自动化工具,所有的点击操作均基于您的配置和触发策略。\n本应用完全离线运行,不会收集、存储、传输或分享您的任何个人数据及敏感信息。\n\n请点击“同意”以继续前往系统设置中授权此服务。") | ||
| .setPositiveButton("同意", (dialog, which) -> { | ||
| Intent intent_abs = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS); | ||
| intent_abs.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | ||
| startActivity(intent_abs); | ||
| }) | ||
| .setNegativeButton("拒绝", null) | ||
| .show(); | ||
|
Comment on lines
+85
to
+94
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| }); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ android.enableJetifier=true | |
| # Set these in local.properties or as environment variables | ||
| KEYSTORE_PASSWORD=touchhelper | ||
| KEY_ALIAS=touchhelper | ||
| KEY_PASSWORD=touchhelper | ||
| KEY_PASSWORD=touchhelperandroid.suppressUnsupportedCompileSdk=35 | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value
150is a magic number. It's better to define it as a named constant to improve readability and maintainability, for example:private static final int CONTENT_CHANGED_THROTTLE_INTERVAL_MS = 150;at the class level.