fix:
update:更换为酷信
This commit is contained in:
2023-10-11 19:19:52 +08:00
parent 625a121cbb
commit 8799e85443
723 changed files with 4158 additions and 4041 deletions

View File

@@ -0,0 +1,44 @@
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.uiuipad.os;
import android.content.Context;
import com.uiuipad.os.R;
import com.uiuipad.os.config.FeatureFlags;
import com.uiuipad.os.graphics.IconShape;
import com.uiuipad.os.logging.FileLog;
import com.uiuipad.os.util.ResourceBasedOverride;
/**
* Utility class to handle one time initializations of the main process
*/
public class MainProcessInitializer implements ResourceBasedOverride {
public static void initialize(Context context) {
Overrides.getObject(
MainProcessInitializer.class, context, R.string.main_process_initializer_class)
.init(context);
}
protected void init(Context context) {
FileLog.setDir(context.getApplicationContext().getFilesDir());
FeatureFlags.initialize(context);
SessionCommitReceiver.applyDefaultUserPrefs(context);
IconShape.init(context);
}
}