From 6a4c0a223fc1ca3a65840513a75f53fa766f2c98 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 17 Nov 2022 19:17:41 +0530 Subject: [PATCH] fix(app): enable Hilt processing for folder selection screens Fixes #2255 Fixes PASSWORD-STORE-GOOGLE-PLAY-11 --- .../app/passwordstore/ui/folderselect/SelectFolderActivity.kt | 2 ++ .../app/passwordstore/ui/folderselect/SelectFolderFragment.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderActivity.kt b/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderActivity.kt index 9ab146fe..3fffa90d 100644 --- a/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderActivity.kt @@ -14,7 +14,9 @@ import app.passwordstore.R import app.passwordstore.data.repo.PasswordRepository import app.passwordstore.ui.passwords.PASSWORD_FRAGMENT_TAG import app.passwordstore.ui.passwords.PasswordStore +import dagger.hilt.android.AndroidEntryPoint +@AndroidEntryPoint class SelectFolderActivity : AppCompatActivity(R.layout.select_folder_layout) { private lateinit var passwordList: SelectFolderFragment diff --git a/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderFragment.kt b/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderFragment.kt index 44aaa63f..a7827e93 100644 --- a/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderFragment.kt +++ b/app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderFragment.kt @@ -23,11 +23,13 @@ import app.passwordstore.util.viewmodel.ListMode import app.passwordstore.util.viewmodel.SearchableRepositoryViewModel import com.github.michaelbull.result.onFailure import com.github.michaelbull.result.runCatching +import dagger.hilt.android.AndroidEntryPoint import java.io.File import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import me.zhanghai.android.fastscroll.FastScrollerBuilder +@AndroidEntryPoint class SelectFolderFragment : Fragment(R.layout.password_recycler_view) { private val binding by viewBinding(PasswordRecyclerViewBinding::bind)