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);
    }
}

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

import android.content.Context;
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(Context context, Scene scene, View view) {
        drawer.setLocked(true);
    }

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

update method signature