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 {
1515 applicationId " org.duangsuse.tree"
1616 minSdkVersion 15
1717 targetSdkVersion 27
18- versionCode 4
19- versionName ' 1.3-铱 '
18+ versionCode 5
19+ versionName ' 1.4-钨 '
2020 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
2121 signingConfig signingConfigs. config
2222 }
Original file line number Diff line number Diff line change 1- //04
1+ //05
22import android.content.DialogInterface;
33import android.os.Environment;
44import android.app.AlertDialog;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ for (t:check) {
162162me.onBackPressedCall = "cancelLaunch";
163163
164164void cancelLaunch() {
165- if(handler != null) {
165+ if (handler != null) {
166166 handler.removeCallbacks(runnable);
167167 runnable = null;
168168 }
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ int randColor() {
2323
2424pic = "https://0d077ef9e74d8.cdn.sohucs.com/qBd502B_jpg";
2525size = "123K";
26+ boolean dl_finished = false;
2627
2728me.getActionBar().hide();
2829me.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
@@ -117,9 +118,10 @@ void openedStream() {
117118}
118119
119120void downloadedPic() {
120- handler.removeCallbacks(picd);
121+ //handler.removeCallbacks(picd);
122+ dl_finished = true;
121123 background.animateText("完成!");
122- me.go("Thread.sleep(2000 );", "me.finish");
124+ me.go("Thread.sleep(2500 );", "me.finish");
123125}
124126
125127void loadPic() {
@@ -134,7 +136,51 @@ void loadPic() {
134136
135137Runnable updateProgress = new Runnable() {
136138 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+ }
138184 }
139185};
140186
You can’t perform that action at this time.
0 commit comments