From a3bf684aeaa2a588665d6c6d2ef6db95e9ea64f6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 26 Feb 2017 20:38:18 +0100 Subject: [PATCH] list the excluded paths at excludedFolders activity --- .../activities/ExcludedFoldersActivity.kt | 13 +++++++++++++ app/src/main/res/layout/item_excluded_folder.xml | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 app/src/main/res/layout/item_excluded_folder.xml diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt index 789a36460..192757792 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt @@ -1,11 +1,24 @@ package com.simplemobiletools.gallery.activities import android.os.Bundle +import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.gallery.R +import com.simplemobiletools.gallery.extensions.config +import kotlinx.android.synthetic.main.activity_excluded_folders.* +import kotlinx.android.synthetic.main.item_excluded_folder.view.* class ExcludedFoldersActivity : SimpleActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_excluded_folders) + + val folders = config.excludedFolders + for (folder in folders) { + layoutInflater.inflate(R.layout.item_excluded_folder, null, false).apply { + excluded_folder_title.text = folder + excluded_folders_holder.addView(this) + } + } + updateTextColors(excluded_folders_holder) } } diff --git a/app/src/main/res/layout/item_excluded_folder.xml b/app/src/main/res/layout/item_excluded_folder.xml new file mode 100644 index 000000000..69f87b613 --- /dev/null +++ b/app/src/main/res/layout/item_excluded_folder.xml @@ -0,0 +1,16 @@ + + + + + +