aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2018-10-11 21:09:45 +0530
committerحسين <zidhussein@gmail.com>2018-10-11 16:39:45 +0100
commit8ff0039be41e51e71e42553ff558640a7b74ec13 (patch)
treee3379af5ba457cdeb9bd9015722314467dabc5ed /app/src
parent9c932f1a10c31cd71206d741c102cc2beb576fa9 (diff)
Update gradle and external dependencies (#429)
* Update gradle and external dependencies - Switch away from deprecated compile directive - Remove explicit buildToolsVersion, is defined by the gradle plugin now - Fix build in SelectFolderActivity Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Upgrade gradle plugin and wrapper to latest alpha Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Don't use alpha gradle plugin Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src')
-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()
}