Skip to content

Commit

Permalink
Merge pull request #298 from PermanentOrg/feature/VSP-1464
Browse files Browse the repository at this point in the history
Removed Onboarding tutorial.
  • Loading branch information
flaviahandrea-vsp authored Aug 30, 2024
2 parents ee24beb + fb34de1 commit 732f103
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 434 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import org.permanent.permanent.models.Archive
import org.permanent.permanent.models.ArchiveType

const val PREFS_NAME = "permanent_preferences"
const val IS_ONBOARDING_COMPLETED = "onboarding_completed"
const val IS_USER_LOGGED_IN = "is_user_logged_in"
const val IS_BIOMETRICS_LOG_IN = "is_biometrics_log_in"
const val IS_LIST_VIEW_MODE = "is_list_view_mode"
Expand Down Expand Up @@ -41,10 +40,6 @@ const val PREFS_DEEP_LINK_FOLDER_LINK_ID = "preferences_deep_link_folder_link_id

class PreferencesHelper(private val sharedPreferences: SharedPreferences) {

fun isOnboardingCompleted(): Boolean {
return sharedPreferences.getBoolean(IS_ONBOARDING_COMPLETED, false)
}

fun saveUserLoggedIn(isLoggedIn: Boolean) {
with(sharedPreferences.edit()) {
putBoolean(IS_USER_LOGGED_IN, isLoggedIn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import org.permanent.permanent.ui.PreferencesHelper
import org.permanent.permanent.ui.archiveOnboarding.ArchiveOnboardingActivity
import org.permanent.permanent.ui.computeWindowSizeClasses
import org.permanent.permanent.ui.login.LoginActivity
import org.permanent.permanent.ui.onboarding.OnboardingActivity
import org.permanent.permanent.viewmodels.SplashViewModel

class SplashActivity : PermanentBaseActivity() {
Expand Down Expand Up @@ -69,7 +68,6 @@ class SplashActivity : PermanentBaseActivity() {

remoteConfig.fetchAndActivate().addOnCompleteListener(this) {
if (shouldUpdateApp(remoteConfig)) startUpdateAppActivity()
else if (!prefsHelper.isOnboardingCompleted()) startOnboardingActivity()
else if (!prefsHelper.isUserLoggedIn()) startLoginActivity()
else if (prefsHelper.getDefaultArchiveId() == 0) startArchiveOnboardingActivity()
else viewModel.switchArchiveToCurrent()
Expand Down Expand Up @@ -117,11 +115,6 @@ class SplashActivity : PermanentBaseActivity() {
startBiometricsFragment()
}

private fun startOnboardingActivity() {
startActivity(Intent(this@SplashActivity, OnboardingActivity::class.java))
finish()
}

private fun startUpdateAppActivity() {
startActivity(Intent(this@SplashActivity, UpdateAppActivity::class.java))
finish()
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable/img_sharing.png
Binary file not shown.
Binary file removed app/src/main/res/drawable/img_toolbar_logo.png
Binary file not shown.
Loading

0 comments on commit 732f103

Please sign in to comment.