mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Removed unused field, renamed nickname methods.
This commit is contained in:
@@ -97,12 +97,12 @@ public class AppModule {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAuthorNick(String nickname) {
|
||||
public void setLocalAuthorName(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAuthorNick() {
|
||||
public String getLocalAuthorName() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ public class BriarService extends Service {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
String nickname = databaseConfig.getAuthorNick();
|
||||
String nickname = databaseConfig.getLocalAuthorName();
|
||||
StartResult result = lifecycleManager.startServices(nickname);
|
||||
if (result == SUCCESS) {
|
||||
started = true;
|
||||
|
||||
@@ -9,7 +9,6 @@ import org.briarproject.api.event.EventBus;
|
||||
import org.briarproject.api.event.EventListener;
|
||||
import org.briarproject.api.event.TransportDisabledEvent;
|
||||
import org.briarproject.api.event.TransportEnabledEvent;
|
||||
import org.briarproject.api.identity.IdentityManager;
|
||||
import org.briarproject.api.lifecycle.LifecycleManager;
|
||||
import org.briarproject.api.plugins.Plugin;
|
||||
import org.briarproject.api.plugins.PluginManager;
|
||||
@@ -29,19 +28,16 @@ public class NavDrawerControllerImpl extends DbControllerImpl
|
||||
|
||||
private final PluginManager pluginManager;
|
||||
private final EventBus eventBus;
|
||||
private final IdentityManager identityManager;
|
||||
|
||||
private volatile TransportStateListener listener;
|
||||
|
||||
@Inject
|
||||
NavDrawerControllerImpl(@DatabaseExecutor Executor dbExecutor,
|
||||
LifecycleManager lifecycleManager,
|
||||
PluginManager pluginManager, EventBus eventBus,
|
||||
IdentityManager identityManager) {
|
||||
PluginManager pluginManager, EventBus eventBus) {
|
||||
super(dbExecutor, lifecycleManager);
|
||||
this.pluginManager = pluginManager;
|
||||
this.eventBus = eventBus;
|
||||
this.identityManager = identityManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SetupControllerImpl extends PasswordControllerImpl
|
||||
cryptoExecutor.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
databaseConfig.setAuthorNick(nickname);
|
||||
databaseConfig.setLocalAuthorName(nickname);
|
||||
SecretKey key = crypto.generateSecretKey();
|
||||
databaseConfig.setEncryptionKey(key);
|
||||
String hex = encryptDatabaseKey(key, password);
|
||||
|
||||
@@ -14,9 +14,9 @@ public interface DatabaseConfig {
|
||||
|
||||
SecretKey getEncryptionKey();
|
||||
|
||||
void setAuthorNick(String nickname);
|
||||
void setLocalAuthorName(String nickname);
|
||||
|
||||
String getAuthorNick();
|
||||
String getLocalAuthorName();
|
||||
|
||||
long getMaxSize();
|
||||
}
|
||||
|
||||
@@ -39,12 +39,12 @@ public class TestDatabaseConfig implements DatabaseConfig {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAuthorNick(String nickname) {
|
||||
public void setLocalAuthorName(String nickname) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAuthorNick() {
|
||||
public String getLocalAuthorName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user