Skip to content

Commit

Permalink
rework onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 21, 2024
1 parent 0d610bc commit 492c675
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 239 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ protected void onCreate(Bundle savedInstanceState) {

ActivityHelper.applyTheme(this);

if(!(new PermissionManager(this)).hasAllRequiredPermissions()) {
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
boolean allPermissionsGranted = (new PermissionManager(this)).hasAllRequiredPermissions();
boolean completedIntroOnce = OnboardingActivity.Companion.completedIntro(this);
if(!allPermissionsGranted || !completedIntroOnce) {
startActivity(new Intent(this, OnboardingActivity.class));
finish();
}

SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);

context = this;
drawerPinnedRemoteIds = new HashMap<>();
Expand Down
Loading

0 comments on commit 492c675

Please sign in to comment.