2023-10-18 11:51:54 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2023 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.android.launcher3;
|
|
|
|
|
|
|
|
|
|
import android.app.Application;
|
|
|
|
|
|
2024-08-23 17:15:30 -07:00
|
|
|
import com.android.launcher3.dagger.DaggerLauncherAppComponent;
|
|
|
|
|
import com.android.launcher3.dagger.LauncherBaseAppComponent;
|
|
|
|
|
|
2023-10-18 11:51:54 -07:00
|
|
|
/**
|
|
|
|
|
* Main application class for Launcher
|
|
|
|
|
*/
|
|
|
|
|
public class LauncherApplication extends Application {
|
|
|
|
|
|
2024-08-23 17:15:30 -07:00
|
|
|
private LauncherBaseAppComponent mAppComponent;
|
2023-10-18 11:51:54 -07:00
|
|
|
@Override
|
|
|
|
|
public void onCreate() {
|
|
|
|
|
super.onCreate();
|
|
|
|
|
MainProcessInitializer.initialize(this);
|
2024-09-10 17:29:37 -07:00
|
|
|
mAppComponent = DaggerLauncherAppComponent.builder().appContext(this).build();
|
2024-08-23 17:15:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LauncherBaseAppComponent getAppComponent() {
|
|
|
|
|
return mAppComponent;
|
2023-10-18 11:51:54 -07:00
|
|
|
}
|
|
|
|
|
}
|