File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/src/main/java/chat/rocket/android/authentication/server/ui Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import android.view.ViewGroup
7
7
import android.view.ViewTreeObserver
8
8
import android.widget.AdapterView
9
9
import android.widget.ArrayAdapter
10
+ import android.widget.ScrollView
10
11
import android.widget.Toast
11
12
import androidx.core.content.ContextCompat
12
13
import androidx.core.net.toUri
@@ -52,8 +53,10 @@ class ServerFragment : Fragment(), ServerView {
52
53
private var protocol = " https://"
53
54
private lateinit var serverUrlDisposable: Disposable
54
55
private val layoutListener = ViewTreeObserver .OnGlobalLayoutListener {
55
- text_server_url.isCursorVisible =
56
- KeyboardHelper .isSoftKeyboardShown(scroll_view.rootView)
56
+ if (KeyboardHelper .isSoftKeyboardShown(scroll_view.rootView)) {
57
+ scroll_view.fullScroll(ScrollView .FOCUS_DOWN )
58
+ text_server_url.isCursorVisible = true
59
+ }
57
60
}
58
61
59
62
override fun onCreate (savedInstanceState : Bundle ? ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ buildscript {
10
10
}
11
11
12
12
dependencies {
13
- classpath ' com.android.tools.build:gradle:3.3.0-alpha12 '
13
+ classpath ' com.android.tools.build:gradle:3.3.0-alpha13 '
14
14
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:${ versions.kotlin} "
15
15
classpath " org.jetbrains.dokka:dokka-gradle-plugin:${ versions.dokka} "
16
16
classpath ' com.google.gms:google-services:4.0.2'
You can’t perform that action at this time.
0 commit comments