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

Commit 275bdcfc authored by Michael Mikhail's avatar Michael Mikhail
Browse files

[Media TTT] Show icon on top of taskbar

This issue occurs on tablet, change the type of window layout param to
system error which is higher than navigation bar makes the icon
appears on top of the taskbar.

Fixes: 240550807
Test: Checked that the icon shows on top of the taskbar using adb
commands.

Change-Id: I455cd6202f0638cc196a6e690bb1806dba916f10
parent 0d8858f2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.systemui.temporarydisplay

import android.annotation.LayoutRes
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.PixelFormat
import android.graphics.Rect
@@ -67,11 +66,10 @@ abstract class TemporaryViewDisplayController<T : TemporaryViewInfo, U : Tempora
     * Window layout params that will be used as a starting point for the [windowLayoutParams] of
     * all subclasses.
     */
    @SuppressLint("WrongConstant") // We're allowed to use TYPE_VOLUME_OVERLAY
    internal val commonWindowLayoutParams = WindowManager.LayoutParams().apply {
        width = WindowManager.LayoutParams.WRAP_CONTENT
        height = WindowManager.LayoutParams.WRAP_CONTENT
        type = WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY
        type = WindowManager.LayoutParams.TYPE_SYSTEM_ERROR
        flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
            WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
        title = windowTitle