diff options
author | Pacien TRAN-GIRARD | 2017-07-03 22:55:28 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2017-07-03 22:55:28 +0200 |
commit | d3dba22e53151314e4c162e3096fa9d90766ece5 (patch) | |
tree | 9e551be5d57a5b58d54a56f8615ee44e79d2c82c /app/src/main | |
parent | 862b991d9a10296dc0c419fa93babb11614c3957 (diff) | |
download | tincapp-d3dba22e53151314e4c162e3096fa9d90766ece5.tar.gz |
Make list header and footer non-clickable
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt b/app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt index 28d0a29..21f5199 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt | |||
@@ -38,8 +38,8 @@ class StartActivity : BaseActivity(), AdapterView.OnItemClickListener { | |||
38 | } | 38 | } |
39 | 39 | ||
40 | private fun writeContent() { | 40 | private fun writeContent() { |
41 | network_list.addHeaderView(layoutInflater.inflate(R.layout.fragment_network_list_header, network_list, false)) | 41 | network_list.addHeaderView(layoutInflater.inflate(R.layout.fragment_network_list_header, network_list, false), null, false) |
42 | network_list.addFooterView(View(this)) | 42 | network_list.addFooterView(View(this), null, false) |
43 | network_list.emptyView = layoutInflater.inflate(R.layout.fragment_network_list_empty_placeholder, network_list, false) | 43 | network_list.emptyView = layoutInflater.inflate(R.layout.fragment_network_list_empty_placeholder, network_list, false) |
44 | network_list.adapter = ArrayAdapter<String>(this, R.layout.fragment_list_item, AppPaths.confDir().list()) | 44 | network_list.adapter = ArrayAdapter<String>(this, R.layout.fragment_list_item, AppPaths.confDir().list()) |
45 | network_list.onItemClickListener = this | 45 | network_list.onItemClickListener = this |