ThemePickerLeaf: Prevent hilt from injecting wrong Injector class
* Otherwise for some reason ThemePickerInjector is selected
Change-Id: Ie8b3764bc054eaf00e3f55ab13a190fdfddcd95c
diff --git a/src_override/com/android/customization/picker/CustomizationPickerApplication.java b/src_override/com/android/customization/picker/CustomizationPickerApplication.java
index 461605d..cec9d7a 100644
--- a/src_override/com/android/customization/picker/CustomizationPickerApplication.java
+++ b/src_override/com/android/customization/picker/CustomizationPickerApplication.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023 The LeafOS Project
+ * Copyright (c) 2023-2024 The LeafOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,8 +17,8 @@
import android.app.Application;
-import com.android.customization.module.CustomizationInjector;
import com.android.wallpaper.module.InjectorProvider;
+import org.leafos.customization.module.LeafThemePickerInjector;
import dagger.hilt.android.HiltAndroidApp;
@@ -27,7 +27,7 @@
@HiltAndroidApp(Application.class)
public class CustomizationPickerApplication extends Hilt_CustomizationPickerApplication {
- @Inject CustomizationInjector mInjector;
+ @Inject LeafThemePickerInjector mInjector;
@Override
public void onCreate() {