From ea4fb2f446bf4ddc0be39ce6443c31c572f6b3b2 Mon Sep 17 00:00:00 2001 From: Harald Rudell Date: Sun, 16 Jul 2023 06:05:18 -0700 Subject: [PATCH] Attribution and URL in settings panel --- app/build.gradle | 2 ++ .../audiorecorder/app/settings/SettingsActivity.java | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index eddab7c2..a5cba038 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,6 +14,8 @@ android { targetSdkVersion 33 versionCode 934 versionName "0.9.33-230715" + buildConfigField "String", "Attribution", "\"Harald Rudell\"" + buildConfigField "String", "URL", "\"github.com/haraldrudell/AudioRecorder2023\"" } buildFeatures { diff --git a/app/src/main/java/com/dimowner/audiorecorder/app/settings/SettingsActivity.java b/app/src/main/java/com/dimowner/audiorecorder/app/settings/SettingsActivity.java index d9719355..3afce1e3 100644 --- a/app/src/main/java/com/dimowner/audiorecorder/app/settings/SettingsActivity.java +++ b/app/src/main/java/com/dimowner/audiorecorder/app/settings/SettingsActivity.java @@ -39,6 +39,7 @@ import com.dimowner.audiorecorder.ARApplication; import com.dimowner.audiorecorder.AppConstants; +import com.dimowner.audiorecorder.BuildConfig; import com.dimowner.audiorecorder.ColorMap; import com.dimowner.audiorecorder.R; import com.dimowner.audiorecorder.app.browser.FileBrowserActivity; @@ -394,7 +395,11 @@ private Intent rateIntentForUrl(String url) { public SpannableStringBuilder getAboutContent() { // Build the about body view and append the link to see OSS licenses SpannableStringBuilder aboutBody = new SpannableStringBuilder(); - aboutBody.append(Html.fromHtml(getString(R.string.about_body, AndroidUtils.getAppVersion(getApplicationContext())))); + aboutBody.append(Html.fromHtml( + getString(R.string.about_body,AndroidUtils.getAppVersion(getApplicationContext() ))+ + "

"+BuildConfig.Attribution+ + "

"+BuildConfig.URL + )); return aboutBody; }