Back to project page screenplay.
The source code is released under:
MIT License
If you think the Android project screenplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.davidstemmer.screenplay.sample.simple.component; // w ww. ja va2 s.co m 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); } }