File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
java/com/omarea/krscript/ui Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,10 @@ class DialogLogFragment : DialogFragment() {
244244
245245 override fun updateLog (msg : SpannableString ? ) {
246246 val logView = logViewRef.get() ? : return
247- val scrollView = logView.parent as ? ScrollView ? : return
248247 msg?.let {
249248 logView.post {
250- val isAtBottom = (logView.bottom - (scrollView.height + scrollView.scrollY)) <= 50
251249 logView.append(it)
252- if (isAtBottom) {
253- scrollView.fullScroll(ScrollView .FOCUS_DOWN )
254- }
250+ (logView.parent as ? ScrollView )?.fullScroll(ScrollView .FOCUS_DOWN )
255251 }
256252 }
257253 }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 style =" @style/dialogRoot"
4+ android : animateLayoutChanges =" true"
45 android : clickable =" true"
56 android : focusable =" true" >
67
You can’t perform that action at this time.
0 commit comments