pull/49/head
kunfei 6 years ago
parent 84f41bfc34
commit a2ef487f71
  1. 2
      app/src/main/java/io/legado/app/ui/about/AboutFragment.kt
  2. 1
      app/src/main/java/io/legado/app/ui/about/UpdateLog.kt
  3. 11
      app/src/main/res/layout/dialog_text_view.xml

@ -46,7 +46,7 @@ class AboutFragment : PreferenceFragmentCompat() {
private fun shareText(title: String, text: String) {
try {
val textIntent = Intent(Intent.ACTION_SEND)
textIntent.setType("text/plain")
textIntent.type = "text/plain"
textIntent.putExtra(Intent.EXTRA_TEXT, text)
startActivity(Intent.createChooser(textIntent, title))
} catch (e: Exception) {

@ -29,7 +29,6 @@ class UpdateLog : DialogFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
tool_bar.setTitle(R.string.update_log)
text_view.post {
Markwon.create(requireContext())
.setMarkdown(

@ -1,20 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:elevation="5dp"
app:displayHomeAsUp="false"
app:fitStatusBar="false"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/text_view"
android:layout_width="match_parent"

Loading…
Cancel
Save