Skip to content

Commit c4e8baa

Browse files
ikichathestinger
authored andcommitted
Set error activity scrollable
Bug: N/A Test: scroll in error activity Change-Id: I77d7a0ba6fa9cfabf6fd560517e7d147d45dfda7
1 parent 1dd6c91 commit c4e8baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/TerminalApp/java/com/android/virtualization/terminal/ErrorActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package com.android.virtualization.terminal
1818
import android.content.Context
1919
import android.content.Intent
2020
import android.os.Bundle
21+
import android.text.method.ScrollingMovementMethod
2122
import android.view.View
2223
import android.widget.TextView
2324
import java.io.IOException
@@ -34,6 +35,7 @@ class ErrorActivity : BaseActivity() {
3435

3536
val button = findViewById<View>(R.id.recovery)
3637
button.setOnClickListener(View.OnClickListener { _ -> launchRecoveryActivity() })
38+
findViewById<TextView>(R.id.cause).setMovementMethod(ScrollingMovementMethod())
3739
}
3840

3941
override fun onNewIntent(intent: Intent) {

0 commit comments

Comments
 (0)