Add looking for contributors message
This commit is contained in:
parent
9fc5893f42
commit
836cdf28a9
2 changed files with 26 additions and 2 deletions
|
@ -63,8 +63,17 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<h5>March 09, 2023</h5>
|
<h3>Looking for maintainers/contributors</h3>
|
||||||
<h2>v6.0.4<span class="tag"><i>Beta</i></span></h2>
|
<p>
|
||||||
|
We are currently seeking maintainers/contributors to help us continue developing and
|
||||||
|
improving our project. If you want to contribute your skills and expertise, you can visit our Github
|
||||||
|
<a style="color: lightblue;" href="https://github.com/RetroMusicPlayer/RetroMusicPlayer">here</a>, pull requests are welcome.
|
||||||
|
The app heavily relies on Kotlin.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5>March 13, 2023</h5>
|
||||||
|
<h2>v6.0.4</h2>
|
||||||
<h3>What's New</h3>
|
<h3>What's New</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Minor redesign in Playlist details screen</li>
|
<li>Minor redesign in Playlist details screen</li>
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
package code.name.monkey.retromusic.activities
|
package code.name.monkey.retromusic.activities
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.content.Intent
|
||||||
import android.content.pm.PackageManager
|
import android.content.pm.PackageManager
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import android.webkit.WebResourceRequest
|
||||||
|
import android.webkit.WebView
|
||||||
|
import android.webkit.WebViewClient
|
||||||
import androidx.core.content.PackageManagerCompat
|
import androidx.core.content.PackageManagerCompat
|
||||||
import androidx.core.content.pm.PackageInfoCompat
|
import androidx.core.content.pm.PackageInfoCompat
|
||||||
import androidx.core.widget.NestedScrollView
|
import androidx.core.widget.NestedScrollView
|
||||||
|
@ -77,6 +81,17 @@ class WhatsNewFragment : BottomSheetDialogFragment() {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
binding.webView.loadData(changeLog, "text/html", "UTF-8")
|
binding.webView.loadData(changeLog, "text/html", "UTF-8")
|
||||||
|
binding.webView.webViewClient = object : WebViewClient() {
|
||||||
|
override fun shouldOverrideUrlLoading(
|
||||||
|
view: WebView?,
|
||||||
|
request: WebResourceRequest?
|
||||||
|
): Boolean {
|
||||||
|
val url = request?.url ?: return false
|
||||||
|
//you can do checks here e.g. url.host equals to target one
|
||||||
|
startActivity(Intent(Intent.ACTION_VIEW, url))
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
binding.webView.loadData(
|
binding.webView.loadData(
|
||||||
"<h1>Unable to load</h1><p>" + e.localizedMessage + "</p>", "text/html", "UTF-8"
|
"<h1>Unable to load</h1><p>" + e.localizedMessage + "</p>", "text/html", "UTF-8"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue