Merge "Hide CaptionDecorView behind CAPTION_ON_SHELL flag" into tm-dev
This commit is contained in:
@@ -278,7 +278,8 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
* Whether the caption is drawn by the shell.
|
* Whether the caption is drawn by the shell.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final boolean CAPTION_ON_SHELL = false;
|
public static final boolean CAPTION_ON_SHELL =
|
||||||
|
SystemProperties.getBoolean("persist.debug.caption_on_shell", false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the client should compute the window frame on its own.
|
* Whether the client should compute the window frame on its own.
|
||||||
|
|||||||
@@ -2259,7 +2259,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
|||||||
attrs.type == TYPE_APPLICATION || attrs.type == TYPE_DRAWN_APPLICATION;
|
attrs.type == TYPE_APPLICATION || attrs.type == TYPE_DRAWN_APPLICATION;
|
||||||
final WindowConfiguration winConfig = getResources().getConfiguration().windowConfiguration;
|
final WindowConfiguration winConfig = getResources().getConfiguration().windowConfiguration;
|
||||||
// Only a non floating application window on one of the allowed workspaces can get a caption
|
// Only a non floating application window on one of the allowed workspaces can get a caption
|
||||||
if (!mWindow.isFloating() && isApplication && winConfig.hasWindowDecorCaption()) {
|
if (!mWindow.isFloating() && isApplication && winConfig.hasWindowDecorCaption()
|
||||||
|
&& !CAPTION_ON_SHELL) {
|
||||||
// Dependent on the brightness of the used title we either use the
|
// Dependent on the brightness of the used title we either use the
|
||||||
// dark or the light button frame.
|
// dark or the light button frame.
|
||||||
if (decorCaptionView == null) {
|
if (decorCaptionView == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user