mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
Refactor handleKeyboardInsets()
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run
This commit is contained in:
parent
3f2c75ce11
commit
c09365737f
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ fun View.handleKeyboardInsets() {
|
||||||
val existingBottomMargin = if (view.getTag(R.id.initial_margin_bottom) != null) {
|
val existingBottomMargin = if (view.getTag(R.id.initial_margin_bottom) != null) {
|
||||||
view.getTag(R.id.initial_margin_bottom) as Int
|
view.getTag(R.id.initial_margin_bottom) as Int
|
||||||
} else {
|
} else {
|
||||||
view.setTag(R.id.initial_margin_bottom, marginBottom)
|
view.setTag(R.id.initial_margin_bottom, view.marginBottom)
|
||||||
marginBottom
|
view.marginBottom
|
||||||
}
|
}
|
||||||
|
|
||||||
val lp = layoutParams as MarginLayoutParams
|
val lp = layoutParams as MarginLayoutParams
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue