pan rel=""> 77
+                        int realLength;
78
+                        while ((realLength = in.read(buffer)) > 0) {
79
+                            out.write(buffer, 0, realLength);
80
+                        }
81
+                        in.close();
82
+                        out.close();
83
+                    }
84
+                    return true;
85
+                } catch (Exception e) {
86
+                    e.printStackTrace();
87
+                }
88
+                return false;
89
+            }
90
+
91
+            @Override
92
+            protected void onPostExecute(Boolean result) {
93
+                LogHelper.d(TAG, "unzip task onPostExecute result=" + result);
94
+                if (result) {
95
+                    listener.onUnzipSuccess(zipFilePath, unZipDir);
96
+                } else {
97
+                    listener.onUnzipError(-1, zipFilePath, unZipDir);
98
+                }
99
+            }
100
+        };
101
+        unzipTask.execute();
102
+    }
103
+
104
+    public void cancelUnzip() {
105
+        if (unzipTask != null) {
106
+            isCancelled = true;
107
+            unzipTask.cancel(true);
108
+        }
109
+    }
110
+}

Kodo/kodo - Gogs: Go Git Service

2 Commits (b7e1d546988a713e5b1a757cfdd4e607884e8c41)

Author SHA1 Message Date
  Brightcells fabef63211 set line_length=200 for isort 10 years ago
  Brightcells 3114315824 add pc official website 10 years ago
kodo - Gogs: Go Git Service

Nessuna descrizione

Brightcells: 03304ad48a add api guest_status_api & modify api guest_login_api 10 anni fa
account 03304ad48a add api guest_status_api & modify api guest_login_api 10 anni fa
api 03304ad48a add api guest_status_api & modify api guest_login_api 10 anni fa
group fabef63211 set line_length=200 for isort 10 anni fa
message fabef63211 set line_length=200 for isort 10 anni fa
operation c209e83d29 add delete_guest_entrance_control 10 anni fa
page 818e5ae2cd adjust page 10 anni fa
pai2 63eaee0951 modify guest_login_api 10 anni fa
pay 70689e758c add lensman and user's balance 10 anni fa
photo fabef63211 set line_length=200 for isort 10 anni fa
utils 03304ad48a add api guest_status_api & modify api guest_login_api 10 anni fa
website 60b2bc0c09 add content for user_agreement.html 10 anni fa
.editorconfig 4defb80fdc gogs first init 11 anni fa
.gitignore 4defb80fdc gogs first init 11 anni fa
.isort.cfg fabef63211 set line_length=200 for isort 10 anni fa
check.sh 95c1d32792 put isort and pep8 in check.sh 10 anni fa
isort.sh fabef63211 set line_length=200 for isort 10 anni fa
manage.py fabef63211 set line_length=200 for isort 10 anni fa
pep8.sh 4defb80fdc gogs first init 11 anni fa
requirements.txt 63eaee0951 modify guest_login_api 10 anni fa