added navbar style option - close #868

This commit is contained in:
Mariotaku Lee 2017-06-28 21:27:47 +08:00
parent c5dc9376de
commit 010ff51c43
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 2 additions and 4 deletions

View File

@ -332,10 +332,9 @@ class QuickSearchBarActivity : BaseActivity(), OnClickListener, LoaderCallbacks<
private fun updateWindowAttributes() { private fun updateWindowAttributes() {
val window = window ?: return val window = window ?: return
val systemWindowsInsets = systemWindowsInsets ?: return
val attributes = window.attributes val attributes = window.attributes
attributes.gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL attributes.gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL
attributes.y = systemWindowsInsets.top attributes.y = systemWindowsInsets?.top ?: 0
window.attributes = attributes window.attributes = attributes
} }

View File

@ -26,8 +26,7 @@
android:id="@+id/swipeLayout" android:id="@+id/swipeLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:clipToPadding="false" android:clipToPadding="false">
android:fitsSystemWindows="true">
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"