Skip to content

Commit

Permalink
Android make hint text selectable & add links handling (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderZhu authored Aug 29, 2023
1 parent 27b2131 commit d5247df
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.hyperskill.app.android.step_quiz_hints.delegate

import android.content.Context
import android.text.method.LinkMovementMethod
import androidx.core.view.isVisible
import coil.ImageLoader
import coil.load
Expand All @@ -27,6 +28,9 @@ class StepQuizHintsDelegate(
}

with(stepQuizHintCard) {
stepQuizHintContentTextView.movementMethod = LinkMovementMethod.getInstance()
stepQuizHintContentTextView.setTextIsSelectable(true)

stepQuizSeeNextHintButton.root.setText(org.hyperskill.app.R.string.step_quiz_hints_see_next_hint)
stepQuizSeeNextHintButton.root.setOnClickListener {
onNewMessage(StepQuizHintsFeature.Message.LoadHintButtonClicked)
Expand Down

0 comments on commit d5247df

Please sign in to comment.