added navbar style option - close #868
This commit is contained in:
parent
c5dc9376de
commit
010ff51c43
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in New Issue