summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKazuki Takise <takise@google.com>2021-01-15 16:36:05 +0900
committerKazuki Takise <takise@google.com>2021-01-15 16:52:53 +0900
commitec22df3bf18948e053565057566567f6038e1bb9 (patch)
tree1e88abaf361acfad802e5b39a1c26f2cc66012b0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent69f35b55c21d98ff36501b1569ad6ec548cd7fbb (diff)
Ensure size-compat check is correct in LaunchParamsModifier
Currently even if "Freeform SizeCompat Mode" is enabled, size-compat apps are launched in maximized. This is because shouldUseSizeCompatMode() returns false in TaskLaunchParamsModifier. The reason for this is the activity type is still undefined at this point as if the activity should be standard, it's set when it's added to its parent task (See Task#addChild). For other non-standard types, it's set immediately in the constructor of ActivityRecord. Thus it should be safe to consider ACTIVITY_TYPE_UNDEFINED to be size-compat, in which way, we can properly handle size-compat apps when resolving the launch params. Bug: 177630091 Test: go/wm-smoke Test: Size-compat apps are launched in freeform with the dev option on. Change-Id: Ic6cf1b4fbeee20483d819c22fba7769966931145
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions