Skip to content

Commit

Permalink
Merge pull request #181 from campelo/patch-1
Browse files Browse the repository at this point in the history
lock orientation doesn't work
  • Loading branch information
rkistner authored Oct 16, 2016
2 parents 4f31113 + c81ea8e commit 2373c88
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,10 @@ public void initializeFromIntent(Intent intent, Bundle savedInstanceState) {
}

if(intent != null) {
if (orientationLock == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) {
// Only lock the orientation if it's not locked to something else yet
boolean orientationLocked = intent.getBooleanExtra(Intents.Scan.ORIENTATION_LOCKED, true);

if (orientationLocked) {
lockOrientation();
}
// Only lock the orientation if it's not locked to something else yet
boolean orientationLocked = intent.getBooleanExtra(Intents.Scan.ORIENTATION_LOCKED, true);
if (orientationLocked) {
lockOrientation();
}

if (Intents.Scan.ACTION.equals(intent.getAction())) {
Expand Down

0 comments on commit 2373c88

Please sign in to comment.