Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +14 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,12 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin final View handle = caption.findViewById(R.id.caption_handle); handle.setOnTouchListener(mOnCaptionTouchListener); handle.setOnClickListener(mOnCaptionButtonClickListener); if (DesktopModeStatus.isProto1Enabled()) { final View back = caption.findViewById(R.id.back_button); back.setOnClickListener(mOnCaptionButtonClickListener); final View close = caption.findViewById(R.id.close_window); close.setOnClickListener(mOnCaptionButtonClickListener); } updateButtonVisibility(); } Loading Loading @@ -319,6 +325,14 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin final View handle = caption.findViewById(R.id.caption_handle); final Drawable handleBackground = handle.getBackground(); handleBackground.setTintList(buttonTintColor); if (DesktopModeStatus.isProto1Enabled()) { final View back = caption.findViewById(R.id.back_button); final Drawable backBackground = back.getBackground(); backBackground.setTintList(buttonTintColor); final View close = caption.findViewById(R.id.close_window); final Drawable closeBackground = close.getBackground(); closeBackground.setTintList(buttonTintColor); } } private void closeDragResizeListener() { Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecoration.java +14 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,12 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin final View handle = caption.findViewById(R.id.caption_handle); handle.setOnTouchListener(mOnCaptionTouchListener); handle.setOnClickListener(mOnCaptionButtonClickListener); if (DesktopModeStatus.isProto1Enabled()) { final View back = caption.findViewById(R.id.back_button); back.setOnClickListener(mOnCaptionButtonClickListener); final View close = caption.findViewById(R.id.close_window); close.setOnClickListener(mOnCaptionButtonClickListener); } updateButtonVisibility(); } Loading Loading @@ -319,6 +325,14 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin final View handle = caption.findViewById(R.id.caption_handle); final Drawable handleBackground = handle.getBackground(); handleBackground.setTintList(buttonTintColor); if (DesktopModeStatus.isProto1Enabled()) { final View back = caption.findViewById(R.id.back_button); final Drawable backBackground = back.getBackground(); backBackground.setTintList(buttonTintColor); final View close = caption.findViewById(R.id.close_window); final Drawable closeBackground = close.getBackground(); closeBackground.setTintList(buttonTintColor); } } private void closeDragResizeListener() { Loading