Revision 703aee64
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogAbout.java | ||
---|---|---|
26 | 26 |
import androidx.fragment.app.FragmentActivity; |
27 | 27 |
import androidx.appcompat.app.AlertDialog; |
28 | 28 |
import androidx.appcompat.app.AppCompatDialogFragment; |
29 |
|
|
30 |
import android.text.method.LinkMovementMethod; |
|
29 | 31 |
import android.view.LayoutInflater; |
30 | 32 |
import android.view.View; |
31 | 33 |
import android.view.Window; |
... | ... | |
65 | 67 |
String appName = getString(R.string.app_name); |
66 | 68 |
String appVers = getString(R.string.app_version); |
67 | 69 |
text.setText(getString(R.string.ap_placeholder,appName, appVers)); |
70 |
|
|
71 |
TextView text1 = view.findViewById(R.id.about_section1); |
|
72 |
text1.setMovementMethod(LinkMovementMethod.getInstance()); |
|
73 |
TextView text2 = view.findViewById(R.id.about_section2); |
|
74 |
text2.setMovementMethod(LinkMovementMethod.getInstance()); |
|
75 |
|
|
68 | 76 |
builder.setView(view); |
69 | 77 |
|
70 | 78 |
Dialog dialog = builder.create(); |
Also available in: Unified diff
Fix clickable links in the About dialog.