diff options
Diffstat (limited to 'java/com/android/incallui')
-rw-r--r-- | java/com/android/incallui/speakeasy/SpeakEasyComponent.java | 4 | ||||
-rw-r--r-- | java/com/android/incallui/speakeasy/StubSpeakEasyModule.java | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/java/com/android/incallui/speakeasy/SpeakEasyComponent.java b/java/com/android/incallui/speakeasy/SpeakEasyComponent.java index 2403354bc..320bc69ee 100644 --- a/java/com/android/incallui/speakeasy/SpeakEasyComponent.java +++ b/java/com/android/incallui/speakeasy/SpeakEasyComponent.java @@ -17,7 +17,9 @@ package com.android.incallui.speakeasy; import android.content.Context; +import android.support.v4.app.Fragment; import com.android.dialer.inject.HasRootComponent; +import com.google.common.base.Optional; import dagger.Subcomponent; /** Dagger component to get SpeakEasyCallManager. */ @@ -26,6 +28,8 @@ public abstract class SpeakEasyComponent { public abstract SpeakEasyCallManager speakEasyCallManager(); + public abstract Optional<Fragment> speakEasySettingsFragment(); + public static SpeakEasyComponent get(Context context) { return ((SpeakEasyComponent.HasComponent) ((HasRootComponent) context.getApplicationContext()).component()) diff --git a/java/com/android/incallui/speakeasy/StubSpeakEasyModule.java b/java/com/android/incallui/speakeasy/StubSpeakEasyModule.java index 713ce2b44..960692b20 100644 --- a/java/com/android/incallui/speakeasy/StubSpeakEasyModule.java +++ b/java/com/android/incallui/speakeasy/StubSpeakEasyModule.java @@ -16,8 +16,11 @@ package com.android.incallui.speakeasy; +import android.support.v4.app.Fragment; +import com.google.common.base.Optional; import dagger.Binds; import dagger.Module; +import dagger.Provides; /** Module which binds {@link SpeakEasyCallManagerStub}. */ @Module @@ -25,4 +28,9 @@ public abstract class StubSpeakEasyModule { @Binds abstract SpeakEasyCallManager bindsSpeakEasy(SpeakEasyCallManagerStub stub); + + @Provides + static Optional<Fragment> provideSpeakEasySettingsFragment() { + return Optional.absent(); + } } |