Skip to content

Commit 9babe73

Browse files
committed
add version
1 parent f08fef0 commit 9babe73

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

claimManagement/src/main/java/org/openimis/imisclaims/About.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
package org.openimis.imisclaims;
22

33
import android.os.Bundle;
4+
import android.widget.TextView;
45

56
public class About extends ImisActivity {
7+
TextView appVersion;
68
@Override
79
protected void onCreate(Bundle savedInstanceState) {
810
super.onCreate(savedInstanceState);
911
setContentView(R.layout.activity_about);
12+
appVersion = findViewById(R.id.tvAppVersion);
13+
appVersion.setText(BuildConfig.VERSION_NAME);
1014

1115
if (actionBar != null) {
1216
actionBar.setTitle("");

claimManagement/src/main/res/layout/activity_about.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
android:layout_height="match_parent"
4040
android:layout_weight="1" />
4141
<TextView
42+
android:id="@+id/tvAppVersion"
4243
android:layout_width="wrap_content"
4344
android:layout_height="match_parent"
4445
android:layout_marginStart="10dp"

0 commit comments

Comments
 (0)