Skip to content

Commit

Permalink
[del] #229 ActivityLifecycleHandler 클래스에서 불필요한 생성자 인자 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeha committed Jan 15, 2024
1 parent 1e5da91 commit 4597453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import android.app.Activity
import android.app.Application
import android.os.Bundle

class ActivityLifecycleHandler(private val application: Application) :
Application.ActivityLifecycleCallbacks {
class ActivityLifecycleHandler : Application.ActivityLifecycleCallbacks {
override fun onActivityCreated(p0: Activity, p1: Bundle?) {
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/go/sopt/winey/WineyApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WineyApplication : Application() {
setupTimber()
setupKakaoSdk()
preventDarkMode()
registerActivityLifecycleCallbacks(ActivityLifecycleHandler(this))
registerActivityLifecycleCallbacks(ActivityLifecycleHandler())
}

private fun setupTimber() {
Expand Down

0 comments on commit 4597453

Please sign in to comment.