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

Commit d16ebb0d authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

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

Currently required for apps like recents to resize correctly
with the 2-render thread approach. Eventually we will want to
separate the functionality from the non-client-decor.

Bug: 24742523
Bug: 24810450
Change-Id: Id241bf8fe47dd8c4ec570c90149c859c45aa6285
parent 75f1e118
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