Fix changelog link by removing full and minimal reference (#980)

This commit is contained in:
Daniel Shokouhi 2020-09-28 12:35:47 -07:00 committed by GitHub
parent 2a3d304674
commit e98ddbb43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ class SettingsFragment : PreferenceFragmentCompat(), SettingsView {
findPreference<Preference>("changelog")?.let {
val link = if (BuildConfig.VERSION_NAME.startsWith("LOCAL"))
"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
val intent = Intent()
intent.action = "android.intent.action.VIEW"