wjc
2025-01-03 ae57b0e8ca15e818e66b4edd4696804d81796327
app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java
@@ -31,25 +31,9 @@
        LayoutInflater inflater = LayoutInflater.from(context);
        // 通过inflate方法将布局文件转换为View对象
        splashView = inflater.inflate(R.layout.activity_b_splash, null);
        try {
            //设置导航条背景颜色
            if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 0) {
                Activity activity = (Activity) context;
                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF1C1C1E));
            } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 1) {
                Activity activity = (Activity) context;
                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF000000));
            } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 2) {
                Activity activity = (Activity) context;
                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF000000));
            }
        } catch (Exception ignored) {
        }
        //设置导航条背景颜色
        Activity activity = (Activity) context;
        activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF000000));
        //只能通过这种方式调用
        Intent intent = new Intent();
        intent.setPackage("com.hdl.photovoltaic");
@@ -62,6 +46,7 @@
    static ServiceConnection stringservice = new ServiceConnection() {
        private WeakReference<Context> contextWeakReference;
        @Override
        public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
            IUniappAidlInterface iUniappAidlInterface = IUniappAidlInterface.Stub.asInterface(iBinder);