Skip to content

Commit

Permalink
Reveal keyboard for BT's TextElement
Browse files Browse the repository at this point in the history
Version 2.5.0 did not support a programmatic way to reveal
the keyboard when it's TextElement's were focussed but
their version 4.2.0 does.

(this commit also lowkey applies spotless)

Signed-off-by: Devin Morgan <[email protected]>
  • Loading branch information
devinmorgan committed Apr 25, 2024
1 parent 3b04d37 commit a9653ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forage-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ dependencies {
api 'com.verygoodsecurity:vgscollect:1.7.3'

// Basis Theory SDK
implementation ('com.github.basis-theory:basistheory-android:2.5.0') {
implementation ('com.github.basis-theory:basistheory-android:4.2.0') {
// Unable to build without excluding this dependency
// based on advice from this thread: https://github.com/gradle/gradle/issues/3065#issuecomment-341418873
exclude group: 'javax.ws.rs'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ class ForagePINEditText @JvmOverloads constructor(
private val forageVaultWrapper: ForageVaultWrapper

override fun showKeyboard() {
if (vault.getVaultType() == VaultType.VGS_VAULT_TYPE)
if (vault.getVaultType() == VaultType.VGS_VAULT_TYPE) {
vault.getVGSEditText().showKeyboard()
}
if (vault.getVaultType() == VaultType.BT_VAULT_TYPE) {
TODO("currently blocked by BT's lack of this functionality")
vault.getTextElement().showKeyboard(0)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class FlowBalanceFragment : Fragment() {
foragePinEditText.showKeyboard()
}


override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down

0 comments on commit a9653ba

Please sign in to comment.