mirror of
https://github.com/home-assistant/android
synced 2024-09-19 16:11:37 +00:00
Fix changelog link by removing full and minimal reference (#980)
This commit is contained in:
parent
2a3d304674
commit
e98ddbb43b
|
@ -130,7 +130,7 @@ class SettingsFragment : PreferenceFragmentCompat(), SettingsView {
|
||||||
findPreference<Preference>("changelog")?.let {
|
findPreference<Preference>("changelog")?.let {
|
||||||
val link = if (BuildConfig.VERSION_NAME.startsWith("LOCAL"))
|
val link = if (BuildConfig.VERSION_NAME.startsWith("LOCAL"))
|
||||||
"https://github.com/home-assistant/android/releases"
|
"https://github.com/home-assistant/android/releases"
|
||||||
else "https://github.com/home-assistant/android/releases/tag/${BuildConfig.VERSION_NAME}"
|
else "https://github.com/home-assistant/android/releases/tag/${BuildConfig.VERSION_NAME.replace("-full", "").replace("-minimal", "")}"
|
||||||
it.summary = link
|
it.summary = link
|
||||||
val intent = Intent()
|
val intent = Intent()
|
||||||
intent.action = "android.intent.action.VIEW"
|
intent.action = "android.intent.action.VIEW"
|
||||||
|
|
Loading…
Reference in a new issue