fixed typo

This commit is contained in:
Marcin Jedyński 2018-09-28 02:47:39 +02:00
parent d294f97a49
commit 4bbd4f65db

View File

@ -13,17 +13,17 @@ public class StartupActivity extends AppCompatActivity {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
//uncomment for testin settings activity and comment the rest of onCreate body //uncomment for testin settings activity and comment the rest of onCreate body
// startActivity(new Intent(this, SettingsActivity.class)); startActivity(new Intent(this, SettingsActivity.class));
if (isLoggedIn()){ /* if (isLoggedIn()){
Intent startupIntent = new Intent(this, MainActivity.class); Intent startupIntent = new Intent(this, MainActivity.class);
startupIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); startupIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(startupIntent);gi startActivity(startupIntent);
finish(); finish();
} else { } else {
Intent loginIntent = new Intent(this, LoginActivity.class); Intent loginIntent = new Intent(this, LoginActivity.class);
startActivityForResult(loginIntent, AUTHENTICATION_REQUEST_CODE); startActivityForResult(loginIntent, AUTHENTICATION_REQUEST_CODE);
} }*/
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
//to nie ma miec layoutu wiec elo //to nie ma miec layoutu wiec elo