File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments