Changes for December 2021
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From f3d98f8156017d822ffee5a9ecb1a073cd951c45 Mon Sep 17 00:00:00 2001
|
||||
From 72efb86a4e4e42b9d20c8d8ac30beb6471f96ad2 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 27 Oct 2021 14:38:37 +0000
|
||||
Subject: [PATCH 01/16] Add LineageMonetAccentOverlay
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 2f9d2d2ebd0e85061d4c0f3d71245faf489dbf7f Mon Sep 17 00:00:00 2001
|
||||
From 131d58227278ec7d36fe16223335368d4674ce46 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 03:39:32 +0000
|
||||
Subject: [PATCH 02/16] Add MiuiNavbarOverlay
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From aa00ecce8f9b93b34039ad94d543f780c5a670a7 Mon Sep 17 00:00:00 2001
|
||||
From 98145d7967512d9e294c9eaf5b4782efd34a1f8d Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 27 Sep 2021 16:30:00 +0000
|
||||
Subject: [PATCH 03/16] Disable cursor drag by default for editable TextViews
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 13a853a48ad6c807d7d7193b7426ce8cf28267f4 Mon Sep 17 00:00:00 2001
|
||||
From 54dcd5497db5593a77aa8c6eacf6b6ed693338cb Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 22 Mar 2019 00:41:20 +0800
|
||||
Subject: [PATCH 04/16] Disable FP lockouts
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 6daf65e81a4f18bc0b1418281ad021fef9bc59e5 Mon Sep 17 00:00:00 2001
|
||||
From ae4b40705428d23abf321050a64e7793c591ae2b Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 2 Sep 2021 16:15:19 +0000
|
||||
Subject: [PATCH 05/16] Keyguard: Adjust clock style
|
||||
@@ -60,7 +60,7 @@ index 7e3c87b24f07..58a1734aad22 100644
|
||||
+ <dimen name="below_clock_padding_start_icons">22dp</dimen>
|
||||
</resources>
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index 72b027af1bf6..6bfca3ece20e 100644
|
||||
index 098b7e8dedbe..86f053535ee6 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -123,8 +123,6 @@
|
||||
@@ -73,7 +73,7 @@ index 72b027af1bf6..6bfca3ece20e 100644
|
||||
|
||||
<style name="TextAppearance.Keyguard.Secondary">
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index a03e9ea89342..285dd4766cab 100644
|
||||
index bb258ab18f82..f03f14d3316c 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -343,7 +343,7 @@
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 6ec7695af3b3811a4acbad3c8b4b0f3763ae2c68 Mon Sep 17 00:00:00 2001
|
||||
From 2f8ba4aa72d1c8941f1f6060a0c3a11b179d9447 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
||||
Subject: [PATCH 06/16] Keyguard: Hide padlock unless UDFPS is in use
|
||||
@@ -11,10 +11,10 @@ Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
||||
1 file changed, 7 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
index a41997ce3107..b27e1256ea30 100644
|
||||
index 52ebf2fa09d0..0ed36b4fa949 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
@@ -254,32 +254,17 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
||||
@@ -259,32 +259,17 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 5df4e88ca6df56e938457cc992e74f2a5ca03c47 Mon Sep 17 00:00:00 2001
|
||||
From 9e81c9791a5c6fae799bf8d916ed70b62ea23f13 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 1 Sep 2021 14:41:53 +0000
|
||||
Subject: [PATCH 07/16] Keyguard: Never switch to large clock
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 2dedbf09b293ee2081ce65ccd52e49c839dc0885 Mon Sep 17 00:00:00 2001
|
||||
From adc13dccc4a4a1f0c59f6d53630d8cd48210b7de Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 08:31:36 +0000
|
||||
Subject: [PATCH 08/16] Keyguard: Refine indication text
|
||||
@@ -14,17 +14,18 @@ Change-Id: Ib771c35610f712a1de34736e817bcfe616ac37d8
|
||||
6 files changed, 16 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index 6bfca3ece20e..54e5b8511b57 100644
|
||||
index 86f053535ee6..b03c87af3059 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -137,7 +137,5 @@
|
||||
@@ -137,8 +137,6 @@
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:maxLines">1</item>
|
||||
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
<style name="TextAppearance.Keyguard.BottomArea.Button">
|
||||
diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
||||
index 8dbd59d42ab7..68cba51e07fa 100644
|
||||
--- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
||||
@@ -38,10 +39,10 @@ index 8dbd59d42ab7..68cba51e07fa 100644
|
||||
android:paddingEnd="@dimen/keyguard_indication_text_padding"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 78db2a8a3485..b5c96a4df1a1 100644
|
||||
index c231afc41953..1485f3a936ca 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -923,7 +923,7 @@
|
||||
@@ -920,7 +920,7 @@
|
||||
<dimen name="keyguard_lock_width">42dp</dimen>
|
||||
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||
|
||||
@@ -51,10 +52,10 @@ index 78db2a8a3485..b5c96a4df1a1 100644
|
||||
|
||||
<!-- The text size for battery level -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
index 2d215e0f1f62..0c5870d6b6bf 100644
|
||||
index a424674ed252..b2af483bb76e 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
@@ -183,12 +183,22 @@ public class KeyguardIndicationRotateTextViewController extends
|
||||
@@ -182,12 +182,22 @@ public class KeyguardIndicationRotateTextViewController extends
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,14 +80,14 @@ index 2d215e0f1f62..0c5870d6b6bf 100644
|
||||
* Immediately show the passed indication type and schedule the next indication to show.
|
||||
* Will re-add this indication to be re-shown after all other indications have been
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
index 1c933505172f..cad5cdaec533 100644
|
||||
index 8a397199dc84..f2df767db567 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
@@ -432,12 +432,11 @@ public class KeyguardIndicationController {
|
||||
@@ -433,12 +433,11 @@ public class KeyguardIndicationController {
|
||||
}
|
||||
|
||||
private void updateResting() {
|
||||
- if (mRestingIndication != null
|
||||
- if (!TextUtils.isEmpty(mRestingIndication)
|
||||
- && !mRotateTextViewController.hasIndications()) {
|
||||
+ if (!mRotateTextViewController.hasIndications()) {
|
||||
mRotateTextViewController.updateIndication(
|
||||
@@ -98,12 +99,12 @@ index 1c933505172f..cad5cdaec533 100644
|
||||
.build(),
|
||||
false);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
index f1cde8a9be7a..10037fc93d75 100644
|
||||
index a5b5f1cbf1e7..df981c4e3129 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
@@ -40,7 +40,7 @@ import java.util.LinkedList;
|
||||
public class KeyguardIndicationTextView extends TextView {
|
||||
private static final long MSG_MIN_DURATION_MILLIS_DEFAULT = 1500;
|
||||
@@ -49,7 +49,7 @@ public class KeyguardIndicationTextView extends TextView {
|
||||
private static int sButtonStyleId = R.style.TextAppearance_Keyguard_BottomArea_Button;
|
||||
|
||||
private long mNextAnimationTime = 0;
|
||||
- private boolean mAnimationsEnabled = true;
|
||||
+ private boolean mAnimationsEnabled = false;
|
||||
|
||||
@@ -1,27 +1,38 @@
|
||||
From 2b6af85f83905c848949f6c2f657849aa6224588 Mon Sep 17 00:00:00 2001
|
||||
From c7a8da0bbddfb96af36f8c62caef774a027ed4a0 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 20 Mar 2021 10:35:14 +0000
|
||||
Subject: [PATCH 09/16] Keyguard/UI: Fix status bar / quick settings margins
|
||||
and paddings
|
||||
|
||||
Last revised on 2021/12/10, targeting s-qpr1
|
||||
|
||||
The way I think SB/QS margins/paddings should work:
|
||||
- Devices with left notch: [notch_definition][status_bar_padding_start][content]...[content][status_bar_padding_end][rounded_corner_content_padding]
|
||||
- Devices with center or no notch: [rounded_corner_content_padding][status_bar_padding_start][content]...[content][status_bar_padding_end][rounded_corner_content_padding]
|
||||
Key point being:
|
||||
- SB (including keyguard) and QS should always act uniformly
|
||||
- Notch definition should only be the notch itself, without additional padding
|
||||
- Instead, these paddings should be covered by status_bar_padding_{start|end}
|
||||
As a result, below changes have been made:
|
||||
- Change keyguard_carrier_text_margin into a padding
|
||||
- Link keyguard paddings to status_bar_padding_{start|end}
|
||||
- Add status_bar_padding_{start|end} to quick settings header
|
||||
- Remove several unnecessary margins and paddings
|
||||
- Animate padding for new QS clock in s-qpr1
|
||||
|
||||
Change-Id: Ic91fa398813e1907297bb0892c444d96405950e7
|
||||
---
|
||||
packages/SystemUI/res/layout/keyguard_status_bar.xml | 2 +-
|
||||
.../SystemUI/res/layout/quick_qs_status_icons.xml | 5 -----
|
||||
.../layout/quick_status_bar_header_date_privacy.xml | 11 +++++------
|
||||
packages/SystemUI/res/values-sw600dp/dimens.xml | 6 ------
|
||||
packages/SystemUI/res/values/dimens.xml | 6 +++---
|
||||
.../com/android/systemui/qs/QuickStatusBarHeader.java | 8 +++-----
|
||||
.../statusbar/phone/KeyguardStatusBarView.java | 11 -----------
|
||||
7 files changed, 12 insertions(+), 37 deletions(-)
|
||||
.../res/layout/keyguard_status_bar.xml | 2 +-
|
||||
.../res/layout/quick_qs_status_icons.xml | 6 --
|
||||
.../quick_status_bar_header_date_privacy.xml | 5 +-
|
||||
.../SystemUI/res/values-sw600dp/dimens.xml | 6 --
|
||||
packages/SystemUI/res/values/dimens.xml | 6 +-
|
||||
.../systemui/qs/QuickStatusBarHeader.java | 61 +++++++++++++------
|
||||
.../phone/KeyguardStatusBarView.java | 7 ---
|
||||
7 files changed, 47 insertions(+), 46 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
index eb7638233efd..249689f211af 100644
|
||||
index 850b01717308..054db34023af 100644
|
||||
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
@@ -62,7 +62,7 @@
|
||||
@@ -34,7 +45,7 @@ index eb7638233efd..249689f211af 100644
|
||||
android:gravity="center_vertical"
|
||||
android:ellipsize="marquee"
|
||||
diff --git a/packages/SystemUI/res/layout/quick_qs_status_icons.xml b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
index bbd3e47a568f..f6d07363ec84 100644
|
||||
index 27514617fb23..ada85c137600 100644
|
||||
--- a/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
+++ b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
@@ -21,7 +21,6 @@
|
||||
@@ -45,18 +56,26 @@ index bbd3e47a568f..f6d07363ec84 100644
|
||||
android:clickable="false"
|
||||
android:focusable="true"
|
||||
android:theme="@style/QSHeaderTheme">
|
||||
@@ -31,10 +30,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:minWidth="48dp"
|
||||
- android:minHeight="48dp"
|
||||
android:gravity="center_vertical|start"
|
||||
- android:paddingStart="@dimen/status_bar_left_clock_starting_padding"
|
||||
- android:paddingEnd="@dimen/status_bar_left_clock_end_padding"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.QS.Status" />
|
||||
@@ -39,10 +38,7 @@
|
||||
android:id="@+id/clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
- android:minHeight="48dp"
|
||||
android:gravity="center_vertical|start"
|
||||
- android:paddingStart="@dimen/status_bar_left_clock_starting_padding"
|
||||
- android:paddingEnd="@dimen/status_bar_left_clock_end_padding"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.QS.Status" />
|
||||
|
||||
@@ -43,7 +39,6 @@
|
||||
@@ -50,7 +46,6 @@
|
||||
android:id="@+id/date_clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
- android:layout_marginStart="@dimen/status_bar_left_clock_end_padding"
|
||||
android:gravity="center_vertical|start"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.QS.Status"
|
||||
@@ -64,7 +59,6 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
@@ -65,10 +84,10 @@ index bbd3e47a568f..f6d07363ec84 100644
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
diff --git a/packages/SystemUI/res/layout/quick_status_bar_header_date_privacy.xml b/packages/SystemUI/res/layout/quick_status_bar_header_date_privacy.xml
|
||||
index bff93a99258a..f00abf50fba0 100644
|
||||
index b1e8c386fe21..cff67718bc47 100644
|
||||
--- a/packages/SystemUI/res/layout/quick_status_bar_header_date_privacy.xml
|
||||
+++ b/packages/SystemUI/res/layout/quick_status_bar_header_date_privacy.xml
|
||||
@@ -25,16 +25,15 @@
|
||||
@@ -25,14 +25,12 @@
|
||||
android:gravity="center"
|
||||
android:layout_gravity="top"
|
||||
android:orientation="horizontal"
|
||||
@@ -82,26 +101,18 @@ index bff93a99258a..f00abf50fba0 100644
|
||||
android:layout_height="match_parent"
|
||||
- android:minHeight="48dp"
|
||||
android:layout_weight="1"
|
||||
- android:gravity="center_vertical|start" >
|
||||
+ android:gravity="center_vertical|start"
|
||||
+ android:paddingStart="@dimen/status_bar_padding_start" >
|
||||
android:gravity="center_vertical|start" >
|
||||
|
||||
<com.android.systemui.statusbar.policy.DateView
|
||||
android:id="@+id/date"
|
||||
@@ -69,9 +68,9 @@
|
||||
@@ -76,7 +74,6 @@
|
||||
android:id="@+id/privacy_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
- android:minHeight="48dp"
|
||||
android:layout_weight="1"
|
||||
- android:gravity="center_vertical|end" >
|
||||
+ android:gravity="center_vertical|end"
|
||||
+ android:paddingEnd="@dimen/status_bar_padding_end" >
|
||||
|
||||
<include layout="@layout/ongoing_privacy_chip" />
|
||||
android:gravity="center_vertical|end" >
|
||||
|
||||
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
index da80b85b38bf..59a55d3a1197 100644
|
||||
index 0a34dfd71c7e..3d590d752a7b 100644
|
||||
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
@@ -53,9 +53,6 @@
|
||||
@@ -125,10 +136,10 @@ index da80b85b38bf..59a55d3a1197 100644
|
||||
<dimen name="screen_pinning_request_width">400dp</dimen>
|
||||
<!-- Screen pinning request bottom button circle widths -->
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index b5c96a4df1a1..775c25bd3b25 100644
|
||||
index 1485f3a936ca..b3941ff7f82b 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -450,7 +450,7 @@
|
||||
@@ -449,7 +449,7 @@
|
||||
<dimen name="system_icons_super_container_margin_start">16dp</dimen>
|
||||
|
||||
<!-- Margin end of the system icons super container when the avatar is missing. -->
|
||||
@@ -137,7 +148,7 @@ index b5c96a4df1a1..775c25bd3b25 100644
|
||||
|
||||
<!-- Width for the notification panel and related windows -->
|
||||
<dimen name="match_parent">-1px</dimen>
|
||||
@@ -871,7 +871,7 @@
|
||||
@@ -868,7 +868,7 @@
|
||||
<dimen name="kg_framed_avatar_size">32dp</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
@@ -146,7 +157,7 @@ index b5c96a4df1a1..775c25bd3b25 100644
|
||||
|
||||
<!-- Margin on the left side of the battery % in the header. -->
|
||||
<dimen name="header_battery_margin_expanded">6dp</dimen>
|
||||
@@ -880,7 +880,7 @@
|
||||
@@ -877,7 +877,7 @@
|
||||
<dimen name="header_battery_margin_keyguard">6dp</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
@@ -156,45 +167,142 @@ index b5c96a4df1a1..775c25bd3b25 100644
|
||||
<!-- Additional translation (downwards) for appearing notifications when going to the full shade
|
||||
from Keyguard. -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
index 8cbfefcb4fea..d8dde9cab7ef 100644
|
||||
index a5150000f47c..8ef433c7af17 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
@@ -386,7 +386,9 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
@@ -88,6 +88,10 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
private QSExpansionPathInterpolator mQSExpansionPathInterpolator;
|
||||
|
||||
private int mRoundedCornerPadding = 0;
|
||||
+ private int mStatusBarPaddingStart;
|
||||
+ private int mStatusBarPaddingEnd;
|
||||
+ private int mHeaderPaddingLeft;
|
||||
+ private int mHeaderPaddingRight;
|
||||
private int mWaterfallTopInset;
|
||||
private int mCutOutPaddingLeft;
|
||||
private int mCutOutPaddingRight;
|
||||
@@ -99,6 +103,8 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
private List<String> mRssiIgnoredSlots;
|
||||
private boolean mIsSingleCarrier;
|
||||
|
||||
+ private boolean mHasLeftCutout;
|
||||
+ private boolean mHasRightCutout;
|
||||
private boolean mHasCenterCutout;
|
||||
private boolean mConfigShowBatteryEstimate;
|
||||
|
||||
@@ -240,6 +246,11 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
mRoundedCornerPadding = resources.getDimensionPixelSize(
|
||||
R.dimen.rounded_corner_content_padding);
|
||||
|
||||
+ mStatusBarPaddingStart = resources.getDimensionPixelSize(
|
||||
+ R.dimen.status_bar_padding_start);
|
||||
+ mStatusBarPaddingEnd = resources.getDimensionPixelSize(
|
||||
+ R.dimen.status_bar_padding_end);
|
||||
+
|
||||
int qsOffsetHeight = resources.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.quick_qs_offset_height);
|
||||
|
||||
@@ -320,6 +331,9 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
.addFloat(mDateView, "alpha", 0, 0, 1)
|
||||
.addFloat(mClockDateView, "alpha", 1, 0, 0)
|
||||
.addFloat(mQSCarriers, "alpha", 0, 1)
|
||||
+ // Use statusbar paddings when collapsed, align with QS when expanded, and animate translation
|
||||
+ .addFloat(mClockContainer, "translationX", mHeaderPaddingLeft + mStatusBarPaddingStart, 0)
|
||||
+ .addFloat(mRightLayout, "translationX", -(mHeaderPaddingRight + mStatusBarPaddingEnd), 0)
|
||||
.setListener(new TouchAnimator.ListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationAtEnd() {
|
||||
@@ -426,8 +440,6 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
Pair<Integer, Integer> padding =
|
||||
StatusBarWindowView.paddingNeededForCutoutAndRoundedCorner(
|
||||
cutout, cornerCutoutPadding, -1);
|
||||
mDatePrivacyView.setPadding(padding.first, 0, padding.second, 0);
|
||||
- mDatePrivacyView.setPadding(padding.first, 0, padding.second, 0);
|
||||
- mClockIconsView.setPadding(padding.first, 0, padding.second, 0);
|
||||
+ if (cutout == null) {
|
||||
+ mDateContainer.setPadding(0, 0, 0, 0);
|
||||
+ }
|
||||
LinearLayout.LayoutParams datePrivacySeparatorLayoutParams =
|
||||
(LinearLayout.LayoutParams) mDatePrivacySeparator.getLayoutParams();
|
||||
LinearLayout.LayoutParams mClockIconsSeparatorLayoutParams =
|
||||
@@ -476,10 +478,6 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
@@ -442,6 +454,12 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
mClockIconsSeparatorLayoutParams.width = 0;
|
||||
setSeparatorVisibility(false);
|
||||
mShowClockIconsSeparator = false;
|
||||
+ if (cornerCutoutPadding.first != 0) {
|
||||
+ mHasLeftCutout = true;
|
||||
+ }
|
||||
+ if (cornerCutoutPadding.second != 0) {
|
||||
+ mHasRightCutout = true;
|
||||
+ }
|
||||
mHasCenterCutout = false;
|
||||
} else {
|
||||
datePrivacySeparatorLayoutParams.width = topCutout.width();
|
||||
@@ -449,6 +467,8 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
mClockIconsSeparatorLayoutParams.width = topCutout.width();
|
||||
mShowClockIconsSeparator = true;
|
||||
setSeparatorVisibility(mKeyguardExpansionFraction == 0f);
|
||||
+ mHasLeftCutout = false;
|
||||
+ mHasRightCutout = false;
|
||||
mHasCenterCutout = true;
|
||||
}
|
||||
}
|
||||
@@ -493,34 +513,37 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
private void updateHeadersPadding() {
|
||||
setContentMargins(mDatePrivacyView, 0, 0);
|
||||
setContentMargins(mClockIconsView, 0, 0);
|
||||
- int paddingLeft = 0;
|
||||
- int paddingRight = 0;
|
||||
|
||||
FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) getLayoutParams();
|
||||
+ // Note: these are supposedly notification_side_paddings
|
||||
int leftMargin = lp.leftMargin;
|
||||
int rightMargin = lp.rightMargin;
|
||||
|
||||
// The clock might collide with cutouts, let's shift it out of the way.
|
||||
- // We only do that if the inset is bigger than our own padding, since it's nicer to
|
||||
- // align with
|
||||
- if (mCutOutPaddingLeft > 0) {
|
||||
- // if there's a cutout, let's use at least the rounded corner inset
|
||||
- int cutoutPadding = Math.max(mCutOutPaddingLeft, mRoundedCornerPadding);
|
||||
- paddingLeft = Math.max(cutoutPadding - leftMargin, 0);
|
||||
+ // Margin will be the reference point of paddings/translations
|
||||
+ // and will have to be subtracted from cutout paddings
|
||||
+ boolean headerPaddingUpdated = false;
|
||||
+ int headerPaddingLeft = Math.max(mCutOutPaddingLeft, mRoundedCornerPadding) - leftMargin;
|
||||
+ if (headerPaddingLeft != mHeaderPaddingLeft) {
|
||||
+ mHeaderPaddingLeft = headerPaddingLeft;
|
||||
+ headerPaddingUpdated = true;
|
||||
}
|
||||
- if (mCutOutPaddingRight > 0) {
|
||||
- // if there's a cutout, let's use at least the rounded corner inset
|
||||
- int cutoutPadding = Math.max(mCutOutPaddingRight, mRoundedCornerPadding);
|
||||
- paddingRight = Math.max(cutoutPadding - rightMargin, 0);
|
||||
+ int headerPaddingRight = Math.max(mCutOutPaddingRight, mRoundedCornerPadding) - rightMargin;
|
||||
+ if (headerPaddingRight != mHeaderPaddingRight) {
|
||||
+ mHeaderPaddingRight = headerPaddingRight;
|
||||
+ headerPaddingUpdated = true;
|
||||
}
|
||||
-
|
||||
- mDatePrivacyView.setPadding(paddingLeft,
|
||||
+ // Update header animator with new paddings
|
||||
+ if (headerPaddingUpdated) {
|
||||
+ updateAnimators();
|
||||
+ }
|
||||
+ mDatePrivacyView.setPadding(mHeaderPaddingLeft + mStatusBarPaddingStart,
|
||||
mWaterfallTopInset,
|
||||
paddingRight,
|
||||
- paddingRight,
|
||||
+ mHeaderPaddingRight + mStatusBarPaddingEnd,
|
||||
0);
|
||||
- mClockIconsView.setPadding(paddingLeft,
|
||||
- mWaterfallTopInset,
|
||||
+ mClockIconsView.setPadding(0,
|
||||
mWaterfallTopInset,
|
||||
- paddingRight,
|
||||
- 0);
|
||||
+ 0,
|
||||
0);
|
||||
}
|
||||
|
||||
public void updateEverything() {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
index 4d6886714120..2ac8b3fe7bdb 100644
|
||||
index 7b4dc47a7b48..f3cd8daf8d03 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
@@ -162,23 +162,12 @@ public class KeyguardStatusBarView extends RelativeLayout implements
|
||||
lp.setMarginStart(getResources().getDimensionPixelSize(
|
||||
R.dimen.system_icons_super_container_margin_start));
|
||||
mSystemIconsContainer.setLayoutParams(lp);
|
||||
- mSystemIconsContainer.setPaddingRelative(mSystemIconsContainer.getPaddingStart(),
|
||||
- mSystemIconsContainer.getPaddingTop(),
|
||||
- getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end),
|
||||
- mSystemIconsContainer.getPaddingBottom());
|
||||
|
||||
// Respect font size setting.
|
||||
@@ -165,14 +165,7 @@ public class KeyguardStatusBarView extends RelativeLayout implements
|
||||
mCarrierLabel.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
||||
getResources().getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.text_size_small_material));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From d95959a10d6ad02c0e1306f72721f8265d617eae Mon Sep 17 00:00:00 2001
|
||||
From 083ce1f8d7cd3baa0aa97940b2d53d0b65ced059 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 19 Oct 2021 12:11:24 +0000
|
||||
Subject: [PATCH 10/16] Revert "monet: Add support for monet (cam16)"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 8c6568389f821286e33e7c25c4397178dce4ab7f Mon Sep 17 00:00:00 2001
|
||||
From 9acde8c9886310dbbfe63e7cd6f30d4656d66b72 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 5 Sep 2021 01:20:12 +0000
|
||||
Subject: [PATCH 11/16] Revert "Update RAT icons to match Silk design"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 89f0089b29765a7ea10524941bca9f96f2a18715 Mon Sep 17 00:00:00 2001
|
||||
From 2377ef0cd6f3fb4abd5038b84c5bf785035ce738 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 7 Oct 2020 14:00:35 +0000
|
||||
Subject: [PATCH 12/16] UI: Always render windows into cutouts
|
||||
@@ -55,10 +55,10 @@ index 32e43ca4e56c..18c28ae674f9 100644
|
||||
}
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
index a070942cc76a..32abd1e60714 100644
|
||||
index 10b36fe67daf..2a1817269446 100644
|
||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
@@ -1604,7 +1604,7 @@ public class DisplayPolicy {
|
||||
@@ -1616,7 +1616,7 @@ public class DisplayPolicy {
|
||||
pf.set((fl & FLAG_LAYOUT_IN_SCREEN) == 0 ? attached.getFrame() : df);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 8d9b3153dd998145a4fa6a60e84bc68fa08e5321 Mon Sep 17 00:00:00 2001
|
||||
From cb0906eadc39915aae89e82b32905fc1e3925359 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 1 Sep 2021 14:10:50 +0000
|
||||
Subject: [PATCH 13/16] UI: Kill rounded corners in notification scrim
|
||||
@@ -11,10 +11,10 @@ Change-Id: I09ed59e0e658ebd512a9d02a8ef3edfe2c9888da
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 775c25bd3b25..e5c875c6bc2f 100644
|
||||
index b3941ff7f82b..140043673612 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -760,7 +760,7 @@
|
||||
@@ -757,7 +757,7 @@
|
||||
<item name="keyguard_clock_line_spacing_scale_burmese" type="dimen" format="float">1</item>
|
||||
|
||||
<item name="scrim_behind_alpha" format="float" type="dimen">0.62</item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From e385463bdbb1849425d9ad30fa21be9e30d447d8 Mon Sep 17 00:00:00 2001
|
||||
From f81da8f238f0ddf872ce900bade1783482bac0cb Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 26 Oct 2020 14:06:56 +0000
|
||||
Subject: [PATCH 14/16] UI: Reconfigure power menu items
|
||||
@@ -11,10 +11,10 @@ Change-Id: I32cca6e2c6bb64d891efee959127edf7c0802cbc
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index b723eb64dc6a..6fe30556c175 100644
|
||||
index 1319c26bb1be..e294223c9066 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -2947,13 +2947,8 @@
|
||||
@@ -2961,13 +2961,8 @@
|
||||
"logout" = Logout the current user
|
||||
-->
|
||||
<string-array translatable="false" name="config_globalActionsList">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From f4685622ff415207ed23426469d02e7f6d37e362 Mon Sep 17 00:00:00 2001
|
||||
From 48705c6c69f2f3f6c8e8005b3c9b50883fe178d4 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 29 Jun 2021 22:57:01 +0000
|
||||
Subject: [PATCH 15/16] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 9f69e2fc32d18a880be11c22c7044417095794e0 Mon Sep 17 00:00:00 2001
|
||||
From 934dfff90102f46f097c5912ab9994d6796d9c63 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 19 Oct 2021 12:09:34 +0000
|
||||
Subject: [PATCH 16/16] UI: Remove privacy dot padding
|
||||
@@ -9,10 +9,10 @@ Change-Id: I5d2e2b3e36f027b4348a83030d4b4d3c4f0209d1
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index e5c875c6bc2f..1431e32fe7bf 100644
|
||||
index 140043673612..51d4ffbc2d49 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -1271,7 +1271,7 @@
|
||||
@@ -1265,7 +1265,7 @@
|
||||
<dimen name="ongoing_appops_chip_max_width">76dp</dimen>
|
||||
<dimen name="ongoing_appops_dot_diameter">6dp</dimen>
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
|
||||
Reference in New Issue
Block a user