Apply window insets to SwipeRefreshLayout in AccountActivity to not obscure spinner (#4371)
before & after <img src="https://github.com/tuskyapp/Tusky/assets/10157047/b029f5ff-9b17-48be-b306-a2e7e03ef6f7" width="240"/> <img src="https://github.com/tuskyapp/Tusky/assets/10157047/ea9d3aa8-1f76-4709-9677-f478e2e0064a" width="240"/>
This commit is contained in:
parent
546145da88
commit
2504f42f7b
2 changed files with 6 additions and 0 deletions
|
@ -318,6 +318,10 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvide
|
||||||
bottom = bottom,
|
bottom = bottom,
|
||||||
left = left
|
left = left
|
||||||
)
|
)
|
||||||
|
binding.swipeToRefreshLayout.setProgressViewEndTarget(
|
||||||
|
false,
|
||||||
|
top + resources.getDimensionPixelSize(R.dimen.account_swiperefresh_distance)
|
||||||
|
)
|
||||||
|
|
||||||
WindowInsetsCompat.CONSUMED
|
WindowInsetsCompat.CONSUMED
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,4 +73,6 @@
|
||||||
<dimen name="profile_badge_icon_start_padding">8dp</dimen>
|
<dimen name="profile_badge_icon_start_padding">8dp</dimen>
|
||||||
<dimen name="profile_badge_icon_end_padding">0dp</dimen>
|
<dimen name="profile_badge_icon_end_padding">0dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="account_swiperefresh_distance">64dp</dimen>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue