更新类库,设置版本号。

This commit is contained in:
ZhanGSKen
2025-03-31 14:53:33 +08:00
parent 5bc7581db1
commit 99ff741a22
4 changed files with 20 additions and 27 deletions

View File

@@ -1,12 +1,12 @@
package cc.winboll.studio.powerbell;
import android.content.Context;
import android.view.Gravity;
import cc.winboll.studio.libappbase.GlobalApplication;
import cc.winboll.studio.libappbase.utils.ToastUtils;
import cc.winboll.studio.powerbell.receivers.GlobalApplicationReceiver;
import cc.winboll.studio.powerbell.utils.AppCacheUtils;
import cc.winboll.studio.powerbell.utils.AppConfigUtils;
import cc.winboll.studio.libapputils.bean.DebugBean;
import com.hjq.toast.ToastUtils;
public class App extends GlobalApplication {
@@ -20,22 +20,13 @@ public class App extends GlobalApplication {
@Override
public void onCreate() {
super.onCreate();
// 设置应用调试标志
DebugBean debugBean = DebugBean.loadBean(this, DebugBean.class);
if (debugBean == null) {
//ToastUtils.show("debugBean == null");
setIsDebuging(this, false);
} else {
//ToastUtils.show("saveDebugStatus(" + String.valueOf(debugBean.isDebuging()) + ")");
setIsDebuging(this, debugBean.isDebuging());
}
// 初始化 Toast 框架
//ToastUtils.init(this);
ToastUtils.init(this);
// 设置 Toast 布局样式
//ToastUtils.setView(R.layout.toast_custom_view);
//ToastUtils.setStyle(new WhiteToastStyle());
//ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
// 设置数据配置存储工具
_mAppConfigUtils = getAppConfigUtils(this);

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme_Base" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
<style name="AppTheme_Base" parent="AESTheme">
<!-- Customize your theme here. -->
</style>
<style name="AppTheme_Default" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
<style name="AppTheme_Default" parent="AESTheme">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>