hide FAB at the InsertOrEdit activity

This commit is contained in:
tibbi 2022-06-26 09:26:26 +02:00
parent e82481be8e
commit 597316f27b
1 changed files with 2 additions and 5 deletions

View File

@ -48,13 +48,10 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
config = activity.config config = activity.config
if (this.activity == null) { if (this.activity == null) {
this.activity = activity this.activity = activity
fragment_fab?.beGoneIf(activity is InsertOrEditContactActivity)
fragment_fab?.setOnClickListener { fragment_fab?.setOnClickListener {
if (activity is InsertOrEditContactActivity) {
activity.fabClicked()
} else {
fabClicked() fabClicked()
} }
}
fragment_placeholder_2?.setOnClickListener { fragment_placeholder_2?.setOnClickListener {
placeholderClicked() placeholderClicked()