mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
cleanup and minor refactoring
This commit is contained in:
@@ -8,8 +8,6 @@ public interface BriarController extends ActivityLifecycleController {
|
||||
|
||||
void startAndBindService();
|
||||
|
||||
void unbindService();
|
||||
|
||||
boolean encryptionKey();
|
||||
|
||||
void signOut(ResultHandler<Void> eventHandler);
|
||||
|
||||
@@ -45,6 +45,7 @@ public class BriarControllerImp implements BriarController {
|
||||
@Override
|
||||
@CallSuper
|
||||
public void onActivityCreate() {
|
||||
LOG.info("onActivityCreate : " + databaseConfig.getEncryptionKey());
|
||||
if (databaseConfig.getEncryptionKey() != null) startAndBindService();
|
||||
}
|
||||
|
||||
@@ -97,7 +98,7 @@ public class BriarControllerImp implements BriarController {
|
||||
}.start();
|
||||
}
|
||||
|
||||
public void unbindService() {
|
||||
private void unbindService() {
|
||||
if (bound) activity.unbindService(serviceConnection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user