mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
minor tweaks
This commit is contained in:
@@ -13,7 +13,7 @@ android {
|
|||||||
buildToolsVersion "23.0.2"
|
buildToolsVersion "23.0.2"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 10
|
minSdkVersion 9
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
|||||||
@@ -86,14 +86,12 @@ public class SplashScreenActivity extends BaseActivity {
|
|||||||
} else {
|
} else {
|
||||||
String hex = getEncryptedDatabaseKey();
|
String hex = getEncryptedDatabaseKey();
|
||||||
|
|
||||||
if (dbConfig != null) {
|
if (hex != null && dbConfig.databaseExists()) {
|
||||||
if (hex != null && dbConfig.databaseExists()) {
|
startActivity(new Intent(this, NavDrawerActivity.class));
|
||||||
startActivity(new Intent(this, NavDrawerActivity.class));
|
} else {
|
||||||
} else {
|
clearSharedPrefs();
|
||||||
clearSharedPrefs();
|
AndroidUtils.deleteAppData(this);
|
||||||
AndroidUtils.deleteAppData(this);
|
startActivity(new Intent(this, SetupActivity.class));
|
||||||
startActivity(new Intent(this, SetupActivity.class));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class DataModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
MetadataEncoder provideMetaDataEncoider(BdfWriterFactory bdfWriterFactory) {
|
MetadataEncoder provideMetaDataEncoder(BdfWriterFactory bdfWriterFactory) {
|
||||||
return new MetadataEncoderImpl(bdfWriterFactory);
|
return new MetadataEncoderImpl(bdfWriterFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import java.util.concurrent.Executor;
|
|||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
|
import javax.inject.Singleton;
|
||||||
|
|
||||||
import dagger.Module;
|
import dagger.Module;
|
||||||
import dagger.Provides;
|
import dagger.Provides;
|
||||||
|
|
||||||
@@ -72,6 +74,7 @@ public class TestLifecycleModule {
|
|||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
@IoExecutor
|
@IoExecutor
|
||||||
|
@Singleton
|
||||||
Executor provideExecutor() {
|
Executor provideExecutor() {
|
||||||
return Executors.newCachedThreadPool();
|
return Executors.newCachedThreadPool();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user