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

Commit e2897b10 authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

Merge "Fix home panel dream orientation changes" into main

parents e01abc47 2f16ed67
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.systemui.dreams.homecontrols

import android.app.Activity
import android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW
import android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN
import android.content.Intent
import android.graphics.Rect
import android.os.Binder
@@ -122,15 +122,14 @@ constructor(

    /** Creates the task fragment */
    fun createTaskFragment() {
        val taskBounds = Rect(activity.resources.configuration.windowConfiguration.bounds)
        val fragmentOptions =
            TaskFragmentCreationParams.Builder(
                    organizer.organizerToken,
                    fragmentToken,
                    activity.activityToken!!
                )
                .setInitialRelativeBounds(taskBounds)
                .setWindowingMode(WINDOWING_MODE_MULTI_WINDOW)
                .setInitialRelativeBounds(Rect())
                .setWindowingMode(WINDOWING_MODE_FULLSCREEN)
                .build()
        organizer.applyTransaction(
            WindowContainerTransaction().createTaskFragment(fragmentOptions),