diff --git a/gallery/build.properties b/gallery/build.properties index b11415b..bc1f7dc 100644 --- a/gallery/build.properties +++ b/gallery/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Tue Apr 28 16:09:27 GMT 2026 +#Tue Apr 28 17:22:34 GMT 2026 stageCount=10 libraryProject= baseVersion=15.0 publishVersion=15.0.9 -buildCount=17 +buildCount=18 baseBetaVersion=15.0.10 diff --git a/gallery/src/main/java/cc/winboll/studio/gallery/AlbumAdapter.java b/gallery/src/main/java/cc/winboll/studio/gallery/AlbumAdapter.java index 2a23ac2..fa435bd 100644 --- a/gallery/src/main/java/cc/winboll/studio/gallery/AlbumAdapter.java +++ b/gallery/src/main/java/cc/winboll/studio/gallery/AlbumAdapter.java @@ -130,7 +130,7 @@ public class AlbumAdapter extends RecyclerView.Adapter private void showContextMenu(View view, final Album album) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(view.getContext()); builder.setTitle(album.getName()); - boolean isPinned = pinnedDbHelper != null && pinnedDbHelper.isPinned(album.getPath()); + final boolean isPinned = pinnedDbHelper != null && pinnedDbHelper.isPinned(album.getPath()); String[] items = isPinned ? new String[]{"取消置顶"} : new String[]{"置顶"}; builder.setItems(items, new android.content.DialogInterface.OnClickListener() { @Override @@ -252,4 +252,4 @@ private void showContextMenu(View view, final Album album) { imageCount = itemView.findViewById(R.id.image_count); } } -} \ No newline at end of file +} diff --git a/gallery/src/main/java/cc/winboll/studio/gallery/ImageAdapter.java b/gallery/src/main/java/cc/winboll/studio/gallery/ImageAdapter.java index d607637..833a307 100644 --- a/gallery/src/main/java/cc/winboll/studio/gallery/ImageAdapter.java +++ b/gallery/src/main/java/cc/winboll/studio/gallery/ImageAdapter.java @@ -118,7 +118,7 @@ public class ImageAdapter extends RecyclerView.Adapter notifyDataSetChanged(); } - private void showContextMenu(View view, final int position) { + private void showContextMenu(final View view, final int position) { final String imagePath = imagePaths.get(position); final Uri imageUri = imageUrls.get(position); final boolean[] isPinned = {pinnedDbHelper != null && pinnedDbHelper.isPinned(imagePath)}; @@ -244,4 +244,4 @@ public class ImageAdapter extends RecyclerView.Adapter coverIcon = itemView.findViewById(R.id.cover_icon); } } -} \ No newline at end of file +}