Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c5f75de authored by tibbi's avatar tibbi
Browse files

handle the Show Hidden fab item if the primary one isnt shown either

parent 75473986
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.1.5'
        propVersionName = '5.1.6'
        kotlin_version = '1.2.71'
    }

+10 −10
Original line number Diff line number Diff line
@@ -84,8 +84,9 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
                beVisible()
                setOnClickListener { createNewFolder() }
            }
        }

            val secondaryFabBottomMargin = activity.resources.getDimension(R.dimen.secondary_fab_bottom_margin).toInt()
        val secondaryFabBottomMargin = activity.resources.getDimension(if (showFAB) R.dimen.secondary_fab_bottom_margin else R.dimen.activity_margin).toInt()
        mDialogView.filepicker_fab_show_hidden.apply {
            beVisibleIf(!showHidden && canAddShowHiddenButton)
            (layoutParams as CoordinatorLayout.LayoutParams).bottomMargin = secondaryFabBottomMargin
@@ -97,7 +98,6 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
                }
            }
        }
        }

        mDialog = builder.create().apply {
            activity.setupDialogStuff(mDialogView, this, getTitle())