File tree Expand file tree Collapse file tree 4 files changed +53
-7
lines changed Expand file tree Collapse file tree 4 files changed +53
-7
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ android {
15
15
applicationId " org.duangsuse.tree"
16
16
minSdkVersion 15
17
17
targetSdkVersion 27
18
- versionCode 4
19
- versionName ' 1.3-铱 '
18
+ versionCode 5
19
+ versionName ' 1.4-钨 '
20
20
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
21
21
signingConfig signingConfigs. config
22
22
}
Original file line number Diff line number Diff line change 1
- //04
1
+ //05
2
2
import android.content.DialogInterface;
3
3
import android.os.Environment;
4
4
import android.app.AlertDialog;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ for (t:check) {
162
162
me.onBackPressedCall = "cancelLaunch";
163
163
164
164
void cancelLaunch() {
165
- if(handler != null) {
165
+ if (handler != null) {
166
166
handler.removeCallbacks(runnable);
167
167
runnable = null;
168
168
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ int randColor() {
23
23
24
24
pic = "https://0d077ef9e74d8.cdn.sohucs.com/qBd502B_jpg";
25
25
size = "123K";
26
+ boolean dl_finished = false;
26
27
27
28
me.getActionBar().hide();
28
29
me.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
@@ -117,9 +118,10 @@ void openedStream() {
117
118
}
118
119
119
120
void downloadedPic() {
120
- handler.removeCallbacks(picd);
121
+ //handler.removeCallbacks(picd);
122
+ dl_finished = true;
121
123
background.animateText("完成!");
122
- me.go("Thread.sleep(2000 );", "me.finish");
124
+ me.go("Thread.sleep(2500 );", "me.finish");
123
125
}
124
126
125
127
void loadPic() {
@@ -134,7 +136,51 @@ void loadPic() {
134
136
135
137
Runnable updateProgress = new Runnable() {
136
138
public void run() {
137
- background.animateText((count/1024).toString() + "/" + size);
139
+ int kib = count/1024;
140
+ if (!dl_finished) {
141
+ switch (kib) {
142
+ case 0:
143
+ text = "QWQ Starting";
144
+ break;
145
+ case 10:
146
+ //Too Simple
147
+ text = "Naive!";
148
+ break;
149
+ case 20:
150
+ text = "Excited!";
151
+ break;
152
+ case 30:
153
+ text = "Emmmm";
154
+ break;
155
+ case 40:
156
+ text = "YOUNG";
157
+ break;
158
+ case 50:
159
+ text = "HTextView";
160
+ break;
161
+ case 60:
162
+ text = "AOSP";
163
+ break;
164
+ case 70:
165
+ text = "CircularAnim";
166
+ break;
167
+ case 80:
168
+ text = "melnykov FAB";
169
+ break;
170
+ case 90:
171
+ text = "easterEgg";
172
+ break;
173
+ case 100:
174
+ text = "BeanShell";
175
+ break;
176
+ case 110:
177
+ text = "GitHub";
178
+ break;
179
+ default:
180
+ text = kib.toString() + "/" + size;
181
+ }
182
+ background.animateText(text);
183
+ }
138
184
}
139
185
};
140
186
You can’t perform that action at this time.
0 commit comments