This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class OrientationListener extends OrientationEventListener { | |
public static final int CONFIGURATION_ORIENTATION_UNDEFINED = Configuration.ORIENTATION_UNDEFINED; | |
private volatile int defaultScreenOrientation = CONFIGURATION_ORIENTATION_UNDEFINED; | |
public int prevOrientation = OrientationEventListener.ORIENTATION_UNKNOWN; | |
private Context ctx; | |
private ReentrantLock lock = new ReentrantLock(true); | |
public OrientationListener(Context context) { | |
super(context); |