Add a notice about only OpenTasks lists showing in app.

pull/122/head
Tom Hacohen 4 years ago
parent 55d90d9a9d
commit 3103d4d42a

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

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

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

Loading…
Cancel
Save