Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338790f0 authored by Jernej Virag's avatar Jernej Virag
Browse files

Add Kosmos provider for ImageLoader

Allows injection for ImageLoader via Kosmos framework.

Bug: 358350077
Test: trivial
Flag: TEST_ONLY
Change-Id: I7b5b3d147e6046ff8e84f001f7917375b4116a94
parent 0312c6e9
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 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.systemui.graphics

import android.content.testableContext
import com.android.systemui.kosmos.Kosmos
import com.android.systemui.kosmos.testDispatcher

var Kosmos.imageLoader by Kosmos.Fixture { ImageLoader(testableContext, testDispatcher) }