Skip to content
Snippets Groups Projects
Unverified Commit 11bfa212 authored by Ernir Erlingsson's avatar Ernir Erlingsson
Browse files

minor tweaks

parent 85c66417
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ android {
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 10
minSdkVersion 9
targetSdkVersion 22
versionCode 1
versionName "1.0"
......
......@@ -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));
}
}
}
......
......@@ -28,7 +28,7 @@ public class DataModule {
}
@Provides
MetadataEncoder provideMetaDataEncoider(BdfWriterFactory bdfWriterFactory) {
MetadataEncoder provideMetaDataEncoder(BdfWriterFactory bdfWriterFactory) {
return new MetadataEncoderImpl(bdfWriterFactory);
}
......
......@@ -9,6 +9,8 @@ import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
......@@ -72,6 +74,7 @@ public class TestLifecycleModule {
@Provides
@IoExecutor
@Singleton
Executor provideExecutor() {
return Executors.newCachedThreadPool();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment