From 49b18181e7802ea66f9a2a35c6c9064181701abe Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 2 May 2020 22:26:12 -0400 Subject: [PATCH] View extensions cleanup --- .../java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index 0a9f30b3a5..6bb814c03d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -188,12 +188,7 @@ fun View.applyWindowInsetsForRootController(bottomNav: View) { viewTreeObserver.removeOnGlobalLayoutListener(this) setOnApplyWindowInsetsListener { view, insets -> view.updateLayoutParams { - val attrsArray = intArrayOf(android.R.attr.actionBarSize) - val array = view.context.obtainStyledAttributes(attrsArray) - // topMargin = insets.systemWindowInsetTop + array - // .getDimensionPixelSize(0, 0) bottomMargin = bottomNav.height - array.recycle() } insets }