From 5f2f62c8f096eeba1f77b04fc7c0c99e7419cf14 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Mon, 25 Oct 2021 14:24:44 -0400 Subject: [PATCH] stuff --- .../io/heckel/ntfy/add/AddTopicActivity.kt | 20 +++++------ .../java/io/heckel/ntfy/data/DataSource.kt | 2 +- .../main/java/io/heckel/ntfy/data/Topic.kt | 3 -- .../main/java/io/heckel/ntfy/data/Topics.kt | 36 ------------------- .../heckel/ntfy/detail/TopicDetailActivity.kt | 7 ++-- .../io/heckel/ntfy/list/TopicsListActivity.kt | 16 ++++----- .../heckel/ntfy/list/TopicsListViewModel.kt | 7 ++-- app/src/main/res/layout/add_topic_layout.xml | 22 ++---------- .../main/res/layout/topic_detail_activity.xml | 25 +++++++------ app/src/main/res/values/strings.xml | 14 ++------ 10 files changed, 37 insertions(+), 115 deletions(-) delete mode 100644 app/src/main/java/io/heckel/ntfy/data/Topics.kt diff --git a/app/src/main/java/io/heckel/ntfy/add/AddTopicActivity.kt b/app/src/main/java/io/heckel/ntfy/add/AddTopicActivity.kt index 9dfdcb4..cd47e8e 100644 --- a/app/src/main/java/io/heckel/ntfy/add/AddTopicActivity.kt +++ b/app/src/main/java/io/heckel/ntfy/add/AddTopicActivity.kt @@ -24,22 +24,20 @@ import androidx.appcompat.app.AppCompatActivity import com.heckel.ntfy.R import com.google.android.material.textfield.TextInputEditText -const val TOPIC_NAME = "name" -const val TOPIC_DESCRIPTION = "description" +const val TOPIC_URL = "url" class AddTopicActivity : AppCompatActivity() { - private lateinit var addTopicName: TextInputEditText - private lateinit var addTopicDescription: TextInputEditText + private lateinit var addTopicUrl: TextInputEditText override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.add_topic_layout) - findViewById