File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
navigator/src/main/java/m/co/rh/id/anavigator Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1101,7 +1101,14 @@ protected void initViewAnimator() {
1101
1101
private void checkAndConfigureRequestOrientation () {
1102
1102
Activity activity = getActivity ();
1103
1103
int activityOrientation = activity .getRequestedOrientation ();
1104
- StatefulView currentRoute = mNavRouteStack .peek ().getStatefulView ();
1104
+ NavRoute navRoute = mNavRouteStack .peek ();
1105
+ if (navRoute == null ) {
1106
+ if (activityOrientation != mActivityDefaultScreenOrientation ) {
1107
+ activity .setRequestedOrientation (mActivityDefaultScreenOrientation );
1108
+ }
1109
+ return ;
1110
+ }
1111
+ StatefulView currentRoute = navRoute .getStatefulView ();
1105
1112
if (currentRoute instanceof NavActivity .RequestOrientation ) {
1106
1113
int routeOrientation = ((NavActivity .RequestOrientation ) currentRoute ).getRequestedOrientation ();
1107
1114
if (activityOrientation != routeOrientation ) {
You can’t perform that action at this time.
0 commit comments