1
0
mirror of https://github.com/etesync/android synced 2024-12-23 07:08:16 +00:00

Add a notice about only OpenTasks lists showing in app.

This commit is contained in:
Tom Hacohen 2020-07-05 10:58:27 +03:00
parent 55d90d9a9d
commit 3103d4d42a
3 changed files with 18 additions and 0 deletions

View File

@ -272,6 +272,11 @@ class AccountActivity : BaseActivity(), Toolbar.OnMenuItemClickListener, PopupMe
adapter.addAll(info.taskdav!!.journals!!)
listTaskDAV!!.adapter = adapter
listTaskDAV!!.onItemClickListener = onItemClickListener
if (!packageInstalled(this, openTasksPackage)) {
val opentasksWarning = findViewById<View>(R.id.taskdav_opentasks_warning)
opentasksWarning.visibility = View.VISIBLE
}
}
}

View File

@ -131,6 +131,18 @@
android:indeterminate="true"
android:visibility="gone" />
<TextView
android:id="@+id/taskdav_opentasks_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="@string/account_tasks_not_showing"
android:visibility="gone" />
<com.etesync.syncadapter.ui.widget.MaximizedListView
android:id="@+id/tasklists"
android:layout_width="match_parent"

View File

@ -130,6 +130,7 @@
<string name="account_delete_collection_last_text">Deleting the last collection is not allowed, please create a new one if you\'d like to delete this one.</string>
<string name="account_showcase_view_collection">You can click on an item to view the collection. From there you can view the journal, import, and much more...</string>
<string name="account_click_install_tasks">Click here to install OpenTasks!</string>
<string name="account_tasks_not_showing">* Only OpenTasks lists are shown below</string>
<string name="show_fingperprint_title">My Fingerprint</string>