更新类库,BugFix。

This commit is contained in:
ZhanGSKen
2025-05-03 11:52:00 +08:00
parent 2cbf9e5669
commit cb486bb90c
17 changed files with 16 additions and 1578 deletions

View File

@@ -6,9 +6,9 @@ package cc.winboll.studio.autoinstaller;
* @Describe 全局应用类
*/
import android.view.Gravity;
import cc.winboll.studio.autoinstaller.R;
import cc.winboll.studio.libappbase.GlobalApplication;
import com.hjq.toast.ToastUtils;
import com.hjq.toast.style.WhiteToastStyle;
public class App extends GlobalApplication {
@@ -21,8 +21,8 @@ public class App extends GlobalApplication {
// 初始化 Toast 框架
ToastUtils.init(this);
// 设置 Toast 布局样式
ToastUtils.setView(R.layout.view_toast);
//ToastUtils.setStyle(new WhiteToastStyle());
//ToastUtils.setView(R.layout.view_toast);
ToastUtils.setStyle(new WhiteToastStyle());
ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
}
}

View File

@@ -154,10 +154,13 @@ public class AppConfigs implements Serializable {
try {
String szJson = FileUtil.readFile(getDataPath(context.getApplicationContext()));
appConfigs = AppConfigs.getInstance(mContext).parseAppConfigs(szJson);
if(appConfigs != null) {
_AppConfigs = appConfigs;
}
} catch (IOException e) {
LogUtils.d(TAG, e.getMessage(), Thread.currentThread().getStackTrace());
}
return appConfigs;
return _AppConfigs;
}
public void saveAppConfigs(Context context, AppConfigs appConfigs) {