minor tweaks

This commit is contained in:
Ernir Erlingsson
2016-03-14 20:54:59 +01:00
parent 85c66417b5
commit 11bfa212cc
4 changed files with 11 additions and 10 deletions

View File

@@ -86,14 +86,12 @@ public class SplashScreenActivity extends BaseActivity {
} else {
String hex = getEncryptedDatabaseKey();
if (dbConfig != null) {
if (hex != null && dbConfig.databaseExists()) {
startActivity(new Intent(this, NavDrawerActivity.class));
} else {
clearSharedPrefs();
AndroidUtils.deleteAppData(this);
startActivity(new Intent(this, SetupActivity.class));
}
if (hex != null && dbConfig.databaseExists()) {
startActivity(new Intent(this, NavDrawerActivity.class));
} else {
clearSharedPrefs();
AndroidUtils.deleteAppData(this);
startActivity(new Intent(this, SetupActivity.class));
}
}
}