hide FAB at the InsertOrEdit activity
This commit is contained in:
parent
e82481be8e
commit
597316f27b
|
@ -48,12 +48,9 @@ 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) {
|
fabClicked()
|
||||||
activity.fabClicked()
|
|
||||||
} else {
|
|
||||||
fabClicked()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment_placeholder_2?.setOnClickListener {
|
fragment_placeholder_2?.setOnClickListener {
|
||||||
|
|
Loading…
Reference in New Issue