diff --git a/app/src/main/java/io/heckel/ntfy/ui/DetailActivity.kt b/app/src/main/java/io/heckel/ntfy/ui/DetailActivity.kt index 4d15463..5530b27 100644 --- a/app/src/main/java/io/heckel/ntfy/ui/DetailActivity.kt +++ b/app/src/main/java/io/heckel/ntfy/ui/DetailActivity.kt @@ -167,24 +167,12 @@ class DetailActivity : AppCompatActivity(), ActionMode.Callback, NotificationFra val topicUrl = topicShortUrl(subscriptionBaseUrl, subscriptionTopic) title = subscriptionDisplayName - // Set "how to instructions" - val howToExample: TextView = findViewById(R.id.detail_how_to_example) - howToExample.linksClickable = true - - val howToText = getString(R.string.detail_how_to_example, topicUrl) - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - howToExample.text = Html.fromHtml(howToText, Html.FROM_HTML_MODE_LEGACY) - } else { - howToExample.text = Html.fromHtml(howToText) - } - // Swipe to refresh mainListContainer = findViewById(R.id.detail_notification_list_container) mainListContainer.setOnRefreshListener { refresh() } mainListContainer.setColorSchemeResources(Colors.refreshProgressIndicator) // Update main list based on viewModel (& its datasource/livedata) - val noEntriesText: View = findViewById(R.id.detail_no_notifications) val onNotificationClick = { n: Notification -> onNotificationClick(n) } val onNotificationLongClick = { n: Notification -> onNotificationLongClick(n) } @@ -198,10 +186,8 @@ class DetailActivity : AppCompatActivity(), ActionMode.Callback, NotificationFra adapter.submitList(it as MutableList) if (it.isEmpty()) { mainListContainer.visibility = View.GONE - noEntriesText.visibility = View.VISIBLE } else { mainListContainer.visibility = View.VISIBLE - noEntriesText.visibility = View.GONE } // Cancel notifications that still have popups diff --git a/app/src/main/res/layout/activity_detail.xml b/app/src/main/res/layout/activity_detail.xml index 67a2df3..e8548a9 100644 --- a/app/src/main/res/layout/activity_detail.xml +++ b/app/src/main/res/layout/activity_detail.xml @@ -26,51 +26,4 @@ app:layoutManager="LinearLayoutManager"/> - - - - - - - -