修复吐司模块不显示字幕的BUG

This commit is contained in:
ZhanGSKen 2025-03-15 15:26:59 +08:00
parent c0347ed706
commit db96ece15f
4 changed files with 12 additions and 9 deletions

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Sat Mar 15 14:46:50 HKT 2025 #Sat Mar 15 07:25:37 GMT 2025
stageCount=1 stageCount=1
libraryProject=libappbase libraryProject=libappbase
baseVersion=15.0 baseVersion=15.0
publishVersion=15.0.0 publishVersion=15.0.0
buildCount=0 buildCount=4
baseBetaVersion=15.0.1 baseBetaVersion=15.0.1

View File

@ -37,7 +37,10 @@ public class MainActivity extends Activity {
cbIsDebugMode.setChecked(GlobalApplication.isDebuging()); cbIsDebugMode.setChecked(GlobalApplication.isDebuging());
mLogView = findViewById(R.id.activitymainLogView1); mLogView = findViewById(R.id.activitymainLogView1);
if (GlobalApplication.isDebuging()) { mLogView.start(); } if (GlobalApplication.isDebuging()) {
mLogView.start();
ToastUtils.show("LogView start.");
}
} }
@Override @Override
@ -89,7 +92,7 @@ public class MainActivity extends Activity {
public void onTestSOS(View view) { public void onTestSOS(View view) {
Intent intent = new Intent(this, TestDemoService.class); Intent intent = new Intent(this, TestDemoService.class);
stopService(intent); stopService(intent);
if(App.isDebuging()) { if (App.isDebuging()) {
SOS.sosToAppBaseBeta(this, TestDemoService.class.getName()); SOS.sosToAppBaseBeta(this, TestDemoService.class.getName());
} else { } else {
SOS.sosToAppBase(this, TestDemoService.class.getName()); SOS.sosToAppBase(this, TestDemoService.class.getName());
@ -107,7 +110,7 @@ public class MainActivity extends Activity {
Intent intent = new Intent(this, TestDemoService.class); Intent intent = new Intent(this, TestDemoService.class);
intent.setAction(TestDemoService.ACTION_DISABLE); intent.setAction(TestDemoService.ACTION_DISABLE);
startService(intent); startService(intent);
Intent intentStop = new Intent(this, TestDemoService.class); Intent intentStop = new Intent(this, TestDemoService.class);
stopService(intentStop); stopService(intentStop);
} }
@ -116,7 +119,7 @@ public class MainActivity extends Activity {
Intent intent = new Intent(this, TestDemoService.class); Intent intent = new Intent(this, TestDemoService.class);
stopService(intent); stopService(intent);
} }
public void onSartTestDemoBindService(View view) { public void onSartTestDemoBindService(View view) {
Intent intent = new Intent(this, TestDemoBindService.class); Intent intent = new Intent(this, TestDemoBindService.class);
intent.setAction(TestDemoBindService.ACTION_ENABLE); intent.setAction(TestDemoBindService.ACTION_ENABLE);

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Sat Mar 15 14:46:32 HKT 2025 #Sat Mar 15 07:25:37 GMT 2025
stageCount=1 stageCount=1
libraryProject=libappbase libraryProject=libappbase
baseVersion=15.0 baseVersion=15.0
publishVersion=15.0.0 publishVersion=15.0.0
buildCount=0 buildCount=4
baseBetaVersion=15.0.1 baseBetaVersion=15.0.1

View File

@ -28,6 +28,6 @@ public class ToastUtils {
} }
public static void show(String message) { public static void show(String message) {
Toast.makeText(getInstance().mContext, "", Toast.LENGTH_SHORT).show(); Toast.makeText(getInstance().mContext, message, Toast.LENGTH_SHORT).show();
} }
} }