mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Make links in new update dialog clickable
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
This commit is contained in:
		@@ -2,6 +2,9 @@ package eu.kanade.tachiyomi.ui.more
 | 
			
		||||
 | 
			
		||||
import android.app.Dialog
 | 
			
		||||
import android.os.Bundle
 | 
			
		||||
import android.text.method.LinkMovementMethod
 | 
			
		||||
import android.view.View
 | 
			
		||||
import android.widget.TextView
 | 
			
		||||
import androidx.core.os.bundleOf
 | 
			
		||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
 | 
			
		||||
import eu.kanade.tachiyomi.R
 | 
			
		||||
@@ -41,6 +44,14 @@ class NewUpdateDialogController(bundle: Bundle? = null) : DialogController(bundl
 | 
			
		||||
            }
 | 
			
		||||
            .create()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    override fun onAttach(view: View) {
 | 
			
		||||
        super.onAttach(view)
 | 
			
		||||
 | 
			
		||||
        // Make links in Markdown text clickable
 | 
			
		||||
        (dialog?.findViewById(android.R.id.message) as? TextView)?.movementMethod =
 | 
			
		||||
            LinkMovementMethod.getInstance()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
private const val BODY_KEY = "NewUpdateDialogController.body"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user