react-native-mytatva-rn-sdk 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,7 +90,7 @@ class ConnectSensorActivity : BaseBleActivity() {
|
|
|
90
90
|
max(systemBars.bottom, ime.bottom)
|
|
91
91
|
)
|
|
92
92
|
if (isManualInputVisible && ime.bottom > 0) {
|
|
93
|
-
binding.
|
|
93
|
+
binding.connectSensorScroll.post { scrollToManualConnectButton() }
|
|
94
94
|
}
|
|
95
95
|
insets
|
|
96
96
|
}
|
|
@@ -166,12 +166,12 @@ class ConnectSensorActivity : BaseBleActivity() {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
binding.etSensorId.setOnClickListener {
|
|
169
|
-
binding.
|
|
169
|
+
binding.connectSensorScroll.postDelayed({ scrollToManualConnectButton() }, 100)
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
binding.etSensorId.setOnFocusChangeListener { _, hasFocus ->
|
|
173
173
|
if (hasFocus) {
|
|
174
|
-
binding.
|
|
174
|
+
binding.connectSensorScroll.postDelayed({ scrollToManualConnectButton() }, 300)
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -207,8 +207,8 @@ class ConnectSensorActivity : BaseBleActivity() {
|
|
|
207
207
|
return
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
binding.
|
|
211
|
-
val scrollView = binding.
|
|
210
|
+
binding.connectSensorScroll.post {
|
|
211
|
+
val scrollView = binding.connectSensorScroll
|
|
212
212
|
val connectButton = binding.btnConnectManual
|
|
213
213
|
|
|
214
214
|
val buttonLocation = IntArray(2)
|
|
@@ -239,7 +239,7 @@ class ConnectSensorActivity : BaseBleActivity() {
|
|
|
239
239
|
binding.tvEnterIdManually.text = "Scan QR"
|
|
240
240
|
binding.etSensorId.text?.clear()
|
|
241
241
|
updateManualConnectButtonState()
|
|
242
|
-
binding.
|
|
242
|
+
binding.connectSensorScroll.post { scrollToManualConnectButton() }
|
|
243
243
|
} else {
|
|
244
244
|
binding.clManualInput.visibility = View.GONE
|
|
245
245
|
binding.clPermission.visibility = View.VISIBLE
|