hide FAB at the InsertOrEdit activity
This commit is contained in:
parent
e82481be8e
commit
597316f27b
|
@ -48,13 +48,10 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||
config = activity.config
|
||||
if (this.activity == null) {
|
||||
this.activity = activity
|
||||
fragment_fab?.beGoneIf(activity is InsertOrEditContactActivity)
|
||||
fragment_fab?.setOnClickListener {
|
||||
if (activity is InsertOrEditContactActivity) {
|
||||
activity.fabClicked()
|
||||
} else {
|
||||
fabClicked()
|
||||
}
|
||||
}
|
||||
|
||||
fragment_placeholder_2?.setOnClickListener {
|
||||
placeholderClicked()
|
||||
|
|
Loading…
Reference in New Issue