app/src/main/java/com/lumoculus/sleeptide/SettingsActivity.java
//if true, user came directly from the onboarding screen
if true, user came directly from the onboarding screen
if true user came directly from the onboarding screen
@Override
    public void onBuildHeaders(List<Header> target) {
        mIntentReceived = getIntent();
        if(mIntentReceived.getExtras() !=null)
            isFirstTime = mIntentReceived.getBooleanExtra(getString(R.string.Sender), true);
        loadHeadersFromResource(R.xml.pref_headers, target);
        setContentView(R.layout.activity_settings);
        Toolbar mToolbar=(Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(mToolbar);
        ActionBar mBar = getSupportActionBar();
        mBar.setTitle(getString(R.string.title_activity_settings));
    }
@ Override public void onBuildHeaders ( List < Header > target ) { mIntentReceived = getIntent ( ) ; if ( mIntentReceived . getExtras ( ) != null ) isFirstTime = mIntentReceived . getBooleanExtra ( getString ( R . string . Sender ) , true ) ; loadHeadersFromResource ( R . xml . pref_headers , target ) ; setContentView ( R . layout . activity_settings ) ; Toolbar mToolbar = ( Toolbar ) findViewById ( R . id . toolbar ) ; setSupportActionBar ( mToolbar ) ; ActionBar mBar = getSupportActionBar ( ) ; mBar . setTitle ( getString ( R . string . title_activity_settings ) ) ; }
if true, user came directly from the onboarding screen
if true user came directly from the onboarding screen