41
+            }
42
+
43
+            @Override
44
+            public void onServiceDisconnected(ComponentName componentName) {
45
+
46
+            }
47
+        };
29 48
     }
30 49
 
31 50
 
@@ -49,11 +68,12 @@ public class UploadPresenter implements UploadContract.Presenter,BaseInteractor.
49 68
         sessionSeq = sessionList.size();
50 69
 
51 70
         App.getAppContext().startService(new Intent(App.getAppContext(), UploadService.class));
71
+        App.getAppContext().bindService(new Intent(App.getAppContext(),UploadService.class),serviceConnection, Context.BIND_AUTO_CREATE);
52 72
     }
53 73
 
54 74
     @Override
55 75
     public void stop() {
56
-
76
+        App.getAppContext().unbindService(serviceConnection);
57 77
     }
58 78
 
59 79
     @Override
@@ -83,7 +103,13 @@ public class UploadPresenter implements UploadContract.Presenter,BaseInteractor.
83 103
 
84 104
     @Override
85 105
     public void onInteractFail(String errorMsg) {
86
-//        interactor.startJob();
106
+        interactor.startJob();
87 107
     }
88 108
 
109
+
110
+    @Override
111
+    public void onPhotoUploaded(PhotoBean bean) {
112
+
113
+        uploadView.updateSessionUploadView(null);
114
+    }
89 115
 }

kodo - Gogs: Go Git Service

Nenhuma Descrição

Brightcells: 597ee33ba6 Pai2 => Kodo 8 anos atrás
..
migrations 917f2df489 Add api api/upgrade 8 anos atrás
__init__.py df1df69fe3 add api upgrade/splash 10 anos atrás
admin.py 018d52f61d Update package django_xxx 8 anos atrás
models.py 597ee33ba6 Pai2 => Kodo 8 anos atrás
tests.py fabef63211 set line_length=200 for isort 10 anos atrás
views.py 018d52f61d Update package django_xxx 8 anos atrás