Skip to content

Commit

Permalink
Revert "Bug Fix: android O and later orientation fix"
Browse files Browse the repository at this point in the history
This reverts commit f602530.
  • Loading branch information
Adam Leedy committed Jun 18, 2018
1 parent f602530 commit bf62067
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions tedonactivityresult/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<activity
android:name=".ProxyActivity"
android:configChanges="mcc|mnc|locale|keyboard|keyboardHidden|screenLayout|fontScale|uiMode|orientation|screenSize|layoutDirection"
android:screenOrientation="unspecified"
android:theme="@style/android:Theme.Translucent.NoTitleBar" />
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;

Expand Down Expand Up @@ -43,7 +42,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
ActivityRequest activityRequest = activityRequestStack.peek();

Intent intent = activityRequest.getIntent();
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
super.startActivityForResult(intent, new Random().nextInt(65536));
}

Expand Down

0 comments on commit bf62067

Please sign in to comment.