From 010ff51c4343350451f12c6370e0af91ed2cb40b Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 28 Jun 2017 21:27:47 +0800 Subject: [PATCH] added navbar style option - close #868 --- .../org/mariotaku/twidere/activity/QuickSearchBarActivity.kt | 3 +-- twidere/src/main/res/layout/fragment_content_recyclerview.xml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/QuickSearchBarActivity.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/QuickSearchBarActivity.kt index c4ca280d1..5920e473f 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/QuickSearchBarActivity.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/QuickSearchBarActivity.kt @@ -332,10 +332,9 @@ class QuickSearchBarActivity : BaseActivity(), OnClickListener, LoaderCallbacks< private fun updateWindowAttributes() { val window = window ?: return - val systemWindowsInsets = systemWindowsInsets ?: return val attributes = window.attributes attributes.gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL - attributes.y = systemWindowsInsets.top + attributes.y = systemWindowsInsets?.top ?: 0 window.attributes = attributes } diff --git a/twidere/src/main/res/layout/fragment_content_recyclerview.xml b/twidere/src/main/res/layout/fragment_content_recyclerview.xml index 0ce9c4b1a..d8cf1b165 100644 --- a/twidere/src/main/res/layout/fragment_content_recyclerview.xml +++ b/twidere/src/main/res/layout/fragment_content_recyclerview.xml @@ -26,8 +26,7 @@ android:id="@+id/swipeLayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:clipToPadding="false" - android:fitsSystemWindows="true"> + android:clipToPadding="false">