From d3dba22e53151314e4c162e3096fa9d90766ece5 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 3 Jul 2017 22:55:28 +0200 Subject: Make list header and footer non-clickable --- app/src/main/java/org/pacien/tincapp/activities/StartActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main') 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 { } private fun writeContent() { - network_list.addHeaderView(layoutInflater.inflate(R.layout.fragment_network_list_header, network_list, false)) - network_list.addFooterView(View(this)) + network_list.addHeaderView(layoutInflater.inflate(R.layout.fragment_network_list_header, network_list, false), null, false) + network_list.addFooterView(View(this), null, false) network_list.emptyView = layoutInflater.inflate(R.layout.fragment_network_list_empty_placeholder, network_list, false) network_list.adapter = ArrayAdapter(this, R.layout.fragment_list_item, AppPaths.confDir().list()) network_list.onItemClickListener = this -- cgit v1.2.3