diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-11-17 19:17:41 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-11-17 19:21:51 +0530 |
commit | 6a4c0a223fc1ca3a65840513a75f53fa766f2c98 (patch) | |
tree | 46f773fe54aee96d0c7df1cb00deddc91eae59ce /app/src | |
parent | 6b20376986eb838c51f25507e2f8c48a63c467ca (diff) |
fix(app): enable Hilt processing for folder selection screens
Fixes #2255
Fixes PASSWORD-STORE-GOOGLE-PLAY-11
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderActivity.kt | 2 | ||||
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/folderselect/SelectFolderFragment.kt | 2 |
2 files changed, 4 insertions, 0 deletions
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) |