Skip to content

Commit 597316f

Browse files
committed
hide FAB at the InsertOrEdit activity
1 parent e82481b commit 597316f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
4848
config = activity.config
4949
if (this.activity == null) {
5050
this.activity = activity
51+
fragment_fab?.beGoneIf(activity is InsertOrEditContactActivity)
5152
fragment_fab?.setOnClickListener {
52-
if (activity is InsertOrEditContactActivity) {
53-
activity.fabClicked()
54-
} else {
55-
fabClicked()
56-
}
53+
fabClicked()
5754
}
5855

5956
fragment_placeholder_2?.setOnClickListener {

0 commit comments

Comments
 (0)