package io.github.tobyhs.weatherweight.forecast;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import io.github.tobyhs.weatherweight.R;

/**
 * Main activity to enter a location to retrieve a weather forecast
 */
public class ForecastActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forecast);
    }
}

@@ -43,16 +43,42 @@
 ecast;%0A%0A
+import android.os.Bundle;%0A
 import a
@@ -122,34 +122,51 @@
 ty;%0A
+%0A
 import 
-android.os.Bundle;%0A
+io.github.tobyhs.weatherweight.App;
 %0Aimp
@@ -338,16 +338,66 @@
 ivity %7B%0A
+    private ForecastComponent forecastComponent;%0A%0A
     @Ove
@@ -554,16 +554,179 @@
 recast);
+%0A%0A        forecastComponent = DaggerForecastComponent.builder()%0A                .appComponent(((App) getApplication()).getAppComponent())%0A                .build();
 %0A    %7D%0A%7D

Add ForecastComponent to ForecastActivity