package kapil.voiceassistedweatherapp.modules;

import android.content.Context;
import android.speech.SpeechRecognizer;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import kapil.voiceassistedweatherapp.VoiceAssistedWeatherApp;

/**
 * Created by Kapil on 12/03/17.
 */

@Module
public class SpeechModule {
    private VoiceAssistedWeatherApp voiceAssistedWeatherApp;

    public SpeechModule(VoiceAssistedWeatherApp voiceAssistedWeatherApp) {
        this.voiceAssistedWeatherApp = voiceAssistedWeatherApp;
    }

    @Singleton
    @Provides
    SpeechRecognizer provideSpeechRecognizer() {
        return SpeechRecognizer.createSpeechRecognizer(voiceAssistedWeatherApp);
    }
}

@@ -45,40 +45,8 @@
 s;%0A%0A
-import android.content.Context;%0A
 impo

Remove unused imports