Skip to content

Commit

Permalink
Attribution and URL in settings panel
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldrudell committed Jul 16, 2023
1 parent c8286b5 commit ea4fb2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() ))+
"<br/><br/>"+BuildConfig.Attribution+
"<br/><br/>"+BuildConfig.URL
));
return aboutBody;
}

Expand Down

0 comments on commit ea4fb2f

Please sign in to comment.