Skip to content

Commit

Permalink
refine indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Sep 23, 2021
1 parent a418d0d commit 884ca00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class NinjaWebViewClient(
if (config.saveHistory && !ninjaWebView.incognito && !isTranslationDomain(url)) {
addHistoryAction(url)
}

if (url.contains("facebook.com")) {
ninjaWebView.removeFBSponsoredPosts()
}
Expand Down
10 changes: 6 additions & 4 deletions app/src/main/java/de/baumann/browser/view/TwoPaneLayout.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ import de.baumann.browser.unit.ViewUnit.dp

class TwoPaneLayout : FrameLayout {
@JvmOverloads
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : super(context, attrs, defStyleAttr) {
constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : super(context, attrs, defStyleAttr) {
initAttributes(attrs)

initDragHandle()
this.doOnLayout {
initViews()
}
doOnLayout { initViews() }
}

private val binding: TwoPaneLayoutBinding = TwoPaneLayoutBinding.inflate(LayoutInflater.from(context), this)
Expand Down

0 comments on commit 884ca00

Please sign in to comment.