Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ecbc0a4 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Allow apps in home workspace to have non-client-decor."

parents 9d61b980 d16ebb0d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4208,10 +4208,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
        boolean isApplication = attrs.type == TYPE_BASE_APPLICATION ||
                attrs.type == TYPE_APPLICATION;
        mWorkspaceId = getWorkspaceId();
        // Only a non floating application window on one of the allowed worksapces can get a non
        // Only a non floating application window on one of the allowed workspaces can get a non
        // client decor.
        if (!isFloating() && isApplication && mWorkspaceId != HOME_STACK_ID &&
                mWorkspaceId < FIRST_DYNAMIC_STACK_ID) {
        if (!isFloating() && isApplication && mWorkspaceId < FIRST_DYNAMIC_STACK_ID) {
            // Dependent on the brightness of the used title we either use the
            // dark or the light button frame.
            if (nonClientDecorView == null) {
+2 −0
Original line number Diff line number Diff line
@@ -398,6 +398,8 @@ public class NonClientDecorView extends LinearLayout
     * It starts with the creation and it ends once someone calls destroy().
     * Any size changes can be passed by a call to setTargetRect will passed to the thread and
     * executed via the Choreographer.
     * TODO(b/24810450): Separate functionality from non-client-decor so that it can be used
     * independently.
     */
    private class ResizeFrameThread extends Thread implements Choreographer.FrameCallback {
        // This is containing the last requested size by a resize command. Note that this size might