Set dataFolder to data/accounts/
This commit is contained in:
parent
8bb2a31a38
commit
7a114b7e0a
|
@ -16,7 +16,7 @@ import java.io.File
|
|||
|
||||
class MainWindow : View(messages["application.title"]) {
|
||||
|
||||
private val dataFolder = File("data")
|
||||
private val dataFolder = File("data", "accounts")
|
||||
|
||||
private val presenter = MainWindowPresenter(fints4javaBankingClientCreator(), dataFolder, BankingPersistenceJson(File(dataFolder, "accounts.json")), Base64ServiceJava8(), RouterJavaFx())
|
||||
|
||||
|
|
|
@ -98,6 +98,8 @@ open class MainWindowPresenter(
|
|||
|
||||
protected open fun readPersistedAccounts() {
|
||||
try {
|
||||
dataFolder.mkdirs()
|
||||
|
||||
val deserializedAccounts = persister.readPersistedAccounts()
|
||||
|
||||
deserializedAccounts.forEach { account ->
|
||||
|
|
|
@ -45,7 +45,7 @@ class MainActivity : AppCompatActivity() {
|
|||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
val dataFolder = File(this.filesDir, "data")
|
||||
val dataFolder = File(this.filesDir, "data/accounts")
|
||||
|
||||
presenter = MainWindowPresenter(fints4javaBankingClientCreator(), dataFolder,
|
||||
BankingPersistenceJson(File(dataFolder, "accounts.json")), Base64ServiceAndroid(), RouterAndroid(this))
|
||||
|
|
Loading…
Reference in New Issue