Skip to content

Commit 9cb95ce

Browse files
committed
Version 1.4: update splashWelcome
Update Version, Bug Fix Feat(splashWelcome): cute progress QWQ
1 parent 0e64497 commit 9cb95ce

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

app/src/main/assets/main.bsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//04
1+
//05
22
import android.content.DialogInterface;
33
import android.os.Environment;
44
import android.app.AlertDialog;

app/src/main/assets/splash.bshA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ for (t:check) {
162162
me.onBackPressedCall = "cancelLaunch";
163163

164164
void cancelLaunch() {
165-
if(handler != null) {
165+
if (handler != null) {
166166
handler.removeCallbacks(runnable);
167167
runnable = null;
168168
}

app/src/main/assets/splashWelcome.bshA

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ int randColor() {
2323

2424
pic = "https://0d077ef9e74d8.cdn.sohucs.com/qBd502B_jpg";
2525
size = "123K";
26+
boolean dl_finished = false;
2627

2728
me.getActionBar().hide();
2829
me.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
@@ -117,9 +118,10 @@ void openedStream() {
117118
}
118119

119120
void 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

125127
void loadPic() {
@@ -134,7 +136,51 @@ void loadPic() {
134136

135137
Runnable 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

0 commit comments

Comments
 (0)