|
@ -33,6 +33,7 @@ public class AboutActivity extends BaseActivity { |
|
|
super.onCreate(savedInstanceState); |
|
|
super.onCreate(savedInstanceState); |
|
|
setContentView(R.layout.activity_about); |
|
|
setContentView(R.layout.activity_about); |
|
|
String versionName = BuildConfig.VERSION_NAME; |
|
|
String versionName = BuildConfig.VERSION_NAME; |
|
|
|
|
|
String buildType = BuildConfig.BUILD_TYPE; |
|
|
|
|
|
|
|
|
//Initialize appbar
|
|
|
//Initialize appbar
|
|
|
appBar = findViewById(R.id.appbar); |
|
|
appBar = findViewById(R.id.appbar); |
|
@ -54,7 +55,12 @@ public class AboutActivity extends BaseActivity { |
|
|
|
|
|
|
|
|
TextView tv = findViewById(R.id.version); |
|
|
TextView tv = findViewById(R.id.version); |
|
|
if (tv != null) |
|
|
if (tv != null) |
|
|
|
|
|
{ |
|
|
|
|
|
if(buildType.equals("debug")) |
|
|
|
|
|
tv.setText(getString(R.string.version, versionName + "-debug")); |
|
|
|
|
|
else |
|
|
tv.setText(getString(R.string.version, versionName)); |
|
|
tv.setText(getString(R.string.version, versionName)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
tv.setOnClickListener(new View.OnClickListener() { |
|
|
tv.setOnClickListener(new View.OnClickListener() { |
|
|
@Override |
|
|
@Override |
|
|