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 val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(binding.name, InputMethodManager.SHOW_IMPLICIT) imm.showSoftInput(binding.name, InputMethodManager.SHOW_IMPLICIT)
} }
if (needsPurchase) { if (!inventory.hasPro) {
newSnackbar(getString(R.string.this_feature_requires_a_subscription)) newSnackbar(getString(R.string.this_feature_requires_a_subscription))
.setDuration(BaseTransientBottomBar.LENGTH_INDEFINITE) .setDuration(BaseTransientBottomBar.LENGTH_INDEFINITE)
.setAction(R.string.button_subscribe) { .setAction(R.string.button_subscribe) {
newPurchaseDialog(tasksPayment = caldavAccount?.isTasksOrg ?: false) newPurchaseDialog().show(supportFragmentManager, FRAG_TAG_PURCHASE_DIALOG)
.show(supportFragmentManager, FRAG_TAG_PURCHASE_DIALOG)
} }
.show() .show()
} }
} }
protected open val needsPurchase: Boolean
get() = !inventory.hasPro
@get:StringRes @get:StringRes
protected open val description = 0 protected open val description = 0

Loading…
Cancel
Save