summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt b/app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt
index c615ce8c..86076d4a 100644
--- a/app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt
@@ -11,7 +11,7 @@ import com.zeapo.pwdstore.utils.PasswordRepository
// TODO more work needed, this is just an extraction from PgpHandler
class SelectFolderActivity : AppCompatActivity() {
- internal var passwordList: SelectFolderFragment? = null
+ private lateinit var passwordList: SelectFolderFragment
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
@@ -26,7 +26,7 @@ class SelectFolderActivity : AppCompatActivity() {
val args = Bundle()
args.putString("Path", PasswordRepository.getRepositoryDirectory(applicationContext).absolutePath)
- passwordList?.arguments = args
+ passwordList.arguments = args
supportActionBar?.show()
@@ -55,7 +55,7 @@ class SelectFolderActivity : AppCompatActivity() {
}
private fun selectFolder() {
- intent.putExtra("SELECTED_FOLDER_PATH", passwordList?.currentDir?.absolutePath)
+ intent.putExtra("SELECTED_FOLDER_PATH", passwordList.currentDir?.absolutePath)
setResult(Activity.RESULT_OK, intent)
finish()
}