Merge "Add unit tests for 180 degree rotation"

This commit is contained in:
Andrii Kulian
2017-01-17 19:31:55 +00:00
committed by Android (Google) Code Review
9 changed files with 129 additions and 9 deletions

View File

@@ -628,6 +628,10 @@ public class ActivityManager {
return stackId >= FIRST_STATIC_STACK_ID && stackId <= LAST_STATIC_STACK_ID;
}
public static boolean isDynamicStack(int stackId) {
return stackId >= FIRST_DYNAMIC_STACK_ID;
}
/**
* Returns true if the activities contained in the input stack display a shadow around
* their border.
@@ -825,7 +829,7 @@ public class ActivityManager {
/** Returns true if the input stack and its content can affect the device orientation. */
public static boolean canSpecifyOrientation(int stackId) {
return stackId == HOME_STACK_ID || stackId == RECENTS_STACK_ID
|| stackId == FULLSCREEN_WORKSPACE_STACK_ID;
|| stackId == FULLSCREEN_WORKSPACE_STACK_ID || isDynamicStack(stackId);
}
}