Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Jan 7, 2024
1 parent a56c930 commit 5a132f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.sduduzog.slimlauncher.di

import android.annotation.SuppressLint
import android.app.Activity
import androidx.core.app.ComponentActivity
import androidx.lifecycle.LifecycleCoroutineScope
Expand All @@ -14,6 +15,7 @@ import dagger.hilt.android.scopes.ActivityScoped
@Module
@InstallIn(ActivityComponent::class)
class ActivityModule {
@SuppressLint("RestrictedApi")
@Provides
fun provideLifecycleCoroutineScope(activity: Activity): LifecycleCoroutineScope =
(activity as ComponentActivity).lifecycleScope
Expand Down

0 comments on commit 5a132f7

Please sign in to comment.