Tasks accounts dont use caldav account settings

pull/1244/head
Alex Baker 5 years ago
parent 71a5a67e52
commit bacee7c781

@ -94,20 +94,16 @@ abstract class BaseCaldavAccountSettingsActivity : ThemedInjectingAppCompatActiv
val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(binding.name, InputMethodManager.SHOW_IMPLICIT)
}
if (needsPurchase) {
if (!inventory.hasPro) {
newSnackbar(getString(R.string.this_feature_requires_a_subscription))
.setDuration(BaseTransientBottomBar.LENGTH_INDEFINITE)
.setAction(R.string.button_subscribe) {
newPurchaseDialog(tasksPayment = caldavAccount?.isTasksOrg ?: false)
.show(supportFragmentManager, FRAG_TAG_PURCHASE_DIALOG)
newPurchaseDialog().show(supportFragmentManager, FRAG_TAG_PURCHASE_DIALOG)
}
.show()
}
}
protected open val needsPurchase: Boolean
get() = !inventory.hasPro
@get:StringRes
protected open val description = 0

Loading…
Cancel
Save