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
|
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()
|
||||||
|
|
Loading…
Reference in New Issue