Tasks collection view: add a warning about tasks not showing without OpenTasks.

Related to #105 (though not a fix...).
pull/122/head
Tom Hacohen 4 years ago
parent d92bc50a1d
commit b530b4c02f

@ -69,6 +69,8 @@ class ViewCollectionActivity : BaseActivity(), Refreshable {
}
CollectionInfo.Type.TASKS -> {
colorSquare.setBackgroundColor(info.color ?: LocalCalendar.defaultColor)
val tasksNotShowing = findViewById<View>(R.id.tasks_not_showing)
tasksNotShowing.visibility = View.VISIBLE
}
CollectionInfo.Type.ADDRESS_BOOK -> {
colorSquare.visibility = View.GONE

@ -17,10 +17,18 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/activity_margin"
android:paddingHorizontal="@dimen/activity_margin"
android:text="@string/change_journal_title"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/tasks_not_showing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/activity_margin"
android:visibility="gone"
android:text="@string/tasks_not_showing" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

@ -134,6 +134,7 @@
<!-- ViewCollection -->
<string name="change_journal_title">Change Journal</string>
<string name="tasks_not_showing">* Log is only shown if OpenTasks is installed. We are working on a fix.</string>
<string name="account_showcase_import">In order to import contacts and calendars into EteSync, you need to click on the menu, and choose \"Import\".</string>
<string name="account_owner">Owner: %s</string>
<string name="members_owner_only">Only the owner of this collection (%s) is allowed to view its members.</string>

Loading…
Cancel
Save