Skip to content

Commit

Permalink
only show onboarding intro first time
Browse files Browse the repository at this point in the history
app is launched after install, and
not every time
  • Loading branch information
Shaji Khan committed Mar 30, 2024
1 parent a08bd01 commit 1dba965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.shajikhan.ladspa.amprack"
minSdk 24
targetSdk 33
versionCode 80
versionName '4.01'
versionCode 81
versionName '4.02'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ protected void onCreate(Bundle savedInstanceState) {

Log.d(TAG, "onCreate: " + String.format("" +
"%d: %d", BuildConfig.VERSION_CODE, defaultSharedPreferences.getInt("currentVersion", 0)));
if (BuildConfig.VERSION_CODE > defaultSharedPreferences.getInt("currentVersion", 0)) {
// if (BuildConfig.VERSION_CODE > defaultSharedPreferences.getInt("currentVersion", 0)) {
// only show onboard when first installed
if (defaultSharedPreferences.getInt("currentVersion", 0) == 0) {
Log.d(TAG, "onCreate: " + String.format(
"Version Code: %d\t\tcurrent version: %d",
BuildConfig.VERSION_CODE, defaultSharedPreferences.getInt("currentVersion", 0)
Expand Down

0 comments on commit 1dba965

Please sign in to comment.