mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 16:30:19 +00:00
Fixed one-handed mode buttons appearance
This commit is contained in:
parent
53a904af1e
commit
ece6a8a3e1
2 changed files with 6 additions and 1 deletions
|
@ -63,8 +63,9 @@ class KeyboardWrapperView @JvmOverloads constructor(
|
|||
switchOneHandedModeBtn.visibility = if (oneHandedModeEnabled) VISIBLE else GONE
|
||||
}
|
||||
|
||||
@SuppressLint("RtlHardcoded")
|
||||
private fun updateSwitchButtonSide() {
|
||||
switchOneHandedModeBtn.scaleX = if (oneHandedGravity == Gravity.RIGHT) -1f else 1f
|
||||
switchOneHandedModeBtn.scaleX = if (oneHandedGravity == Gravity.LEFT) -1f else 1f
|
||||
}
|
||||
|
||||
override fun onClick(view: View) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue