StatusText(item.sessionPhotos)); 88 106
             holder.uploadProgressBar.setProgress(100*uploaded/photoList.size());
89 107
         }
90
-        int height = width;
91
-        ViewGroup.LayoutParams lp=holder.photo.getLayoutParams();
92
-        lp.width = width;
93
-        lp.height = height;
94
-        holder.photo.setLayoutParams(lp);
95
-        holder.sesseionSeq.setText(String.valueOf(item.sessionSeq));
96 108
         holder.itemView.setOnClickListener(new View.OnClickListener(){
97 109
             @Override
98 110
             public void onClick(View v) {
@@ -111,18 +123,6 @@ public class SessionRecyclerAdapter extends RecyclerView.Adapter<SessionRecycler
111 123
         return sessionList.size();
112 124
     }
113 125
 
114
-    private String getUploadStatusText(ArrayList<PhotoBean> photoList){
115
-        int uploaded = 0;
116
-        for(PhotoBean bean : photoList){
117
-            if(bean.isUploaded){
118
-                uploaded++;
119
-            }
120
-        }
121
-        String uploadStr = uploaded+"/"+photoList.size();
122
-
123
-        return uploadStr;
124
-    }
125
-
126 126
 
127 127
     class MyViewHolder extends RecyclerView.ViewHolder{
128 128
 

+ 1 - 1
app/src/main/java/ai/pai/lensman/upload/UploadActivity.java

@@ -95,7 +95,7 @@ public class UploadActivity extends BaseActivity implements UploadContract.View
95 95
 
96 96
     @Override
97 97
     public void updateSessionUploadViewAt(int position) {
98
-
98
+        adapter.notifyItemChanged(position);
99 99
     }
100 100
 
101 101
     @Override

+ 1 - 1
app/src/main/java/ai/pai/lensman/upload/UploadPresenter.java

@@ -120,7 +120,7 @@ public class UploadPresenter implements UploadContract.Presenter,BaseInteractor.
120 120
         }else{
121 121
             for(PhotoBean photoBean : photoList){
122 122
                 if(photoBean.photoId == bean.photoId){
123
-                    photoBean.isUploaded = true;
123
+                    photoBean.uploadStatus = PhotoBean.UploadStatus.STATUS_SUCCESS;
124 124
                     break;
125 125
                 }
126 126
             }

+ 4 - 0
app/src/main/res/values/strings.xml

@@ -14,6 +14,10 @@
14 14
     <string name="login_fail">登录失败</string>
15 15
     <string name="please_wait">请稍候</string>
16 16
 
17
+    <string name="upload_processing">上传中</string>
18
+    <string name="upload_error">上传失败</string>
19
+    <string name="upload_success">上传成功</string>
20
+
17 21
     <string name="network_disconnect">当前无网络连接</string>
18 22
 
19 23
     <string name="qr_scan_hint">将取景框对准二维码,\n即可自动扫码</string>

kodo - Gogs: Go Git Service

Geen omschrijving

index.html 1.7KB

    <!doctype html> <html> <head> <meta charset="UTF-8"> <title>拍爱 PAI.AI 首页</title> <meta name="keywords" content="摄影 图片 影像 分享 交流 社交 交友 摄影师 女性 孩子 亲子 旅行 旅游 约拍 iphone android app" /> <link href="css/layout.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.min.js"></script> </head> <body class="content_bg"> <div id="header"> <div class="content"> <a href="index.html" target="_self" class="logo"></a> <div class="navigation"> <a href="contactus.html" target="_self" >联系我们</a> <a href="joinus.html" target="_self" >加入拍爱</a> <a href="aboutus.html" target="_self" >关于我们</a> <a href="index.html" target="_self" class="current" >首页</a> </div> </div> </div> <div id="container" > <div class="content"> <div class="container_box"> <div class="mobile"></div> <div class="mb_img"></div> <div class="article"><span>即拍即分享</span><p>一起走过的路,<br>一起看过的美景,<br>一起醉过的Party,......<br>回忆容易消逝,<br>一起拍,照片让爱历久弥新。</p></div> <a href="https://itunes.apple.com/cn/app/pai-aipaiai/id1163960351?mt=8" target="_blank" class="ios_download">iPhone下载</a> <a href="" target="_blank" class="android_download">安卓下载</a> </div> </div> </div> <div id="footer"> <div class="content foot homefooter"> <a href="aboutus.html" target="_self" >关于我们</a> <span>|</span> <a href="contactus.html" target="_self" >联系我们</a> ©2016 拍爱 PAI.AI 琼ICP备16000076号 </div> </div> </body> </html>