Skip to content

Commit 724a52b

Browse files
author
lliioollcn
committed
删除没用输出
1 parent 09b5598 commit 724a52b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/src/main/java/cn/lliiooll/gmc/BotService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class BotService extends Service {
2020
public void onCreate() {
2121

2222
new Thread(Gmc::start).start();
23-
Toast.makeText(this, "Start Service", Toast.LENGTH_SHORT).show();
23+
Toast.makeText(this, "GMC启动中...", Toast.LENGTH_SHORT).show();
2424
active = true;
2525
startForeground(1, NotificationUtil.create(this));
2626
super.onCreate();

app/src/main/java/net/lz1998/gomiraiclient/MainActivity.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ class MainActivity : AppCompatActivity() {
2424
}
2525
// 启动服务
2626
if (!BotService.isActive()) {
27-
Toast.makeText(this, "Start", Toast.LENGTH_SHORT).show();
2827
BotService.start(this)
2928
}
3029
val t = this;
3130
thread {
32-
Thread.sleep(3000L)
31+
Thread.sleep(3000L)// 等3秒让gmc启动
3332
t.runOnUiThread {
3433
binding.webview.settings.javaScriptEnabled = true
3534
binding.webview.settings.loadWithOverviewMode = true
@@ -53,14 +52,12 @@ class MainActivity : AppCompatActivity() {
5352
) {
5453
// Permission is granted. Continue the action or workflow
5554
// in your app.
56-
Toast.makeText(this, "权限通过", Toast.LENGTH_LONG).show()
5755
} else {
5856
// Explain to the user that the feature is unavailable because
5957
// the features requires a permission that the user has denied.
6058
// At the same time, respect the user's decision. Don't link to
6159
// system settings in an effort to convince the user to change
6260
// their decision.
63-
Toast.makeText(this, "权限不通过", Toast.LENGTH_LONG).show()
6461
}
6562

6663

0 commit comments

Comments
 (0)