Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Apr 20, 2020
1 parent 2b9dfa1 commit ad1bb13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import mozilla.components.browser.session.Session
import mozilla.components.browser.session.SessionManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class TabTrayFragment : Fragment(), TabsTray.Observer, UserInteractionHandler {
tabsTray,
requireComponents.core.store,
requireComponents.useCases.tabsUseCases,
// TODO: This is gross and cannot be good...but appears to work
{ it.content.private == (activity as HomeActivity?)?.browsingModeManager?.mode?.isPrivate },
::closeTabsTray)

Expand Down Expand Up @@ -195,7 +194,6 @@ class TabTrayFragment : Fragment(), TabsTray.Observer, UserInteractionHandler {

private fun closeTabsTray() {
activity?.supportFragmentManager?.beginTransaction()?.apply {
//replace(R.id.container, BrowserFragment.create())
commit()
}
}
Expand Down Expand Up @@ -227,7 +225,7 @@ class TabTrayFragment : Fragment(), TabsTray.Observer, UserInteractionHandler {
private fun onTabsChanged() {
val hasNoTabs = getListOfSessions().toList().isEmpty()

view?.tab_tray_empty_view?.visibility = if(hasNoTabs) {
view?.tab_tray_empty_view?.visibility = if (hasNoTabs) {
View.VISIBLE
} else {
View.GONE
Expand All @@ -236,7 +234,7 @@ class TabTrayFragment : Fragment(), TabsTray.Observer, UserInteractionHandler {
view?.announceForAccessibility(view?.context?.getString(R.string.no_open_tabs_description))
}

view?.saveToCollection?.visibility = if(hasNoTabs) {
view?.saveToCollection?.visibility = if (hasNoTabs) {
View.GONE
} else {
View.VISIBLE
Expand Down

0 comments on commit ad1bb13

Please sign in to comment.