diff --git a/briar-android/src/org/briarproject/system/AndroidSystemModule.java b/briar-android/src/org/briarproject/system/AndroidSystemModule.java index 77aa22446f5d373d689bd4049709c40fac73446f..570d4fbbc79b0fba9f7ceff17c741de14f70b0b0 100644 --- a/briar-android/src/org/briarproject/system/AndroidSystemModule.java +++ b/briar-android/src/org/briarproject/system/AndroidSystemModule.java @@ -11,7 +11,7 @@ public class AndroidSystemModule extends AbstractModule { protected void configure() { bind(Clock.class).to(SystemClock.class); - bind(Timer.class).toInstance(new SystemTimer()); + bind(Timer.class).to(SystemTimer.class); bind(SeedProvider.class).to(AndroidSeedProvider.class); bind(FileUtils.class).to(AndroidFileUtils.class); } diff --git a/briar-desktop/src/org/briarproject/system/DesktopSystemModule.java b/briar-desktop/src/org/briarproject/system/DesktopSystemModule.java index baa1370733ebdc120496bb01fd0a7d328b6566c2..5a3badb9fae3fa19a9ac0094e0547271cc2f6e0f 100644 --- a/briar-desktop/src/org/briarproject/system/DesktopSystemModule.java +++ b/briar-desktop/src/org/briarproject/system/DesktopSystemModule.java @@ -15,7 +15,7 @@ public class DesktopSystemModule extends AbstractModule { protected void configure() { bind(Clock.class).to(SystemClock.class); - bind(Timer.class).toInstance(new SystemTimer()); + bind(Timer.class).to(SystemTimer.class); if(OsUtils.isLinux()) bind(SeedProvider.class).to(LinuxSeedProvider.class); bind(FileUtils.class).toInstance(new FileUtils() {