package com.davidstemmer.screenplay.sample.simple.component;

import android.view.View;

import com.davidstemmer.screenplay.sample.simple.DrawerHelper;
import com.davidstemmer.screenplay.sample.simple.SampleApplication;
import com.davidstemmer.screenplay.scene.Scene;

/**
 * Created by weefbellington on 10/24/14.
 */
public class DrawerLockingComponent implements Scene.Component {

    private final DrawerHelper drawer;

    public DrawerLockingComponent() {
        this.drawer = SampleApplication.getDrawerHelper();
    }

    @Override
    public void afterSetUp(Scene scene, View view) {
        drawer.setLocked(true);
    }

    @Override
    public void beforeTearDown(Scene scene, View view) {
        drawer.setLocked(false);
    }
}

@@ -55,16 +55,48 @@
 onent;%0A%0A
+import android.content.Context;%0A
 import a
@@ -595,16 +595,33 @@
 erSetUp(
+Context context, 
 Scene sc
@@ -722,16 +722,33 @@
 earDown(
+Context context, 
 Scene sc

update method signature