+                if(photoList.size()<300){
77
+                    groupPhotoList.addAll(photoList);
78
+                }else{
79
+                    if(position>10){
80
+                        groupPhotoList.addAll(photoList.subList(position-9,position+290>photoList.size()?photoList.size():position+290));
81
+                    }else{
82
+                        groupPhotoList.addAll(photoList.subList(0,300));
83
+                    }
84
+                }
85
+                intent.putExtra("list",groupPhotoList);
75 86
                 intent.putExtra("photo_item",photoItem);
87
+                intent.putExtra("fromGroup",fromGroup);
76 88
                 context.startActivity(intent);
77 89
             }
78 90
         });
@@ -123,4 +135,8 @@ public class DetailPhotoPageAdapter extends PagerAdapter {
123 135
         notifyDataSetChanged();
124 136
     }
125 137
 
138
+    public void setFromGroup(boolean fromGroup){
139
+        this.fromGroup = fromGroup;
140
+    }
141
+
126 142
 }

+ 5 - 0
app/src/main/java/ai/pai/client/adapter/FullScreenPhotoPageAdapter.java

@@ -149,4 +149,9 @@ public class FullScreenPhotoPageAdapter extends PagerAdapter implements TouchIma
149 149
     public void onZoomModeChanged(boolean isZoomed) {
150 150
         pager.setLocked(isZoomed);
151 151
     }
152
+
153
+    public void addPhotos(ArrayList<GroupPhotoItem> photoItems){
154
+        photoList.addAll(photoItems);
155
+        notifyDataSetChanged();
156
+    }
152 157
 }

adminSystem - Gogs: Go Git Service