Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Jun 8, 2018
1 parent ba96c94 commit a63e7e4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ abstract class BaseBlueprintActivity : BaseFramesActivity<BPKonfigs>() {
private fun initFAB() {
fab?.setMarginRight(16F.dpToPx.toInt())
fab?.setMarginBottom((if (hasBottomNavigation()) 72F else 16F).dpToPx.toInt())
fab?.setOnClickListener {
when (currentSectionId) {
DEFAULT_HOME_SECTION_ID -> executeLauncherIntent(defaultLauncher?.name.orEmpty())
DEFAULT_REQUEST_SECTION_ID -> startRequestsProcess()
DEFAULT_ICONS_SECTION_ID -> showFiltersBottomSheet()
}
}
updateFAB()
}

Expand All @@ -201,13 +208,6 @@ abstract class BaseBlueprintActivity : BaseFramesActivity<BPKonfigs>() {
else -> null
}
fab?.setImageDrawable(icon?.tint(getActiveIconsColorFor(accentColor, 0.6F)))
fab?.setOnClickListener {
when (currentSectionId) {
DEFAULT_HOME_SECTION_ID -> executeLauncherIntent(defaultLauncher?.name.orEmpty())
DEFAULT_REQUEST_SECTION_ID -> startRequestsProcess()
DEFAULT_ICONS_SECTION_ID -> showFiltersBottomSheet()
}
}
fab?.showIf(
(currentSectionId == DEFAULT_HOME_SECTION_ID && launcherName.hasContent())
|| currentSectionId == DEFAULT_REQUEST_SECTION_ID
Expand Down

0 comments on commit a63e7e4

Please sign in to comment.