Skip to content

Commit

Permalink
6.6.0 - Fix7 - 兼容低版本 JDK (< 22)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMonster003 committed Dec 2, 2024
1 parent 9769950 commit 09c1069
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void initScriptListRecyclerView() {
ExplorerView explorerView = binding.scriptList;
String workingDirPath = WorkingDirectoryUtils.getPath();
explorerView.setExplorer(mExplorer, ExplorerDirPage.createRoot(workingDirPath));
explorerView.setOnItemClickListener((_, file) -> {
explorerView.setOnItemClickListener((view, file) -> {
mSelectedScriptFilePath = file.getPath();
finish();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public void bind(Object item, int position) {
if (!(item instanceof ExplorerItem explorerItem)) return;
mExplorerItem = explorerItem;
listFileBinding.name.setText(ExplorerViewHelper.getDisplayName(fileChooseListView.getContext(), explorerItem));
listFileBinding.item.setOnClickListener(_ -> listFileBinding.checkbox.toggle());
listFileBinding.checkbox.setOnCheckedChangeListener((_, _) -> {
listFileBinding.item.setOnClickListener(view -> listFileBinding.checkbox.toggle());
listFileBinding.checkbox.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (listFileBinding.checkbox.isChecked()) {
fileChooseListView.check(mExplorerItem.toScriptFile(), getAdapterPosition());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public void bind(Object item, int position) {
} else {
binding.checkbox.setVisibility(View.GONE);
}
binding.checkbox.setOnCheckedChangeListener((_, _) -> {
binding.checkbox.setOnCheckedChangeListener((listener, isChecked) -> {
if (binding.checkbox.isChecked()) {
fileChooseListView.check(mExplorerPage.toScriptFile(), getAdapterPosition());
} else {
fileChooseListView.getSelectedFiles().remove(mExplorerPage.toScriptFile());
}
});
binding.item.setOnClickListener(_ -> fileChooseListView.enterDirectChildPage(mExplorerPage));
binding.item.setOnClickListener(view -> fileChooseListView.enterDirectChildPage(mExplorerPage));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void bind(Task task) {
.setFillTransparent();
itemBinding.name.setText(task.getName());
itemBinding.taskListFilePath.setText(task.getDesc());
itemBinding.stop.setOnClickListener(_ -> {
itemBinding.stop.setOnClickListener(view -> {
if (mTask != null) {
mTask.cancel();
}
Expand Down Expand Up @@ -267,7 +267,7 @@ private static class TaskGroupViewHolder extends ParentViewHolder<TaskGroup, Tas
super(itemView);
title = itemView.findViewById(R.id.title);
icon = itemView.findViewById(R.id.icon);
itemView.setOnClickListener(_ -> {
itemView.setOnClickListener(view -> {
if (isExpanded()) {
collapseView();
} else {
Expand Down
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Mon Dec 02 18:03:28 CST 2024
BUILD_TIME=1733133808639
#Mon Dec 02 18:24:43 CST 2024
BUILD_TIME=1733135083804
COMPILE_SDK_VERSION=34
JAVA_VERSION=23
JAVA_VERSION_MIN_RADICAL=0
Expand Down

0 comments on commit 09c1069

Please sign in to comment.