blob: 3590f99344c05f712084536e1bbc68db7e1a3ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.pacien.tincapp.activities
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.base.*
import kotlinx.android.synthetic.main.page_configure.*
import org.pacien.tincapp.R
import org.pacien.tincapp.context.AppPaths
/**
* @author pacien
*/
class ConfigureActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
layoutInflater.inflate(R.layout.page_configure, main_content)
writeContent()
}
private fun writeContent() {
text_configuration_directory.text = AppPaths.confDir().absolutePath
text_log_directory.text = AppPaths.cacheDir().absolutePath
text_tinc_binary.text = AppPaths.tinc().absolutePath
}
fun generateConf(@Suppress("UNUSED_PARAMETER") v: View) = notify("Not implemented yet")
fun joinNetwork(@Suppress("UNUSED_PARAMETER") v: View) = notify("Not implemented yet")
}
|