Skip to content

Commit

Permalink
Version Code is loaded from BuildConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamuno committed Apr 16, 2018
1 parent 3a6e44a commit 935e8b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.view.View;
import android.widget.TextView;

import org.secuso.privacyfriendlyrockpaperscissorsboardgame.BuildConfig;
import org.secuso.privacyfriendlyrockpaperscissorsboardgame.R;

public class AboutActivity extends AppCompatActivity {
Expand All @@ -28,6 +29,8 @@ protected void onCreate(Bundle savedInstanceState) {
}

overridePendingTransition(0, 0);

((TextView)findViewById(R.id.textFieldVersion)).setText(getString(R.string.sVersionNumber, BuildConfig.VERSION_NAME));
}

//@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<!-- About -->
<string name="sAbout">About</string>
<string name="sApp_name_prefix">Privacy Friendly Rock Paper Scissors Board Game</string>
<string name="sVersionNumber" translatable="false">1.0</string>
<string name="sVersionNumber" translatable="false">Version v%s</string>
<string name="sAboutAuthor">Author:</string>
<string name="sAboutAuthorName">David Giessing and contributors</string>
<string name="sAboutAffiliation">In affiliation with</string>
Expand Down

0 comments on commit 935e8b9

Please sign in to comment.