1
0
mirror of https://github.com/etesync/android synced 2025-02-22 04:22:11 +00:00

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

Related to #105 (though not a fix...).
This commit is contained in:
Tom Hacohen 2020-03-12 14:26:06 +02:00
parent d92bc50a1d
commit b530b4c02f
3 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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"

View File

@ -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>