Skip to content

Commit

Permalink
Merge pull request #164 from flofriday/debug-indicator
Browse files Browse the repository at this point in the history
Display the debug indicator on the about page
  • Loading branch information
SimonHalvdansson authored Apr 17, 2024
2 parents 47bce6d + 2e7211d commit 2efc6a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ protected void onCreate(Bundle savedInstanceState) {
ThemeUtils.setupTheme(this, false);
setContentView(R.layout.activity_about);

((TextView) findViewById(R.id.about_version)).setText("Version " + BuildConfig.VERSION_NAME);
String versionText = "Version " + BuildConfig.VERSION_NAME;
if (BuildConfig.DEBUG) {
versionText += String.format(" (%s)", BuildConfig.BUILD_TYPE);
}
((TextView) findViewById(R.id.about_version)).setText(versionText);
}

public void openGithub(View v) {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
android:layout_height="wrap_content"/>

<Button
android:layout_marginTop="12dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/product_sans_bold"
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
app:icon="@drawable/ic_link_preview_github"
Expand All @@ -178,6 +178,7 @@


<Button
android:layout_marginBottom="16dp"
android:fontFamily="@font/product_sans_bold"
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
app:icon="@drawable/ic_action_policy"
Expand Down

0 comments on commit 2efc6a0

Please sign in to comment.