From a7d641b0d4082145e7fa2e88f828ad4776c2ba0b Mon Sep 17 00:00:00 2001 From: yu_qinfei <878919698@qq.com> Date: Sat, 25 Jul 2020 10:56:08 +0800 Subject: [PATCH 1/2] DecorCaptionView:remove Himalaya maximization The display is abnormal after the Himalaya is maximized, it is recommended that the maximized be removed. --- core/java/com/android/internal/widget/DecorCaptionView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/com/android/internal/widget/DecorCaptionView.java b/core/java/com/android/internal/widget/DecorCaptionView.java index 86b545f8..d462d09c 100644 --- a/core/java/com/android/internal/widget/DecorCaptionView.java +++ b/core/java/com/android/internal/widget/DecorCaptionView.java @@ -122,6 +122,7 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener, static { propertyMap = new HashMap<>(); propertyMap.put("QQ音乐", WindowProperty.HIDE_BACK); + propertyMap.put("喜马拉雅", WindowProperty.HIDE_MAXIMIZE); } public DecorCaptionView(Context context) { -- Gitee From abe523ed6b6783eb22d1141a61365520fc0e466a Mon Sep 17 00:00:00 2001 From: yu_qinfei <878919698@qq.com> Date: Sat, 25 Jul 2020 19:32:21 +0800 Subject: [PATCH 2/2] DecorCaptionView:cancel ishenzhen window maximization the maximize button is removed. --- core/java/com/android/internal/widget/DecorCaptionView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/com/android/internal/widget/DecorCaptionView.java b/core/java/com/android/internal/widget/DecorCaptionView.java index d462d09c..acec60b2 100644 --- a/core/java/com/android/internal/widget/DecorCaptionView.java +++ b/core/java/com/android/internal/widget/DecorCaptionView.java @@ -123,6 +123,7 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener, propertyMap = new HashMap<>(); propertyMap.put("QQ音乐", WindowProperty.HIDE_BACK); propertyMap.put("喜马拉雅", WindowProperty.HIDE_MAXIMIZE); + propertyMap.put("i深圳", WindowProperty.HIDE_MAXIMIZE); } public DecorCaptionView(Context context) { -- Gitee