Changes for July 2024
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From 92d00894b0d84c8d3fd0a6ba253132ac96402251 Mon Sep 17 00:00:00 2001
|
||||
From e535be2c76e6969ca8a58023b203bf66cfe0d3ae Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 22 Mar 2019 00:41:20 +0800
|
||||
Subject: [PATCH 01/34] Disable FP lockouts optionally
|
||||
Subject: [PATCH 01/43] Disable FP lockouts optionally
|
||||
|
||||
Both timed and permanent lockouts - GET THE FUCK OUT
|
||||
Now targeting LockoutFramework, introduced in Android 12
|
||||
@@ -13,10 +13,10 @@ Change-Id: I2d4b091f3546d4d7903bfb4d5585629212dc9915
|
||||
1 file changed, 17 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java
|
||||
index 0730c672acd9..972421758223 100644
|
||||
index 0e05a7923db4..34268e2f8a5a 100644
|
||||
--- a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java
|
||||
+++ b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java
|
||||
@@ -27,6 +27,7 @@ import android.content.IntentFilter;
|
||||
@@ -29,6 +29,7 @@ import android.content.IntentFilter;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.SystemClock;
|
||||
@@ -24,7 +24,7 @@ index 0730c672acd9..972421758223 100644
|
||||
import android.util.Slog;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.util.SparseIntArray;
|
||||
@@ -46,6 +47,7 @@ public class LockoutFrameworkImpl implements LockoutTracker {
|
||||
@@ -51,6 +52,7 @@ public class LockoutFrameworkImpl implements LockoutTracker {
|
||||
private static final int MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT = 20;
|
||||
private static final long FAIL_LOCKOUT_TIMEOUT_MS = 30 * 1000;
|
||||
private static final String KEY_LOCKOUT_RESET_USER = "lockout_reset_user";
|
||||
@@ -32,7 +32,7 @@ index 0730c672acd9..972421758223 100644
|
||||
|
||||
private final class LockoutReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
@@ -107,24 +109,28 @@ public class LockoutFrameworkImpl implements LockoutTracker {
|
||||
@@ -133,24 +135,28 @@ public class LockoutFrameworkImpl implements LockoutTracker {
|
||||
|
||||
@Override
|
||||
public void addFailedAttemptForUser(int userId) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From b3aa7feea26bb5d713a8511f5720f33f0c204002 Mon Sep 17 00:00:00 2001
|
||||
From 8595258b7aac74763f6f8b7edbe37b91f0a4c1a5 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
||||
Subject: [PATCH 02/34] Disable vendor mismatch warning
|
||||
Subject: [PATCH 02/43] Disable vendor mismatch warning
|
||||
|
||||
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||
1 file changed, 1 insertion(+), 13 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
index ad9ac201e22b..b42e4e2e22dc 100644
|
||||
index b26cddaccc04..cdc661598f33 100644
|
||||
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
@@ -6237,19 +6237,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
@@ -6312,19 +6312,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
|
||||
if (!isBuildConsistent) {
|
||||
Slog.e(TAG, "Build fingerprint is not consistent, warning user");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From e492a141400c534bfc1f08b904e7e7f60e92164e Mon Sep 17 00:00:00 2001
|
||||
From 51ff3c370b9a75bb98f949506afe2dd1aafc6ca7 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 21 Jan 2024 22:03:47 +0800
|
||||
Subject: [PATCH 03/34] Keyguard: Allow locking to any rotation mode
|
||||
Subject: [PATCH 03/43] Keyguard: Allow locking to any rotation mode
|
||||
|
||||
Change-Id: I0f12c433f3547e9bfcdbc2cf50e2a4f3ec8ca311
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Change-Id: I0f12c433f3547e9bfcdbc2cf50e2a4f3ec8ca311
|
||||
1 file changed, 3 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java
|
||||
index b4082694bbe5..f9f3dd911a74 100644
|
||||
index 1aa42d1554fe..a2787a0bebe0 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java
|
||||
@@ -431,12 +431,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
|
||||
@@ -443,12 +443,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
|
||||
}
|
||||
|
||||
private void adjustScreenOrientation(NotificationShadeWindowState state) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From beea20462b965e2c790549f7d854ed71b46b54e9 Mon Sep 17 00:00:00 2001
|
||||
From b2c40aa3a127825dfacf3006d18639557dd4064d Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 17 Jan 2023 17:19:19 +0000
|
||||
Subject: [PATCH 04/34] Keyguard: Fix colors of slices not updating on doze
|
||||
Subject: [PATCH 04/43] Keyguard: Fix colors of slices not updating on doze
|
||||
|
||||
Slices were invisible (black) in doze when using light wallpapers
|
||||
Introduced in https://github.com/LineageOS/android_frameworks_base/commit/a19e59d717ec6d573c11c7e8277bba3c4de189c2
|
||||
@@ -13,10 +13,10 @@ Change-Id: I06abd8bf2e28655cc9e6d81366fd82a13454ec5a
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
|
||||
index 2a54a4eee657..de2d1ec89b61 100644
|
||||
index c0ae4a1f4036..7b25a37a1632 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
|
||||
@@ -297,6 +297,13 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
|
||||
@@ -282,6 +282,13 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
|
||||
mKeyguardSliceViewController.refresh();
|
||||
}
|
||||
|
||||
@@ -31,10 +31,10 @@ index 2a54a4eee657..de2d1ec89b61 100644
|
||||
* Set which clock should be displayed on the keyguard. The other one will be automatically
|
||||
* hidden.
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
|
||||
index 6aa11143f21e..b0ae87580292 100644
|
||||
index cfc0658da0f4..bbce9228f379 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
|
||||
@@ -4551,6 +4551,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
||||
@@ -4574,6 +4574,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
||||
public void onDozeAmountChanged(float linearAmount, float amount) {
|
||||
mInterpolatedDarkAmount = amount;
|
||||
mLinearDarkAmount = linearAmount;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 5ee95318ee1be083a2a2569be7362fcafd8fbc94 Mon Sep 17 00:00:00 2001
|
||||
From cf2228c2c69638c3acf728e6eefda51e2e33cbd7 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 16 Oct 2021 02:23:48 +0000
|
||||
Subject: [PATCH 05/34] UI: Adjust default navbar layouts
|
||||
Subject: [PATCH 05/43] UI: Adjust default navbar layouts
|
||||
|
||||
- Slightly tighten nodpi layout
|
||||
- Remove sw372dp layout - looks terrible, probably meant for legacy phablets, but most modern phones qualify
|
||||
@@ -45,7 +45,7 @@ index 07b797a32428..000000000000
|
||||
- <string name="config_navBarLayout" translatable="false">left[.25W],back[.5WC];home;recent[.5WC],right[.25W]</string>
|
||||
-</resources>
|
||||
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||
index 038e9da33b83..4791ad8969f0 100644
|
||||
index 2124ad9edca9..0286cc65c8e2 100644
|
||||
--- a/packages/SystemUI/res/values/config.xml
|
||||
+++ b/packages/SystemUI/res/values/config.xml
|
||||
@@ -325,7 +325,7 @@
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 5b8bc8a9cf51ed8fb40101b7a5234fccaee36327 Mon Sep 17 00:00:00 2001
|
||||
From 2ff1e12e1ff9952fe489c9023eb76d342af1ddbf Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 19 Mar 2022 09:22:24 +0000
|
||||
Subject: [PATCH 06/34] UI: Adjust split-screen divider
|
||||
Subject: [PATCH 06/43] UI: Adjust split-screen divider
|
||||
|
||||
- Kill rounded corners - where two rectangles collide should be perfectly straight
|
||||
- Make it black (pre-Sv2) for phones
|
||||
@@ -150,7 +150,7 @@ index 000000000000..8a1907da76e5
|
||||
+ <color name="split_divider_background">@color/taskbar_background</color>
|
||||
+</resources>
|
||||
diff --git a/libs/WindowManager/Shell/res/values/colors.xml b/libs/WindowManager/Shell/res/values/colors.xml
|
||||
index fae71efe3b39..fb50f0119b43 100644
|
||||
index 758dbfd5f3c5..e82f6ff9a4db 100644
|
||||
--- a/libs/WindowManager/Shell/res/values/colors.xml
|
||||
+++ b/libs/WindowManager/Shell/res/values/colors.xml
|
||||
@@ -18,7 +18,7 @@
|
||||
@@ -163,7 +163,7 @@ index fae71efe3b39..fb50f0119b43 100644
|
||||
<color name="minimize_dock_shadow_start">#60000000</color>
|
||||
<color name="minimize_dock_shadow_end">#00000000</color>
|
||||
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
|
||||
index 53caddb52f23..fae5008283cc 100644
|
||||
index 6b2d544c192a..7c4db20d8cd8 100644
|
||||
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
|
||||
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java
|
||||
@@ -168,23 +168,8 @@ public final class SplitLayout implements DisplayInsetsController.OnInsetsChange
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From f9879e5977ca089dae074c63e609a2a5bc734199 Mon Sep 17 00:00:00 2001
|
||||
From 6cdab07dbf6a812c1c2daf80c292fa9088143572 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 10 Jan 2021 11:44:29 +0000
|
||||
Subject: [PATCH 07/34] UI: Disable wallpaper zoom
|
||||
Subject: [PATCH 07/43] UI: Disable wallpaper zoom
|
||||
|
||||
It does little more than inducing motion sickness
|
||||
|
||||
@@ -11,10 +11,10 @@ Change-Id: I78cc5484930b27f172cd8d8a5bd9042dce3478d0
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index 3bc33bac37bc..369eb84ccd84 100644
|
||||
index 0a4fc6515368..129c7160fe63 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -5768,7 +5768,7 @@
|
||||
@@ -5858,7 +5858,7 @@
|
||||
<item name="config_wallpaperMinScale" format="float" type="dimen">1</item>
|
||||
|
||||
<!-- The max scale for the wallpaper when it's zoomed in -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 2ffb66fa7c00b63536c3de706bd6e36b2b696512 Mon Sep 17 00:00:00 2001
|
||||
From bfc38ff3a5a13606880951948d8e09b430405e25 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 25 Sep 2022 02:20:52 +0000
|
||||
Subject: [PATCH 08/34] UI: Follow Monet and light/dark theme in user 1 icon
|
||||
Subject: [PATCH 08/43] UI: Follow Monet and light/dark theme in user 1 icon
|
||||
|
||||
Change-Id: I755077c6003c39ddc9428da1defe6a6ddd0e5ff8
|
||||
---
|
||||
@@ -22,7 +22,7 @@ index d3f998fb70cf..4f7b9e093bb7 100644
|
||||
<color name="user_icon_6">#ff4ecde6</color><!-- cyan -->
|
||||
<color name="user_icon_7">#fffbbc04</color><!-- yellow -->
|
||||
diff --git a/core/res/res/values/colors.xml b/core/res/res/values/colors.xml
|
||||
index eddd81e78692..00cf4243cfa9 100644
|
||||
index b879c9794f39..d8191c0c3597 100644
|
||||
--- a/core/res/res/values/colors.xml
|
||||
+++ b/core/res/res/values/colors.xml
|
||||
@@ -177,7 +177,7 @@
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 0e9361f835650e386bb6b797ebb1b6852d40c762 Mon Sep 17 00:00:00 2001
|
||||
From d53bbfe5b348426411d7c5739ec9910c2fcd3009 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 3 Jun 2020 01:31:34 +0000
|
||||
Subject: [PATCH 10/34] UI: Increase default status bar height
|
||||
Subject: [PATCH 09/43] UI: Increase default status bar height
|
||||
|
||||
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||
---
|
||||
@@ -9,7 +9,7 @@ Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
||||
index 96c4bf432c05..a086f16c769e 100644
|
||||
index 291a5936330a..5aed5c540a75 100644
|
||||
--- a/core/res/res/values/dimens.xml
|
||||
+++ b/core/res/res/values/dimens.xml
|
||||
@@ -41,7 +41,7 @@
|
||||
@@ -1,7 +1,7 @@
|
||||
From 635207ed57659f3c89cfa144de981706c569d9c8 Mon Sep 17 00:00:00 2001
|
||||
From 6e308897ce7844197aa8cbc7bf43b2cdaa54a3df Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 6 Oct 2020 01:41:16 +0000
|
||||
Subject: [PATCH 11/34] UI: Revive navbar layout tuning via sysui_nav_bar
|
||||
Subject: [PATCH 10/43] UI: Revive navbar layout tuning via sysui_nav_bar
|
||||
tunable
|
||||
|
||||
Google keeps fixing what ain't broken.
|
||||
@@ -1,7 +1,7 @@
|
||||
From b2ca16f3b497b0f69e125eb9f47f2324d2a2019e Mon Sep 17 00:00:00 2001
|
||||
From 7d5902f123cc883437cf198fcc1d40c6773129a9 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 26 Apr 2020 08:56:13 +0000
|
||||
Subject: [PATCH 12/34] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||
Subject: [PATCH 11/43] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||
|
||||
Enables multiple snap targets under landscape for phone UI
|
||||
|
||||
@@ -78,10 +78,10 @@ index 34b6a54be493..3921c9edfeac 100644
|
||||
Only applies if the device display is not square. -->
|
||||
<bool name="config_navBarCanMove">false</bool>
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index 369eb84ccd84..c223ec0d6ed0 100644
|
||||
index 129c7160fe63..2302cd3911d9 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -4203,7 +4203,7 @@
|
||||
@@ -4273,7 +4273,7 @@
|
||||
1 - 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
|
||||
2 - 1 snap target: 1:1
|
||||
-->
|
||||
@@ -1,7 +1,7 @@
|
||||
From 77275322ff6606110bec9f11bbdc90932ab1fded Mon Sep 17 00:00:00 2001
|
||||
From 2717db2bc74bbebcde07904bdf52afae2da35cfa Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 3 Nov 2020 22:43:12 -0800
|
||||
Subject: [PATCH 13/34] core: Remove old app target SDK dialog
|
||||
Subject: [PATCH 12/43] core: Remove old app target SDK dialog
|
||||
|
||||
If an app is old, users should already know that, and there's usually no
|
||||
point in warning them about it because they would already be using a
|
||||
@@ -1,7 +1,7 @@
|
||||
From 4639be840945f29ba14ed58de8c2f538e2f487fb Mon Sep 17 00:00:00 2001
|
||||
From 38fbb12c2b6ce42d78e05248410c1de666d46700 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 5 Oct 2021 21:01:50 -0700
|
||||
Subject: [PATCH 14/34] Paint: Enable subpixel text positioning by default
|
||||
Subject: [PATCH 13/43] Paint: Enable subpixel text positioning by default
|
||||
|
||||
On desktop Linux, subpixel text positioning is necessary to avoid
|
||||
kerning issues, and Android is no different. Even though most phone
|
||||
@@ -24,10 +24,10 @@ Change-Id: I8d71e5848a745c5a2d457a28c68458920928ee09
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java
|
||||
index f10cdb82022e..a083c723f9c3 100644
|
||||
index df95a91d72d7..6cbae8b67815 100644
|
||||
--- a/graphics/java/android/graphics/Paint.java
|
||||
+++ b/graphics/java/android/graphics/Paint.java
|
||||
@@ -266,7 +266,7 @@ public class Paint {
|
||||
@@ -329,7 +329,7 @@ public class Paint {
|
||||
|
||||
// These flags are always set on a new/reset paint, even if flags 0 is passed.
|
||||
static final int HIDDEN_DEFAULT_PAINT_FLAGS = DEV_KERN_TEXT_FLAG | EMBEDDED_BITMAP_TEXT_FLAG
|
||||
@@ -1,7 +1,7 @@
|
||||
From 33ea20cb105c85d2c7bc0bab20c5d87ecf2d3df6 Mon Sep 17 00:00:00 2001
|
||||
From 76893bd08d5c89685320342db2a3bcec2bc981f5 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 17 Mar 2024 17:10:38 +0800
|
||||
Subject: [PATCH 15/34] Remove debuggable requirement for signature spoofing
|
||||
Subject: [PATCH 14/43] Remove debuggable requirement for signature spoofing
|
||||
|
||||
Change-Id: I8d637ddbbd117a9c5b1d9c5e462b0f4b30d98333
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Change-Id: I8d637ddbbd117a9c5b1d9c5e462b0f4b30d98333
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/pm/ComputerEngine.java b/services/core/java/com/android/server/pm/ComputerEngine.java
|
||||
index d8cbe9d5e7c7..13af78f56462 100644
|
||||
index 7d00436857a5..10a221eb8b9f 100644
|
||||
--- a/services/core/java/com/android/server/pm/ComputerEngine.java
|
||||
+++ b/services/core/java/com/android/server/pm/ComputerEngine.java
|
||||
@@ -1472,10 +1472,6 @@ public class ComputerEngine implements Computer {
|
||||
@@ -1474,10 +1474,6 @@ public class ComputerEngine implements Computer {
|
||||
private static native boolean isDebuggable();
|
||||
|
||||
public static boolean isMicrogSigned(AndroidPackage p) {
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,54 @@
|
||||
From 2f0cb797274c27772f923c7a07ef830c12ddbfd4 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 30 Jun 2024 16:49:47 +0800
|
||||
Subject: [PATCH 16/43] Revert "Change color of track"
|
||||
|
||||
This reverts commit 9ba91db9836625e5f45367b38b76cf08615cce00.
|
||||
---
|
||||
.../res/color/brightness_slider_track.xml | 19 -------------------
|
||||
.../drawable/brightness_progress_drawable.xml | 2 +-
|
||||
2 files changed, 1 insertion(+), 20 deletions(-)
|
||||
delete mode 100644 packages/SystemUI/res/color/brightness_slider_track.xml
|
||||
|
||||
diff --git a/packages/SystemUI/res/color/brightness_slider_track.xml b/packages/SystemUI/res/color/brightness_slider_track.xml
|
||||
deleted file mode 100644
|
||||
index 6028769f3789..000000000000
|
||||
--- a/packages/SystemUI/res/color/brightness_slider_track.xml
|
||||
+++ /dev/null
|
||||
@@ -1,19 +0,0 @@
|
||||
-<?xml version="1.0" encoding="utf-8"?><!--
|
||||
- ~ Copyright (C) 2024 The Android Open Source Project
|
||||
- ~
|
||||
- ~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
- ~ you may not use this file except in compliance with the License.
|
||||
- ~ You may obtain a copy of the License at
|
||||
- ~
|
||||
- ~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
- ~
|
||||
- ~ Unless required by applicable law or agreed to in writing, software
|
||||
- ~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
- ~ See the License for the specific language governing permissions and
|
||||
- ~ limitations under the License.
|
||||
- -->
|
||||
-
|
||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
- <item android:color="@android:color/system_neutral2_500" android:lStar="40" />
|
||||
-</selector>
|
||||
\ No newline at end of file
|
||||
diff --git a/packages/SystemUI/res/drawable/brightness_progress_drawable.xml b/packages/SystemUI/res/drawable/brightness_progress_drawable.xml
|
||||
index cae9d6b0513e..95c7778c0e76 100644
|
||||
--- a/packages/SystemUI/res/drawable/brightness_progress_drawable.xml
|
||||
+++ b/packages/SystemUI/res/drawable/brightness_progress_drawable.xml
|
||||
@@ -24,7 +24,7 @@
|
||||
<shape>
|
||||
<size android:height="@dimen/rounded_slider_track_width" />
|
||||
<corners android:radius="@dimen/rounded_slider_track_corner_radius" />
|
||||
- <solid android:color="@color/brightness_slider_track" />
|
||||
+ <solid android:color="?attr/shadeInactive" />
|
||||
</shape>
|
||||
</inset>
|
||||
</item>
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 587d8c7b04046a1a52c6dba36dbafaf95911b30e Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 30 Jun 2024 16:13:51 +0800
|
||||
Subject: [PATCH 17/43] Revert "Fix the text color used on the notification
|
||||
unread indicator."
|
||||
|
||||
This reverts commit aee60c49308a81125587ea0c53f40c9d5d60707e.
|
||||
---
|
||||
core/java/android/app/Notification.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
|
||||
index 1129f9dbdfeb..baecf785a8af 100644
|
||||
--- a/core/java/android/app/Notification.java
|
||||
+++ b/core/java/android/app/Notification.java
|
||||
@@ -5721,7 +5721,7 @@ public class Notification implements Parcelable
|
||||
pillColor = Colors.flattenAlpha(
|
||||
getColors(p).getTertiaryFixedDimAccentColor(), bgColor);
|
||||
textColor = Colors.flattenAlpha(
|
||||
- getColors(p).getOnTertiaryFixedAccentTextColor(), pillColor);
|
||||
+ getColors(p).getOnTertiaryAccentTextColor(), pillColor);
|
||||
}
|
||||
contentView.setInt(R.id.expand_button, "setHighlightTextColor", textColor);
|
||||
contentView.setInt(R.id.expand_button, "setHighlightPillColor", pillColor);
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From c650743c1e67f48640774af517a2ce77f04e1141 Mon Sep 17 00:00:00 2001
|
||||
From 912eb2ce819f09cf4e4592833547ea94b8ee3d80 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 4 Apr 2024 18:26:02 +0800
|
||||
Subject: [PATCH 16/34] Revert "Update SystemUI to new notification color spec"
|
||||
Subject: [PATCH 18/43] Revert "Update SystemUI to new notification color spec"
|
||||
|
||||
This reverts commit db2c5554ac653567d1433d3ff99328c5d855c233.
|
||||
|
||||
@@ -37,13 +37,13 @@ Change-Id: Iddbe46f4d01d05d6579c1e8b9dab266dd605e199
|
||||
.../row/wrapper/NotificationViewWrapper.java | 3 +-
|
||||
.../stack/NotificationChildrenContainer.java | 2 +-
|
||||
.../stack/NotificationSectionsManager.kt | 8 ++---
|
||||
.../stack/NotificationStackScrollLayout.java | 25 +++++++---------
|
||||
.../stack/NotificationStackScrollLayout.java | 23 +++++++-------
|
||||
.../notification/stack/SectionHeaderView.java | 6 ++--
|
||||
.../statusbar/phone/ScrimController.java | 5 ++--
|
||||
.../statusbar/phone/TapAgainView.java | 7 ++---
|
||||
.../statusbar/policy/RemoteInputView.java | 15 +++++-----
|
||||
.../row/ActivatableNotificationViewTest.kt | 5 ++--
|
||||
36 files changed, 101 insertions(+), 139 deletions(-)
|
||||
36 files changed, 101 insertions(+), 137 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/color/notification_guts_priority_button_bg_stroke.xml b/packages/SystemUI/res/color/notification_guts_priority_button_bg_stroke.xml
|
||||
index d1b8a064724d..015e9f99212d 100644
|
||||
@@ -153,7 +153,7 @@ index 84e2231738d4..bd9394bf9f8a 100644
|
||||
<corners android:radius="1dp" />
|
||||
</shape>
|
||||
diff --git a/packages/SystemUI/res/drawable/notification_material_bg.xml b/packages/SystemUI/res/drawable/notification_material_bg.xml
|
||||
index 355e75d0716b..3eaa6180ba1b 100644
|
||||
index 3f903aece0b5..40b9238b5e87 100644
|
||||
--- a/packages/SystemUI/res/drawable/notification_material_bg.xml
|
||||
+++ b/packages/SystemUI/res/drawable/notification_material_bg.xml
|
||||
@@ -20,7 +20,7 @@
|
||||
@@ -320,7 +320,7 @@ index 19a3f2fd521c..852db1b8fb91 100644
|
||||
|
||||
</LinearLayout>
|
||||
diff --git a/packages/SystemUI/res/layout/notification_snooze.xml b/packages/SystemUI/res/layout/notification_snooze.xml
|
||||
index 6e541a7a5f32..8b5368098c00 100644
|
||||
index ce09385eaf45..6608d8620f86 100644
|
||||
--- a/packages/SystemUI/res/layout/notification_snooze.xml
|
||||
+++ b/packages/SystemUI/res/layout/notification_snooze.xml
|
||||
@@ -23,7 +23,7 @@
|
||||
@@ -409,7 +409,7 @@ index 53abe87e7c12..c4d8d55f74e2 100644
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml
|
||||
index bcc3c83b4560..e759c1211a93 100644
|
||||
index 61a323d44dfc..ddf188e3f1d3 100644
|
||||
--- a/packages/SystemUI/res/values-night/colors.xml
|
||||
+++ b/packages/SystemUI/res/values-night/colors.xml
|
||||
@@ -33,7 +33,7 @@
|
||||
@@ -422,10 +422,10 @@ index bcc3c83b4560..e759c1211a93 100644
|
||||
<color name="notification_guts_link_icon_tint">@color/GM2_grey_500</color>
|
||||
<color name="notification_guts_sub_text_color">@color/GM2_grey_300</color>
|
||||
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
|
||||
index 34dcd655b8e7..91a72922fd0a 100644
|
||||
index 46364820c5d5..846fd5736590 100644
|
||||
--- a/packages/SystemUI/res/values/colors.xml
|
||||
+++ b/packages/SystemUI/res/values/colors.xml
|
||||
@@ -116,7 +116,7 @@
|
||||
@@ -121,7 +121,7 @@
|
||||
<!-- Chosen so fill over background matches single tone -->
|
||||
<color name="dark_mode_qs_icon_color_dual_tone_fill">#99000000</color>
|
||||
|
||||
@@ -435,10 +435,10 @@ index 34dcd655b8e7..91a72922fd0a 100644
|
||||
<!-- Keyboard shortcuts colors -->
|
||||
<color name="ksh_application_group_color">#fff44336</color>
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index e3d4419afceb..7852608df57d 100644
|
||||
index ce08ca3e43af..ae354d634f67 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -602,34 +602,34 @@
|
||||
@@ -625,34 +625,34 @@
|
||||
<style name="TextAppearance.NotificationImportanceChannel">
|
||||
<item name="android:textSize">@dimen/notification_importance_channel_text</item>
|
||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item>
|
||||
@@ -478,7 +478,7 @@ index e3d4419afceb..7852608df57d 100644
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
|
||||
@@ -640,28 +640,10 @@
|
||||
@@ -663,28 +663,10 @@
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
|
||||
@@ -528,10 +528,10 @@ index 2338be28d32c..c9758471a30e 100644
|
||||
|
||||
public void setText(@StringRes int text) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/footer/ui/view/FooterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/footer/ui/view/FooterView.java
|
||||
index 3616fd6d8cd1..a6e07f1f5e3e 100644
|
||||
index 16f18a3c3fb6..17dc2a6ad815 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/footer/ui/view/FooterView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/footer/ui/view/FooterView.java
|
||||
@@ -313,25 +313,26 @@ public class FooterView extends StackScrollerDecorView {
|
||||
@@ -361,25 +361,26 @@ public class FooterView extends StackScrollerDecorView {
|
||||
*/
|
||||
public void updateColors() {
|
||||
Resources.Theme theme = mContext.getTheme();
|
||||
@@ -559,11 +559,11 @@ index 3616fd6d8cd1..a6e07f1f5e3e 100644
|
||||
mClearAllButton.setBackground(clearAllBg);
|
||||
- mClearAllButton.setTextColor(onSurface);
|
||||
+ mClearAllButton.setTextColor(textColor);
|
||||
mManageButton.setBackground(manageBg);
|
||||
- mManageButton.setTextColor(onSurface);
|
||||
mManageOrHistoryButton.setBackground(manageBg);
|
||||
- mManageOrHistoryButton.setTextColor(onSurface);
|
||||
- mSeenNotifsFooterTextView.setTextColor(onSurface);
|
||||
- mSeenNotifsFooterTextView.setCompoundDrawableTintList(ColorStateList.valueOf(onSurface));
|
||||
+ mManageButton.setTextColor(textColor);
|
||||
+ mManageOrHistoryButton.setTextColor(textColor);
|
||||
+ final @ColorInt int labelTextColor =
|
||||
+ Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorPrimary);
|
||||
+ mSeenNotifsFooterTextView.setTextColor(labelTextColor);
|
||||
@@ -573,10 +573,10 @@ index 3616fd6d8cd1..a6e07f1f5e3e 100644
|
||||
|
||||
private void updateResources() {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
index 4fe05ec9990c..9fa9049cc7cd 100644
|
||||
index 83c50f52af6f..455a286346e6 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
@@ -124,7 +124,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
@@ -122,7 +122,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
|
||||
private void updateColors() {
|
||||
mNormalColor = Utils.getColorAttrDefaultColor(mContext,
|
||||
@@ -654,10 +654,10 @@ index 50f3e7896442..6f602ff437eb 100644
|
||||
}
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java
|
||||
index 0236fc265add..a929e4f3ea7f 100644
|
||||
index fa973001cec7..3ac14fc39065 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java
|
||||
@@ -1362,7 +1362,7 @@ public class NotificationChildrenContainer extends ViewGroup
|
||||
@@ -1504,7 +1504,7 @@ public class NotificationChildrenContainer extends ViewGroup
|
||||
Resources.Theme theme = new ContextThemeWrapper(mContext,
|
||||
com.android.internal.R.style.Theme_DeviceDefault_DayNight).getTheme();
|
||||
try (TypedArray ta = theme.obtainStyledAttributes(
|
||||
@@ -667,7 +667,7 @@ index 0236fc265add..a929e4f3ea7f 100644
|
||||
}
|
||||
mHybridGroupManager.setOverflowNumberColor(mOverflowNumber, color);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt
|
||||
index cfc433a09c4d..fd064eeab2ab 100644
|
||||
index d269eda6795a..5cd0c0d08d3b 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt
|
||||
@@ -244,10 +244,10 @@ class NotificationSectionsManager @Inject internal constructor(
|
||||
@@ -686,10 +686,10 @@ index cfc433a09c4d..fd064eeab2ab 100644
|
||||
|
||||
companion object {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
index 3bbdfd164ba7..c84aab1f83cb 100644
|
||||
index fb8bc7a34a9c..d8363fa54427 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
@@ -341,7 +341,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
@@ -351,7 +351,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
private boolean mAnimateNextBackgroundTop;
|
||||
private boolean mAnimateNextBackgroundBottom;
|
||||
private boolean mAnimateNextSectionBoundsChange;
|
||||
@@ -698,7 +698,7 @@ index 3bbdfd164ba7..c84aab1f83cb 100644
|
||||
private float mDimAmount;
|
||||
private ValueAnimator mDimAnimator;
|
||||
private final ArrayList<ExpandableView> mTmpSortedChildren = new ArrayList<>();
|
||||
@@ -643,8 +643,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
@@ -665,8 +665,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
mSections = mSectionsManager.createSectionsForBuckets();
|
||||
|
||||
mAmbientState = Dependency.get(AmbientState.class);
|
||||
@@ -709,7 +709,7 @@ index 3bbdfd164ba7..c84aab1f83cb 100644
|
||||
int minHeight = res.getDimensionPixelSize(R.dimen.notification_min_height);
|
||||
int maxHeight = res.getDimensionPixelSize(R.dimen.notification_max_height);
|
||||
mSplitShadeMinContentHeight = res.getDimensionPixelSize(
|
||||
@@ -780,8 +780,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
@@ -810,8 +810,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
}
|
||||
|
||||
void updateBgColor() {
|
||||
@@ -720,7 +720,7 @@ index 3bbdfd164ba7..c84aab1f83cb 100644
|
||||
updateBackgroundDimming();
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
View child = getChildAt(i);
|
||||
@@ -4473,19 +4473,14 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
@@ -4622,22 +4622,19 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -734,17 +734,20 @@ index 3bbdfd164ba7..c84aab1f83cb 100644
|
||||
- mContext, com.android.internal.R.attr.materialColorOnSurfaceVariant);
|
||||
-
|
||||
- mSectionsManager.setHeaderForegroundColors(onSurface, onSurfaceVariant);
|
||||
-
|
||||
+ final @ColorInt int textColor =
|
||||
+ Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorPrimary);
|
||||
+ mSectionsManager.setHeaderForegroundColor(textColor);
|
||||
mFooterView.updateColors();
|
||||
-
|
||||
- mEmptyShadeView.setTextColors(onSurface, onSurfaceVariant);
|
||||
+ mEmptyShadeView.setTextColor(textColor);
|
||||
|
||||
if (mFooterView != null) {
|
||||
mFooterView.updateColors();
|
||||
}
|
||||
|
||||
if (mEmptyShadeView != null) {
|
||||
- mEmptyShadeView.setTextColors(onSurface, onSurfaceVariant);
|
||||
+ mEmptyShadeView.setTextColor(textColor);
|
||||
}
|
||||
}
|
||||
|
||||
void goToFullShade(long delay) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/SectionHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/SectionHeaderView.java
|
||||
index 580431a13d1b..59e1af5eb6f1 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/SectionHeaderView.java
|
||||
@@ -762,10 +765,10 @@ index 580431a13d1b..59e1af5eb6f1 100644
|
||||
}
|
||||
}
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index ae04eaf49b65..05904eae769c 100644
|
||||
index d2e36b88fd9d..3404d5bbcc53 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -1496,9 +1496,8 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -1555,9 +1555,8 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
private void updateThemeColors() {
|
||||
if (mScrimBehind == null) return;
|
||||
int background = Utils.getColorAttr(mScrimBehind.getContext(),
|
||||
@@ -810,7 +813,7 @@ index 66ac17eee545..a033e1d55333 100644
|
||||
}
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java
|
||||
index 4864fb8ca634..ceed81a182aa 100644
|
||||
index 2a48807ace2f..e02881951dd4 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java
|
||||
@@ -130,7 +130,7 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
||||
@@ -1,7 +1,7 @@
|
||||
From 456e921e4ea5b79cdf5afbf5207c663d47e1a3b2 Mon Sep 17 00:00:00 2001
|
||||
From ddefb3aa749044a6b4838687f669c390512c6711 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 4 Apr 2024 18:26:08 +0800
|
||||
Subject: [PATCH 17/34] Revert "Update framework to new notification color
|
||||
Subject: [PATCH 19/43] Revert "Update framework to new notification color
|
||||
spec"
|
||||
|
||||
This reverts commit 6063e254e0cc84243e3a3fb85fe1bff71b302a87.
|
||||
@@ -12,10 +12,10 @@ This reverts commit 6063e254e0cc84243e3a3fb85fe1bff71b302a87.
|
||||
3 files changed, 15 insertions(+), 53 deletions(-)
|
||||
|
||||
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
|
||||
index 7454e52b50ef..5d55f3440b57 100644
|
||||
index baecf785a8af..671b8d4153c5 100644
|
||||
--- a/core/java/android/app/Notification.java
|
||||
+++ b/core/java/android/app/Notification.java
|
||||
@@ -5618,8 +5618,7 @@ public class Notification implements Parcelable
|
||||
@@ -5718,8 +5718,7 @@ public class Notification implements Parcelable
|
||||
contentView.setInt(R.id.expand_button, "setDefaultPillColor", pillColor);
|
||||
// Use different highlighted colors for conversations' unread count
|
||||
if (p.mHighlightExpander) {
|
||||
@@ -25,7 +25,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
textColor = Colors.flattenAlpha(
|
||||
getColors(p).getOnTertiaryAccentTextColor(), pillColor);
|
||||
}
|
||||
@@ -12782,9 +12781,6 @@ public class Notification implements Parcelable
|
||||
@@ -12944,9 +12943,6 @@ public class Notification implements Parcelable
|
||||
private int mSecondaryAccentColor = COLOR_INVALID;
|
||||
private int mTertiaryAccentColor = COLOR_INVALID;
|
||||
private int mOnTertiaryAccentTextColor = COLOR_INVALID;
|
||||
@@ -35,7 +35,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
private int mErrorColor = COLOR_INVALID;
|
||||
private int mContrastColor = COLOR_INVALID;
|
||||
private int mRippleAlpha = 0x33;
|
||||
@@ -12842,7 +12838,7 @@ public class Notification implements Parcelable
|
||||
@@ -13004,7 +13000,7 @@ public class Notification implements Parcelable
|
||||
|
||||
if (isColorized) {
|
||||
if (rawColor == COLOR_DEFAULT) {
|
||||
@@ -44,7 +44,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
try (TypedArray ta = obtainDayNightAttributes(ctx, attrs)) {
|
||||
mBackgroundColor = getColor(ta, 0, Color.WHITE);
|
||||
}
|
||||
@@ -12860,21 +12856,17 @@ public class Notification implements Parcelable
|
||||
@@ -13022,21 +13018,17 @@ public class Notification implements Parcelable
|
||||
mSecondaryAccentColor = mSecondaryTextColor;
|
||||
mTertiaryAccentColor = flattenAlpha(mPrimaryTextColor, mBackgroundColor);
|
||||
mOnTertiaryAccentTextColor = mBackgroundColor;
|
||||
@@ -73,7 +73,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
R.attr.colorError,
|
||||
R.attr.colorControlHighlight
|
||||
};
|
||||
@@ -12886,10 +12878,8 @@ public class Notification implements Parcelable
|
||||
@@ -13048,10 +13040,8 @@ public class Notification implements Parcelable
|
||||
mSecondaryAccentColor = getColor(ta, 4, COLOR_INVALID);
|
||||
mTertiaryAccentColor = getColor(ta, 5, COLOR_INVALID);
|
||||
mOnTertiaryAccentTextColor = getColor(ta, 6, COLOR_INVALID);
|
||||
@@ -86,7 +86,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
}
|
||||
mContrastColor = calculateContrastColor(ctx, rawColor, mPrimaryAccentColor,
|
||||
mBackgroundColor, nightMode);
|
||||
@@ -12917,14 +12907,6 @@ public class Notification implements Parcelable
|
||||
@@ -13079,14 +13069,6 @@ public class Notification implements Parcelable
|
||||
ContrastColorUtil.resolvePrimaryColor(
|
||||
ctx, mTertiaryAccentColor, nightMode), 0xFF);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
if (mErrorColor == COLOR_INVALID) {
|
||||
mErrorColor = mPrimaryTextColor;
|
||||
}
|
||||
@@ -12998,16 +12980,6 @@ public class Notification implements Parcelable
|
||||
@@ -13160,16 +13142,6 @@ public class Notification implements Parcelable
|
||||
return mOnTertiaryAccentTextColor;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ index 7454e52b50ef..5d55f3440b57 100644
|
||||
* @return the contrast-adjusted version of the color provided by the app, or the
|
||||
* primary text color when colorized.
|
||||
diff --git a/core/res/res/values/colors.xml b/core/res/res/values/colors.xml
|
||||
index 00cf4243cfa9..2050cfe11d0e 100644
|
||||
index d8191c0c3597..b4139f343fa5 100644
|
||||
--- a/core/res/res/values/colors.xml
|
||||
+++ b/core/res/res/values/colors.xml
|
||||
@@ -135,12 +135,11 @@
|
||||
@@ -1,7 +1,7 @@
|
||||
From 35bdcaf6f7a98a68854ac256261d0eb91b1493aa Mon Sep 17 00:00:00 2001
|
||||
From 8a7d67d51befd145133c5ef14ba28988e26d991f Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Wed, 6 Oct 2021 18:40:30 -0700
|
||||
Subject: [PATCH 18/34] Revert "Make QS always use dark theme colors"
|
||||
Subject: [PATCH 20/43] Revert "Make QS always use dark theme colors"
|
||||
|
||||
This reverts commit d62f7249f9e3222da95ecf6816601c408aac6be5.
|
||||
|
||||
@@ -14,10 +14,10 @@ Change-Id: Iac4c96ccb3845812ca3df820bf27dc533816f72e
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index 7852608df57d..a3d93d832b38 100644
|
||||
index ae354d634f67..7422d5a14221 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -389,7 +389,7 @@
|
||||
@@ -412,7 +412,7 @@
|
||||
<item name="containerStyle">@style/AuthCredentialPinPasswordContainerStyle</item>
|
||||
</style>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 2ae2df9278711f93390bede651b69a56099af35b Mon Sep 17 00:00:00 2001
|
||||
From 5235e78b8933c01f407adf7d19f30ccd19d0ad16 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Wed, 6 Oct 2021 18:41:11 -0700
|
||||
Subject: [PATCH 19/34] Revert "Do not re-inflate QS and SB when
|
||||
Subject: [PATCH 21/43] Revert "Do not re-inflate QS and SB when
|
||||
CONFIG_UI_MODE"
|
||||
|
||||
This reverts commit 8a40ff855b86bc86e23367017002289920855a4e.
|
||||
@@ -1,7 +1,7 @@
|
||||
From 5f65456d8135c74d48cd0528fdf7005e235ffd43 Mon Sep 17 00:00:00 2001
|
||||
From 4325ec74e21420a222860e473e9062c874046f9d Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:24:58 -0700
|
||||
Subject: [PATCH 20/34] SystemUI: Follow light/dark theme in quick settings
|
||||
Subject: [PATCH 22/43] SystemUI: Follow light/dark theme in quick settings
|
||||
|
||||
Android 12's dual-tone style where the quick settings panel is always
|
||||
dark makes the light theme look like a second-class citizen. Pure black
|
||||
@@ -33,8 +33,8 @@ Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
packages/SystemUI/res/values-night/styles.xml | 31 ++++++++++++++++++-
|
||||
packages/SystemUI/res/values/styles.xml | 20 ++++++------
|
||||
.../statusbar/phone/ScrimController.java | 2 +-
|
||||
.../systemui/statusbar/phone/ScrimState.java | 16 +++++-----
|
||||
4 files changed, 49 insertions(+), 20 deletions(-)
|
||||
.../systemui/statusbar/phone/ScrimState.java | 20 ++++++------
|
||||
4 files changed, 51 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values-night/styles.xml b/packages/SystemUI/res/values-night/styles.xml
|
||||
index b6971d3c1fa4..8972df2b7490 100644
|
||||
@@ -86,10 +86,10 @@ index b6971d3c1fa4..8972df2b7490 100644
|
||||
<style name="LongScreenshotActivity" parent="@android:style/Theme.DeviceDefault.DayNight">
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index a3d93d832b38..7ed9f91f30cd 100644
|
||||
index 7422d5a14221..0ac7e82fa42b 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -393,7 +393,7 @@
|
||||
@@ -416,7 +416,7 @@
|
||||
<item name="isQsTheme">true</item>
|
||||
<item name="lightIconTheme">@style/QSIconTheme</item>
|
||||
<item name="darkIconTheme">@style/QSIconTheme</item>
|
||||
@@ -98,7 +98,7 @@ index a3d93d832b38..7ed9f91f30cd 100644
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
||||
|
||||
@@ -406,14 +406,14 @@
|
||||
@@ -429,14 +429,14 @@
|
||||
<item name="onSurfaceVariant">?androidprv:attr/materialColorOnSurfaceVariant</item>
|
||||
<item name="outline">?androidprv:attr/materialColorOutline</item>
|
||||
|
||||
@@ -121,7 +121,7 @@ index a3d93d832b38..7ed9f91f30cd 100644
|
||||
<item name="android:itemTextAppearance">@style/Control.MenuItem</item>
|
||||
</style>
|
||||
|
||||
@@ -663,7 +663,7 @@
|
||||
@@ -686,7 +686,7 @@
|
||||
|
||||
<style name="QSCustomizeToolbar" parent="@*android:style/Widget.DeviceDefault.Toolbar">
|
||||
<item name="android:textColor">?attr/onSurface</item>
|
||||
@@ -131,10 +131,10 @@ index a3d93d832b38..7ed9f91f30cd 100644
|
||||
|
||||
<!-- Media controls always have light background -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index 05904eae769c..1130585db0c7 100644
|
||||
index 3404d5bbcc53..04c2e5005d34 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -945,7 +945,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -997,7 +997,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
mNotificationsAlpha = behindAlpha;
|
||||
mNotificationsTint = behindTint;
|
||||
mBehindAlpha = 1;
|
||||
@@ -144,36 +144,36 @@ index 05904eae769c..1130585db0c7 100644
|
||||
mBehindAlpha = behindAlpha;
|
||||
if (mState == ScrimState.KEYGUARD && mTransitionToFullShadeProgress > 0.0f) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
index e3b65ab27f48..44297566d0f4 100644
|
||||
index f2a649ba2e32..394d6ba5f696 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
@@ -82,7 +82,7 @@ public enum ScrimState {
|
||||
@@ -83,7 +83,7 @@ public enum ScrimState {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mScrimBehindAlphaKeyguard;
|
||||
mNotifAlpha = mClipQsScrim ? mScrimBehindAlphaKeyguard : 0;
|
||||
if (mClipQsScrim) {
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -122,7 +122,7 @@ public enum ScrimState {
|
||||
@@ -123,7 +123,7 @@ public enum ScrimState {
|
||||
@Override
|
||||
public void prepare(ScrimState previousState) {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
||||
- mBehindTint = mClipQsScrim ? Color.BLACK : mSurfaceColor;
|
||||
- mBehindTint = mClipQsScrim ? mBackgroundColor : mSurfaceColor;
|
||||
+ mBehindTint = mSurfaceColor;
|
||||
mNotifAlpha = mClipQsScrim ? mDefaultScrimAlpha : 0;
|
||||
mNotifTint = Color.TRANSPARENT;
|
||||
mFrontAlpha = 0f;
|
||||
@@ -154,10 +154,10 @@ public enum ScrimState {
|
||||
@@ -155,10 +155,10 @@ public enum ScrimState {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
||||
mNotifAlpha = 1f;
|
||||
mFrontAlpha = 0f;
|
||||
- mBehindTint = mClipQsScrim ? Color.TRANSPARENT : Color.BLACK;
|
||||
- mBehindTint = mClipQsScrim ? Color.TRANSPARENT : mBackgroundColor;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
|
||||
if (mClipQsScrim) {
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
}
|
||||
@@ -182,25 +182,27 @@ index e3b65ab27f48..44297566d0f4 100644
|
||||
&& !fromAod;
|
||||
|
||||
mFrontTint = Color.TRANSPARENT;
|
||||
- mBehindTint = Color.BLACK;
|
||||
- mBehindTint = mBackgroundColor;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
mBlankScreen = false;
|
||||
|
||||
if (mDisplayRequiresBlanking && previousState == ScrimState.AOD) {
|
||||
// Set all scrims black, before they fade transparent.
|
||||
updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
- updateScrimColor(mScrimInFront, 1f /* alpha */, mBackgroundColor /* tint */);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor /* tint */);
|
||||
+ updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT /* tint */);
|
||||
|
||||
// Scrims should still be black at the end of the transition.
|
||||
mFrontTint = Color.BLACK;
|
||||
- mBehindTint = Color.BLACK;
|
||||
- mFrontTint = mBackgroundColor;
|
||||
- mBehindTint = mBackgroundColor;
|
||||
+ mFrontTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
mBlankScreen = true;
|
||||
}
|
||||
|
||||
if (mClipQsScrim) {
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
From 2ec9f99186510028c1f9d75377a8e65fbc100723 Mon Sep 17 00:00:00 2001
|
||||
From eb8f957832c7c8e26dc0f006eda85e169ff9a020 Mon Sep 17 00:00:00 2001
|
||||
From: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Date: Wed, 13 Dec 2023 23:24:29 +0530
|
||||
Subject: [PATCH 21/34] SystemUI: Use themewrapper for QSCustomizer and tune
|
||||
Subject: [PATCH 23/43] SystemUI: Use themewrapper for QSCustomizer and tune
|
||||
colorUnavailable
|
||||
|
||||
* Restores behvavior from A13 for colorUnavailable, shadeDisabled is now unused.
|
||||
@@ -13,7 +13,7 @@ Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
2 files changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java
|
||||
index 1af2306ad77d..705d6bb940d6 100644
|
||||
index f8d408054d25..941e5e3699cf 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java
|
||||
@@ -23,6 +23,7 @@ import android.content.res.Configuration;
|
||||
@@ -24,7 +24,7 @@ index 1af2306ad77d..705d6bb940d6 100644
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
@@ -67,13 +68,15 @@ public class QSCustomizer extends LinearLayout {
|
||||
@@ -70,13 +71,15 @@ public class QSCustomizer extends LinearLayout {
|
||||
public QSCustomizer(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
@@ -33,18 +33,18 @@ index 1af2306ad77d..705d6bb940d6 100644
|
||||
+ new ContextThemeWrapper(context, R.style.Theme_SystemUI_QuickSettings);
|
||||
+ LayoutInflater.from(themedContext).inflate(R.layout.qs_customize_panel_content, this);
|
||||
mClipper = new QSDetailClipper(findViewById(R.id.customize_container));
|
||||
Toolbar toolbar = findViewById(com.android.internal.R.id.action_bar);
|
||||
mToolbar = findViewById(com.android.internal.R.id.action_bar);
|
||||
TypedValue value = new TypedValue();
|
||||
- mContext.getTheme().resolveAttribute(android.R.attr.homeAsUpIndicator, value, true);
|
||||
+ themedContext.getTheme().resolveAttribute(android.R.attr.homeAsUpIndicator, value, true);
|
||||
toolbar.setNavigationIcon(
|
||||
mToolbar.setNavigationIcon(
|
||||
- getResources().getDrawable(value.resourceId, mContext.getTheme()));
|
||||
+ getResources().getDrawable(value.resourceId, themedContext.getTheme()));
|
||||
|
||||
toolbar.getMenu().add(Menu.NONE, MENU_RESET, 0, com.android.internal.R.string.reset)
|
||||
mToolbar.getMenu().add(Menu.NONE, MENU_RESET, 0, com.android.internal.R.string.reset)
|
||||
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
index 456520051f58..3a018c70a8ad 100644
|
||||
index 9fefcbd86e51..0dd244eca2cb 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
@@ -100,7 +100,7 @@ open class QSTileViewImpl @JvmOverloads constructor(
|
||||
@@ -1,7 +1,7 @@
|
||||
From 11a452ed141a31cff8d0ff3c10c28c189a2dffe7 Mon Sep 17 00:00:00 2001
|
||||
From 09b4775be2cb7bf94ba4815025164c41de1a1baf Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:25:02 -0700
|
||||
Subject: [PATCH 22/34] SystemUI: Initialize QS tiles in inactive state
|
||||
Subject: [PATCH 24/43] SystemUI: Initialize QS tiles in inactive state
|
||||
|
||||
Now that the QS fragment is recreated when changing the UI mode (so that
|
||||
it follows light/dark themes), all tiles flash with active color briefly
|
||||
@@ -17,7 +17,7 @@ Change-Id: I048171d503f5533e91bab486b8805ac15c329f31
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSTile.java b/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSTile.java
|
||||
index 5d85fbade873..0c7c46d8d31d 100644
|
||||
index c9e298934acc..83fd07d1359d 100644
|
||||
--- a/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSTile.java
|
||||
+++ b/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSTile.java
|
||||
@@ -154,7 +154,7 @@ public interface QSTile {
|
||||
@@ -1,7 +1,7 @@
|
||||
From 52d583bc1d9c696bfd4e3cfb12f6b59ec12e3ce4 Mon Sep 17 00:00:00 2001
|
||||
From 575e6dd46703bc9f89f5263c1256f822758e91be Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:25:08 -0700
|
||||
Subject: [PATCH 23/34] SystemUI: Add dual-tone light and dark themes for QS
|
||||
Subject: [PATCH 25/43] SystemUI: Add dual-tone light and dark themes for QS
|
||||
|
||||
Google's dual-tone QS design where the notification panel has a
|
||||
semantically higher elevation adds depth to the notification+QS shade,
|
||||
@@ -80,26 +80,26 @@ index 1571fab66a5b..0683c20a4a4c 100644
|
||||
<item name="alertDialogTheme">@style/Theme.DeviceDefault.Dialog.Alert</item>
|
||||
<item name="forceDarkAllowed">false</item>
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index 1130585db0c7..b6488cff6842 100644
|
||||
index 04c2e5005d34..aff0a571b0bf 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -219,6 +219,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
private final StatusBarKeyguardViewManager mStatusBarKeyguardViewManager;
|
||||
@@ -224,6 +224,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
private final KeyguardInteractor mKeyguardInteractor;
|
||||
|
||||
private GradientColors mColors;
|
||||
+ private GradientColors mBehindColors;
|
||||
private boolean mNeedsDrawableColorUpdate;
|
||||
|
||||
private float mAdditionalScrimBehindAlphaKeyguard = 0f;
|
||||
@@ -359,6 +360,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
mKeyguardTransitionInteractor = keyguardTransitionInteractor;
|
||||
@@ -390,6 +391,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
mKeyguardInteractor = keyguardInteractor;
|
||||
mWallpaperRepository = wallpaperRepository;
|
||||
mMainDispatcher = mainDispatcher;
|
||||
+ mBehindColors = new GradientColors();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1132,7 +1134,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -1191,7 +1193,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
&& !mBlankScreen;
|
||||
|
||||
mScrimInFront.setColors(mColors, animateScrimInFront);
|
||||
@@ -108,7 +108,7 @@ index 1130585db0c7..b6488cff6842 100644
|
||||
mNotificationsScrim.setColors(mColors, animateScrimNotifications);
|
||||
|
||||
dispatchBackScrimState(mScrimBehind.getViewAlpha());
|
||||
@@ -1497,7 +1499,10 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -1556,7 +1558,10 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
if (mScrimBehind == null) return;
|
||||
int background = Utils.getColorAttr(mScrimBehind.getContext(),
|
||||
android.R.attr.colorBackgroundFloating).getDefaultColor();
|
||||
@@ -119,7 +119,7 @@ index 1130585db0c7..b6488cff6842 100644
|
||||
mColors.setMainColor(background);
|
||||
mColors.setSecondaryColor(accent);
|
||||
final boolean isBackgroundLight = !ContrastColorUtil.isColorDark(background);
|
||||
@@ -1509,6 +1514,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -1568,6 +1573,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
state.setSurfaceColor(surface);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 6d944c3e413c882c8203bd8eaf2bfc5183fffffd Mon Sep 17 00:00:00 2001
|
||||
From 34d21f61d76203231ff42497168e91b9f04521ef Mon Sep 17 00:00:00 2001
|
||||
From: althafvly <althafvly@gmail.com>
|
||||
Date: Tue, 4 Oct 2022 18:34:08 +0530
|
||||
Subject: [PATCH 28/34] SystemUI: Re-inflate QS and SB when
|
||||
Subject: [PATCH 26/43] SystemUI: Re-inflate QS and SB when
|
||||
CONFIG_SCREEN_LAYOUT
|
||||
|
||||
- It was removed in a13, needed for light theme change in landscape.
|
||||
@@ -1,24 +1,49 @@
|
||||
From 901e7a826dcde851f61bd7811eceba2456fb9c25 Mon Sep 17 00:00:00 2001
|
||||
From 7d6f38a5a465aae5e1912b689ba42960580e1ca0 Mon Sep 17 00:00:00 2001
|
||||
From: ReallySnow <reallysnow233@gmail.com>
|
||||
Date: Thu, 15 Sep 2022 13:38:48 +0800
|
||||
Subject: [PATCH 29/34] SystemUI: Follow light/dark theme in SplitShade Header
|
||||
Subject: [PATCH 27/43] SystemUI: Follow light/dark theme in SplitShade Header
|
||||
|
||||
* Google's default implementation is dark, which means
|
||||
it doesn't need to follow the light/dark color change,
|
||||
but we broke it, so add it to complete the SplitShade
|
||||
Header color change
|
||||
|
||||
Co-authored-by: Col_or <col_or@qq.com>
|
||||
Change-Id: I5464039885197eeb43bd31b822bfcba7a1b08776
|
||||
---
|
||||
.../systemui/shade/ShadeHeaderController.kt | 28 +++++++++++++++++++
|
||||
.../systemui/shade/carrier/ShadeCarrier.java | 8 ++++++
|
||||
.../shade/carrier/ShadeCarrierGroup.java | 16 +++++++++++
|
||||
.../shade/ShadeHeaderControllerTest.kt | 1 +
|
||||
4 files changed, 53 insertions(+)
|
||||
neobuddy89: Rewrite with some fixes.
|
||||
|
||||
Change-Id: I5464039885197eeb43bd31b822bfcba7a1b08776
|
||||
Co-authored-by: Col_or <col_or@qq.com>
|
||||
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
packages/SystemUI/res/values/styles.xml | 6 ++--
|
||||
.../systemui/shade/ShadeHeaderController.kt | 28 +++++++++++++++++++
|
||||
.../systemui/shade/carrier/ShadeCarrier.java | 12 ++++++++
|
||||
.../shade/carrier/ShadeCarrierGroup.java | 14 ++++++++++
|
||||
.../mobile/ui/binder/ShadeCarrierBinder.kt | 3 ++
|
||||
.../shade/ShadeHeaderControllerTest.kt | 1 +
|
||||
6 files changed, 62 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index 0ac7e82fa42b..a8447df43d0c 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -154,10 +154,12 @@
|
||||
<item name="android:textColor">?attr/onSurface</item>
|
||||
</style>
|
||||
|
||||
- <style name="TextAppearance.QS.Status.Carriers" />
|
||||
+ <style name="TextAppearance.QS.Status.Carriers">
|
||||
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
+ </style>
|
||||
|
||||
<style name="TextAppearance.QS.Status.Carriers.NoCarrierText">
|
||||
- <item name="android:textColor">?attr/onSurfaceVariant</item>
|
||||
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.QS.Status.Build">
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt b/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
||||
index 593260996198..5a5cb792c10b 100644
|
||||
index f3efa031a2a6..d26ef5e73152 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
||||
@@ -21,8 +21,11 @@ import android.animation.AnimatorListenerAdapter
|
||||
@@ -33,7 +58,7 @@ index 593260996198..5a5cb792c10b 100644
|
||||
import android.graphics.Insets
|
||||
import android.os.Bundle
|
||||
import android.os.Trace
|
||||
@@ -91,6 +94,7 @@ constructor(
|
||||
@@ -92,6 +95,7 @@ constructor(
|
||||
private val privacyIconsController: HeaderPrivacyIconsController,
|
||||
private val insetsProvider: StatusBarContentInsetsProvider,
|
||||
private val configurationController: ConfigurationController,
|
||||
@@ -41,7 +66,7 @@ index 593260996198..5a5cb792c10b 100644
|
||||
private val variableDateViewControllerFactory: VariableDateViewController.Factory,
|
||||
@Named(SHADE_HEADER) private val batteryMeterViewController: BatteryMeterViewController,
|
||||
private val dumpManager: DumpManager,
|
||||
@@ -142,6 +146,7 @@ constructor(
|
||||
@@ -143,6 +147,7 @@ constructor(
|
||||
private var cutout: DisplayCutout? = null
|
||||
private var lastInsets: WindowInsets? = null
|
||||
private var nextAlarmIntent: PendingIntent? = null
|
||||
@@ -49,18 +74,18 @@ index 593260996198..5a5cb792c10b 100644
|
||||
|
||||
private var qsDisabled = false
|
||||
private var visible = false
|
||||
@@ -288,6 +293,10 @@ constructor(
|
||||
updateCarrierGroupPadding()
|
||||
@@ -290,6 +295,10 @@ constructor(
|
||||
clock.onDensityOrFontScaleChanged()
|
||||
}
|
||||
+
|
||||
|
||||
+ override fun onUiModeChanged() {
|
||||
+ updateResources()
|
||||
+ }
|
||||
}
|
||||
|
||||
private val nextAlarmCallback =
|
||||
@@ -341,6 +350,7 @@ constructor(
|
||||
+
|
||||
override fun onThemeChanged() {
|
||||
clock.setTextAppearance(R.style.TextAppearance_QS_Status)
|
||||
date.setTextAppearance(R.style.TextAppearance_QS_Status)
|
||||
@@ -348,6 +357,7 @@ constructor(
|
||||
demoModeController.addCallback(demoModeReceiver)
|
||||
statusBarIconController.addIconGroup(iconManager)
|
||||
nextAlarmController.addCallback(nextAlarmCallback)
|
||||
@@ -68,7 +93,7 @@ index 593260996198..5a5cb792c10b 100644
|
||||
systemIconsHoverContainer.setOnHoverListener(
|
||||
statusOverlayHoverListenerFactory.createListener(systemIconsHoverContainer)
|
||||
)
|
||||
@@ -544,6 +554,24 @@ constructor(
|
||||
@@ -554,6 +564,24 @@ constructor(
|
||||
header.setPadding(padding, header.paddingTop, padding, header.paddingBottom)
|
||||
updateQQSPaddings()
|
||||
qsBatteryModeController.updateResources()
|
||||
@@ -94,10 +119,10 @@ index 593260996198..5a5cb792c10b 100644
|
||||
|
||||
private fun updateQQSPaddings() {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
index 6ca0ad47a0a7..24a1e7cda1fd 100644
|
||||
index 9544d0f83bac..e1aac1771a30 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
@@ -152,6 +152,14 @@ public class ShadeCarrier extends LinearLayout {
|
||||
@@ -151,6 +151,14 @@ public class ShadeCarrier extends LinearLayout {
|
||||
com.android.settingslib.R.string.not_default_data_content_description));
|
||||
}
|
||||
|
||||
@@ -112,8 +137,19 @@ index 6ca0ad47a0a7..24a1e7cda1fd 100644
|
||||
@VisibleForTesting
|
||||
View getRSSIView() {
|
||||
return mMobileGroup;
|
||||
@@ -160,6 +168,10 @@ public class ShadeCarrier extends LinearLayout {
|
||||
mCarrierText.setText(text);
|
||||
}
|
||||
|
||||
+ public void setCarrierTextColor(int color) {
|
||||
+ mCarrierText.setTextColor(color);
|
||||
+ }
|
||||
+
|
||||
public void updateTextAppearance(@StyleRes int resId) {
|
||||
mCarrierText.setTextAppearance(resId);
|
||||
if (mModernMobileView != null) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrierGroup.java b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrierGroup.java
|
||||
index e84fb485829c..a5bcfeacff31 100644
|
||||
index 863858b4cee2..1b7d1047221c 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrierGroup.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrierGroup.java
|
||||
@@ -18,8 +18,11 @@ package com.android.systemui.shade.carrier;
|
||||
@@ -128,7 +164,7 @@ index e84fb485829c..a5bcfeacff31 100644
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -58,6 +61,19 @@ public class ShadeCarrierGroup extends LinearLayout {
|
||||
@@ -57,6 +60,17 @@ public class ShadeCarrierGroup extends LinearLayout {
|
||||
return findViewById(R.id.shade_carrier_divider2);
|
||||
}
|
||||
|
||||
@@ -138,16 +174,35 @@ index e84fb485829c..a5bcfeacff31 100644
|
||||
+ for (ShadeCarrier shadeCarrier : shadeCarriers) {
|
||||
+ for (int i = 0; i < shadeCarrier.getChildCount(); i++) {
|
||||
+ shadeCarrier.updateColors(colorStateList);
|
||||
+ if (shadeCarrier.getChildAt(i) instanceof TextView) {
|
||||
+ ((TextView) shadeCarrier.getChildAt(i)).setTextColor(color);
|
||||
+ }
|
||||
+ shadeCarrier.setCarrierTextColor(color);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
public void updateTextAppearance(@StyleRes int resId) {
|
||||
FontSizeUtils.updateFontSizeFromStyle(getNoSimTextView(), resId);
|
||||
getNoSimTextView().setTextAppearance(resId);
|
||||
getCarrier1View().updateTextAppearance(resId);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/ShadeCarrierBinder.kt b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/ShadeCarrierBinder.kt
|
||||
index 081e1015e26e..a3fb0c67dcba 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/ShadeCarrierBinder.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/ShadeCarrierBinder.kt
|
||||
@@ -24,6 +24,8 @@ import com.android.systemui.statusbar.pipeline.mobile.ui.viewmodel.ShadeCarrierG
|
||||
import com.android.systemui.util.AutoMarqueeTextView
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
+import com.android.systemui.res.R
|
||||
+
|
||||
object ShadeCarrierBinder {
|
||||
/** Binds the view to the view-model, continuing to update the former based on the latter */
|
||||
@JvmStatic
|
||||
@@ -32,6 +34,7 @@ object ShadeCarrierBinder {
|
||||
viewModel: ShadeCarrierGroupMobileIconViewModel,
|
||||
) {
|
||||
carrierTextView.isVisible = true
|
||||
+ carrierTextView.setTextAppearance(R.style.TextAppearance_QS_Status_Carriers)
|
||||
|
||||
carrierTextView.repeatWhenAttached {
|
||||
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||
diff --git a/packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt
|
||||
index 9fa173ab040a..de321ba62105 100644
|
||||
--- a/packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt
|
||||
@@ -1,16 +1,16 @@
|
||||
From 17eb4477f1607ea91917ddce4137d7e337d3037b Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 4 Apr 2024 18:19:19 +0800
|
||||
Subject: [PATCH 09/34] UI: Hide QS footer background
|
||||
From 8b2d57bd39bb54c8706329a856e52fd0ecc6f3db Mon Sep 17 00:00:00 2001
|
||||
From: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Date: Wed, 17 Apr 2024 17:35:11 +0530
|
||||
Subject: [PATCH 28/43] SystemUI: Use transparent background for QS footer
|
||||
|
||||
Change-Id: I4d83037e9206dec4181f9b0acd302114fa4a98c1
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
.../com/android/systemui/qs/footer/ui/compose/FooterActions.kt | 2 +-
|
||||
packages/SystemUI/res/drawable/qs_footer_actions_background.xml | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
.../android/systemui/qs/footer/ui/compose/FooterActions.kt | 4 ++--
|
||||
.../SystemUI/res/drawable/qs_footer_actions_background.xml | 2 +-
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/FooterActions.kt b/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/FooterActions.kt
|
||||
index eb71490f049a..8242afefc56b 100644
|
||||
index eb71490f049a..d252ef7ffa06 100644
|
||||
--- a/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/FooterActions.kt
|
||||
+++ b/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/FooterActions.kt
|
||||
@@ -119,7 +119,7 @@ fun FooterActions(
|
||||
@@ -18,10 +18,19 @@ index eb71490f049a..8242afefc56b 100644
|
||||
}
|
||||
|
||||
- val backgroundColor = colorAttr(R.attr.underSurface)
|
||||
+ val backgroundColor = colorAttr(android.R.color.transparent)
|
||||
+ val backgroundColor = Color.Transparent
|
||||
val contentColor = LocalAndroidColorScheme.current.onSurface
|
||||
val backgroundTopRadius = dimensionResource(R.dimen.qs_corner_radius)
|
||||
val backgroundModifier =
|
||||
@@ -319,7 +319,7 @@ private fun TextButton(
|
||||
) {
|
||||
Expandable(
|
||||
shape = CircleShape,
|
||||
- color = colorAttr(R.attr.underSurface),
|
||||
+ color = Color.Transparent,
|
||||
contentColor = LocalAndroidColorScheme.current.onSurfaceVariant,
|
||||
borderStroke = BorderStroke(1.dp, colorAttr(R.attr.shadeInactive)),
|
||||
modifier = modifier.padding(horizontal = 4.dp),
|
||||
diff --git a/packages/SystemUI/res/drawable/qs_footer_actions_background.xml b/packages/SystemUI/res/drawable/qs_footer_actions_background.xml
|
||||
index a7e8762a2593..6bfa8f75de03 100644
|
||||
--- a/packages/SystemUI/res/drawable/qs_footer_actions_background.xml
|
||||
@@ -0,0 +1,65 @@
|
||||
From 79f9b7b31a650bc9586a20ef032bed6f89f83810 Mon Sep 17 00:00:00 2001
|
||||
From: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Date: Tue, 16 Apr 2024 21:32:43 +0530
|
||||
Subject: [PATCH 29/43] SystemUI: monet: Remove unused colorSchemeIsApplied
|
||||
|
||||
Usage for this was removed in
|
||||
https://github.com/crdroidandroid/android_frameworks_base/commit/e09dc531860bbe4e9c21e57a7eb59351078e1e4f
|
||||
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
.../theme/ThemeOverlayController.java | 38 -------------------
|
||||
1 file changed, 38 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
index 3fe5fe4ef8c7..321429e43573 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
@@ -754,44 +754,6 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
});
|
||||
}
|
||||
|
||||
- /**
|
||||
- * Checks if the color scheme in mColorScheme matches the current system palettes.
|
||||
- * @param managedProfiles List of managed profiles for this user.
|
||||
- */
|
||||
- private boolean colorSchemeIsApplied(Set<UserHandle> managedProfiles) {
|
||||
- final ArraySet<UserHandle> allProfiles = new ArraySet<>(managedProfiles);
|
||||
- allProfiles.add(UserHandle.SYSTEM);
|
||||
- for (UserHandle userHandle : allProfiles) {
|
||||
- Resources res = userHandle.isSystem()
|
||||
- ? mResources : mContext.createContextAsUser(userHandle, 0).getResources();
|
||||
- Resources.Theme theme = mContext.getTheme();
|
||||
- MaterialDynamicColors dynamicColors = new MaterialDynamicColors(mIsFidelityEnabled);
|
||||
- if (!(res.getColor(android.R.color.system_accent1_500, theme)
|
||||
- == mColorScheme.getAccent1().getS500()
|
||||
- && res.getColor(android.R.color.system_accent2_500, theme)
|
||||
- == mColorScheme.getAccent2().getS500()
|
||||
- && res.getColor(android.R.color.system_accent3_500, theme)
|
||||
- == mColorScheme.getAccent3().getS500()
|
||||
- && res.getColor(android.R.color.system_neutral1_500, theme)
|
||||
- == mColorScheme.getNeutral1().getS500()
|
||||
- && res.getColor(android.R.color.system_neutral2_500, theme)
|
||||
- == mColorScheme.getNeutral2().getS500()
|
||||
- && res.getColor(android.R.color.system_outline_variant_dark, theme)
|
||||
- == dynamicColors.outlineVariant().getArgb(mDynamicSchemeDark)
|
||||
- && res.getColor(android.R.color.system_outline_variant_light, theme)
|
||||
- == dynamicColors.outlineVariant().getArgb(mDynamicSchemeLight)
|
||||
- && res.getColor(android.R.color.system_primary_container_dark, theme)
|
||||
- == dynamicColors.primaryContainer().getArgb(mDynamicSchemeDark)
|
||||
- && res.getColor(android.R.color.system_primary_container_light, theme)
|
||||
- == dynamicColors.primaryContainer().getArgb(mDynamicSchemeLight)
|
||||
- && res.getColor(android.R.color.system_primary_fixed, theme)
|
||||
- == dynamicColors.primaryFixed().getArgb(mDynamicSchemeLight))) {
|
||||
- return false;
|
||||
- }
|
||||
- }
|
||||
- return true;
|
||||
- }
|
||||
-
|
||||
private void updateThemeOverlays() {
|
||||
final int currentUser = mUserTracker.getUserId();
|
||||
final String overlayPackageJson = mSecureSettings.getStringForUser(
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From ab0a1b7775420943aae88747a3c79893e934e672 Mon Sep 17 00:00:00 2001
|
||||
From be6c596038f9a1168a174e20f68ff7dfe6e8a409 Mon Sep 17 00:00:00 2001
|
||||
From: Pulkit077 <pulkitagarwal2k1@gmail.com>
|
||||
Date: Fri, 16 Sep 2022 14:46:37 +0530
|
||||
Subject: [PATCH 32/34] SystemUI: Follow Dark/Light theme for Safe Mode dialog
|
||||
Subject: [PATCH 30/43] SystemUI: Follow Dark/Light theme for Safe Mode dialog
|
||||
|
||||
Change-Id: Ia9864a45551e969abaccd351e8b6d65e21d99165
|
||||
Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
|
||||
@@ -11,7 +11,7 @@ Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/power/ShutdownThread.java b/services/core/java/com/android/server/power/ShutdownThread.java
|
||||
index c919dcbad45b..cb3c30b3fef1 100644
|
||||
index 4d88510bdde8..431953408b49 100644
|
||||
--- a/services/core/java/com/android/server/power/ShutdownThread.java
|
||||
+++ b/services/core/java/com/android/server/power/ShutdownThread.java
|
||||
@@ -31,6 +31,7 @@ import android.content.IIntentReceiver;
|
||||
@@ -1,7 +1,7 @@
|
||||
From 799c920e75780cf5146f3a3875ce3e84a6df32c1 Mon Sep 17 00:00:00 2001
|
||||
From e8cea9d915c82a481987aea72f33be9a8cdca6f1 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 8 Mar 2022 20:37:33 -0800
|
||||
Subject: [PATCH 24/34] SystemUI: Follow light/dark theme in power menu
|
||||
Subject: [PATCH 31/43] SystemUI: Follow light/dark theme in power menu
|
||||
|
||||
Now that we've modified the power menu to refresh on UI mode changes,
|
||||
make it follow the system light/dark theme for better integration in
|
||||
@@ -27,7 +27,7 @@ Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
3 files changed, 18 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml
|
||||
index e759c1211a93..e98196e800cf 100644
|
||||
index ddf188e3f1d3..3a403b69ff04 100644
|
||||
--- a/packages/SystemUI/res/values-night/colors.xml
|
||||
+++ b/packages/SystemUI/res/values-night/colors.xml
|
||||
@@ -55,6 +55,11 @@
|
||||
@@ -43,10 +43,10 @@ index e759c1211a93..e98196e800cf 100644
|
||||
<color name="global_actions_alert_text">@color/GM2_red_300</color>
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
|
||||
index 91a72922fd0a..0e59b3b774df 100644
|
||||
index 846fd5736590..402e44c3fb31 100644
|
||||
--- a/packages/SystemUI/res/values/colors.xml
|
||||
+++ b/packages/SystemUI/res/values/colors.xml
|
||||
@@ -36,10 +36,10 @@
|
||||
@@ -39,10 +39,10 @@
|
||||
<color name="global_actions_grid_background">#F1F3F4</color>
|
||||
|
||||
<!-- Colors for Power Menu Lite -->
|
||||
@@ -62,10 +62,10 @@ index 91a72922fd0a..0e59b3b774df 100644
|
||||
<color name="global_actions_lite_emergency_icon">@color/GM2_grey_900</color>
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
index d94c7bb1c0f8..661e4e6b4b95 100644
|
||||
index fa1b430a4ed5..0b2cc012f999 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
@@ -842,6 +842,15 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
||||
@@ -846,6 +846,15 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
||||
user.id) != 0;
|
||||
}
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
From b983f9062624d76c6cf6a66eee0851bb99e83c3d Mon Sep 17 00:00:00 2001
|
||||
From: DillerOFire <niktofe1@gmail.com>
|
||||
Date: Wed, 27 Jul 2022 15:28:16 +1000
|
||||
Subject: [PATCH 31/34] SystemUI: Switch notification background to monet on
|
||||
heads up
|
||||
|
||||
Change-Id: If1822acc3ea604444f2083d7fadec06ffb8eec19
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
.../notification_material_bg_monet.xml | 26 +++++++++++++++++++
|
||||
.../row/ActivatableNotificationView.java | 9 ++++++-
|
||||
.../row/ExpandableNotificationRow.java | 3 +++
|
||||
3 files changed, 37 insertions(+), 1 deletion(-)
|
||||
create mode 100644 packages/SystemUI/res/drawable/notification_material_bg_monet.xml
|
||||
|
||||
diff --git a/packages/SystemUI/res/drawable/notification_material_bg_monet.xml b/packages/SystemUI/res/drawable/notification_material_bg_monet.xml
|
||||
new file mode 100644
|
||||
index 000000000000..61a8e8e9c6e1
|
||||
--- /dev/null
|
||||
+++ b/packages/SystemUI/res/drawable/notification_material_bg_monet.xml
|
||||
@@ -0,0 +1,26 @@
|
||||
+<?xml version="1.0" encoding="utf-8"?>
|
||||
+<!--
|
||||
+ ~ Copyright (C) 2014 The Android Open Source Project
|
||||
+ ~
|
||||
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+ ~ you may not use this file except in compliance with the License.
|
||||
+ ~ You may obtain a copy of the License at
|
||||
+ ~
|
||||
+ ~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
+ ~
|
||||
+ ~ Unless required by applicable law or agreed to in writing, software
|
||||
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
+ ~ See the License for the specific language governing permissions and
|
||||
+ ~ limitations under the License
|
||||
+ -->
|
||||
+
|
||||
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
+ android:color="?android:attr/colorControlHighlight">
|
||||
+ <item>
|
||||
+ <shape>
|
||||
+ <solid android:color="?androidprv:attr/colorSurface" />
|
||||
+ </shape>
|
||||
+ </item>
|
||||
+</ripple>
|
||||
\ No newline at end of file
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
index 9fa9049cc7cd..dc04895508d0 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationView.java
|
||||
@@ -171,7 +171,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
* be useful in a configuration change.
|
||||
*/
|
||||
protected void initBackground() {
|
||||
- mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg);
|
||||
+ setTranslucentBackground(true);
|
||||
}
|
||||
|
||||
protected boolean hideBackground() {
|
||||
@@ -182,6 +182,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
mBackgroundNormal.setVisibility(hideBackground() ? INVISIBLE : VISIBLE);
|
||||
}
|
||||
|
||||
+ public void setTranslucentBackground(boolean translucent) {
|
||||
+ if (translucent) {
|
||||
+ mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg);
|
||||
+ } else {
|
||||
+ mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg_monet);
|
||||
+ }
|
||||
+ }
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
|
||||
index b6d4dedfe6f7..2ea46cae819f 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
|
||||
@@ -1041,6 +1041,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
if (intrinsicHeight != getIntrinsicHeight()) {
|
||||
notifyHeightChanged(false /* needsAnimation */);
|
||||
}
|
||||
+
|
||||
+ setTranslucentBackground(!pinned);
|
||||
+
|
||||
if (pinned) {
|
||||
setAnimationRunning(true);
|
||||
mExpandedWhenPinned = false;
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From f38638b25fb4dbabf96d5f30ebe3c2e893a39439 Mon Sep 17 00:00:00 2001
|
||||
From 3aa6aa1e16a385a3cef393fb58d4a319ca884632 Mon Sep 17 00:00:00 2001
|
||||
From: althafvly <althafvly@gmail.com>
|
||||
Date: Tue, 26 May 2020 21:17:59 +0800
|
||||
Subject: [PATCH 25/34] SystemUI: Re-evaluate system theme on UI mode change
|
||||
Subject: [PATCH 32/43] SystemUI: Re-evaluate system theme on UI mode change
|
||||
|
||||
- Need for power menu to set accurate colors
|
||||
|
||||
@@ -11,10 +11,10 @@ Change-Id: I05d41eaf8ea19ce3b6ce659d01da33cf55de3b7e
|
||||
1 file changed, 16 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
index 8d4e70c2b961..744f1eb67f41 100644
|
||||
index 321429e43573..84e32a1dbaae 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
@@ -78,6 +78,8 @@ import com.android.systemui.monet.ColorScheme;
|
||||
@@ -80,6 +80,8 @@ import com.android.systemui.monet.ColorScheme;
|
||||
import com.android.systemui.monet.Style;
|
||||
import com.android.systemui.monet.TonalPalette;
|
||||
import com.android.systemui.settings.UserTracker;
|
||||
@@ -23,7 +23,7 @@ index 8d4e70c2b961..744f1eb67f41 100644
|
||||
import com.android.systemui.statusbar.policy.DeviceProvisionedController;
|
||||
import com.android.systemui.statusbar.policy.DeviceProvisionedController.DeviceProvisionedListener;
|
||||
import com.android.systemui.util.kotlin.JavaAdapter;
|
||||
@@ -141,6 +143,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
@@ -143,6 +145,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
private final boolean mIsMonetEnabled;
|
||||
private final boolean mIsFidelityEnabled;
|
||||
private final UserTracker mUserTracker;
|
||||
@@ -31,7 +31,7 @@ index 8d4e70c2b961..744f1eb67f41 100644
|
||||
private final DeviceProvisionedController mDeviceProvisionedController;
|
||||
private final Resources mResources;
|
||||
// Current wallpaper colors associated to a user.
|
||||
@@ -181,6 +184,15 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
@@ -184,6 +187,15 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
// Determines if we should ignore THEME_CUSTOMIZATION_OVERLAY_PACKAGES setting changes.
|
||||
private boolean mSkipSettingChange;
|
||||
|
||||
@@ -47,12 +47,12 @@ index 8d4e70c2b961..744f1eb67f41 100644
|
||||
private final DeviceProvisionedListener mDeviceProvisionedListener =
|
||||
new DeviceProvisionedListener() {
|
||||
@Override
|
||||
@@ -421,10 +433,12 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
WakefulnessLifecycle wakefulnessLifecycle,
|
||||
@@ -425,10 +437,12 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
JavaAdapter javaAdapter,
|
||||
KeyguardTransitionInteractor keyguardTransitionInteractor,
|
||||
- UiModeManager uiModeManager) {
|
||||
+ UiModeManager uiModeManager,
|
||||
UiModeManager uiModeManager,
|
||||
- ActivityManager activityManager) {
|
||||
+ ActivityManager activityManager,
|
||||
+ ConfigurationController configurationController) {
|
||||
mContext = context;
|
||||
mIsMonetEnabled = featureFlags.isEnabled(Flags.MONET);
|
||||
@@ -61,7 +61,7 @@ index 8d4e70c2b961..744f1eb67f41 100644
|
||||
mDeviceProvisionedController = deviceProvisionedController;
|
||||
mBroadcastDispatcher = broadcastDispatcher;
|
||||
mUserManager = userManager;
|
||||
@@ -538,6 +552,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
@@ -543,6 +557,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
|
||||
mUserTracker.addCallback(mUserTrackerCallback, mMainExecutor);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 7b7aab383a7a326b5ae110a2154815c088685d85 Mon Sep 17 00:00:00 2001
|
||||
From 1a69a297d72035abc82ec534448eb1dda2cc6042 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Baumann <dannybaumann@web.de>
|
||||
Date: Wed, 20 Jul 2022 15:53:13 +0200
|
||||
Subject: [PATCH 26/34] SystemUI: Fix QS header clock color
|
||||
Subject: [PATCH 33/43] SystemUI: Fix QS header clock color
|
||||
|
||||
Now that we're flipping QS colors by theme (dark/light), we can no longer
|
||||
rely on wallpaper colors for QS clock. Instead, we now can rely on clock color
|
||||
@@ -11,11 +11,11 @@ QuickStatusBarHeader.updateResources).
|
||||
Change-Id: Icdf2484793cb63b7c0ab6ab87e94185e6bdc9ca4
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
.../src/com/android/systemui/statusbar/policy/Clock.java | 8 --------
|
||||
1 file changed, 8 deletions(-)
|
||||
.../src/com/android/systemui/statusbar/policy/Clock.java | 9 ---------
|
||||
1 file changed, 9 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
|
||||
index cc7a82d49fab..e7d146a5cd5a 100644
|
||||
index cc7a82d49fab..94f65f2a9833 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
|
||||
@@ -43,7 +43,6 @@ import android.text.style.CharacterStyle;
|
||||
@@ -26,7 +26,15 @@ index cc7a82d49fab..e7d146a5cd5a 100644
|
||||
import android.view.Display;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -433,13 +432,6 @@ public class Clock extends TextView implements
|
||||
@@ -51,7 +50,6 @@ import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
-import com.android.settingslib.Utils;
|
||||
import com.android.systemui.Dependency;
|
||||
import com.android.systemui.FontSizeUtils;
|
||||
import com.android.systemui.res.R;
|
||||
@@ -433,13 +431,6 @@ public class Clock extends TextView implements
|
||||
setTextColor(mNonAdaptedColor);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From a4c50a3dbcb4140d93c813be6d128f2d6bf54809 Mon Sep 17 00:00:00 2001
|
||||
From 25940ffbfecb8b9eed4d9d461b11ea4af3b96e41 Mon Sep 17 00:00:00 2001
|
||||
From: Adithya R <gh0strider.2k18.reborn@gmail.com>
|
||||
Date: Mon, 30 May 2022 00:13:02 +0530
|
||||
Subject: [PATCH 27/34] SystemUI: Calculate paged QS tiles height properly
|
||||
Subject: [PATCH 34/43] SystemUI: Calculate paged QS tiles height properly
|
||||
|
||||
When QS is re-inflated during UI mode change and we're on the
|
||||
3rd or higher QS page, the first QS page is misaligned and
|
||||
@@ -15,10 +15,10 @@ Change-Id: I539babdb75c114cc44b4213ff114d4272be22ef6
|
||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
|
||||
index 052c0daf0b56..cf2834914f66 100644
|
||||
index 43f3a2242da4..c7f74705a81e 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
|
||||
@@ -135,12 +135,16 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
|
||||
@@ -137,12 +137,16 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
|
||||
|
||||
@Override
|
||||
public int getTilesHeight() {
|
||||
@@ -1,7 +1,7 @@
|
||||
From 740f1c7ff7d0a429e79d5bf075c162314ca6fd66 Mon Sep 17 00:00:00 2001
|
||||
From be8be7e3949c88489a4cf6af11326dcb5bac2d96 Mon Sep 17 00:00:00 2001
|
||||
From: Adithya R <gh0strider.2k18.reborn@gmail.com>
|
||||
Date: Thu, 19 Jan 2023 14:37:43 +0530
|
||||
Subject: [PATCH 30/34] SystemUI: Remove visibility check in setting QSCarrier
|
||||
Subject: [PATCH 35/43] SystemUI: Remove visibility check in setting QSCarrier
|
||||
color
|
||||
|
||||
This fixes a corner case where the signal icon color is incorrect:
|
||||
@@ -19,10 +19,10 @@ Change-Id: I092c06053fc4bc8d9ca51d1d31128da27ef6a823
|
||||
1 file changed, 2 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
index 24a1e7cda1fd..727a187d20f7 100644
|
||||
index e1aac1771a30..b7ee9e4b4a38 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/carrier/ShadeCarrier.java
|
||||
@@ -153,11 +153,8 @@ public class ShadeCarrier extends LinearLayout {
|
||||
@@ -152,11 +152,8 @@ public class ShadeCarrier extends LinearLayout {
|
||||
}
|
||||
|
||||
public void updateColors(ColorStateList colorStateList) {
|
||||
@@ -0,0 +1,27 @@
|
||||
From 0529a4ad0958c1a82739bcfbf7b19604c3cea4ed Mon Sep 17 00:00:00 2001
|
||||
From: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Date: Mon, 4 Mar 2024 01:11:13 +0530
|
||||
Subject: [PATCH 36/43] SystemUI: Fix QS tile dialog background color
|
||||
|
||||
Fixes: https://github.com/crdroidandroid/issue_tracker/issues/309
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
packages/SystemUI/res/values/styles.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index a8447df43d0c..e4f2cf70b0d3 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -479,7 +479,7 @@
|
||||
<item name="android:buttonBarPositiveButtonStyle">@style/Widget.Dialog.Button</item>
|
||||
<item name="android:buttonBarNegativeButtonStyle">@style/Widget.Dialog.Button.BorderButton</item>
|
||||
<item name="android:buttonBarNeutralButtonStyle">@style/Widget.Dialog.Button.BorderButton</item>
|
||||
- <item name="android:colorBackground">?androidprv:attr/materialColorSurfaceBright</item>
|
||||
+ <item name="android:colorBackground">@color/notification_divider_color</item>
|
||||
<item name="android:alertDialogStyle">@style/ScrollableAlertDialogStyle</item>
|
||||
<item name="android:buttonBarStyle">@style/ButtonBarStyle</item>
|
||||
<item name="android:buttonBarButtonStyle">@style/Widget.Dialog.Button.Large</item>
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 20bdd1f747da317d1e277f333f19d6a7a126f7fc Mon Sep 17 00:00:00 2001
|
||||
From: elluzion <dyrex2004@gmail.com>
|
||||
Date: Mon, 7 Dec 2020 20:39:40 +0100
|
||||
Subject: [PATCH 37/43] SystemUI: Use proper Resolver background color
|
||||
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
core/res/res/values-night/themes_device_defaults.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values-night/themes_device_defaults.xml b/core/res/res/values-night/themes_device_defaults.xml
|
||||
index 7cfdba7a65be..970dba3d844c 100644
|
||||
--- a/core/res/res/values-night/themes_device_defaults.xml
|
||||
+++ b/core/res/res/values-night/themes_device_defaults.xml
|
||||
@@ -87,7 +87,7 @@ easier.
|
||||
|
||||
<style name="Theme.DeviceDefault.Resolver" parent="Theme.DeviceDefault.ResolverCommon">
|
||||
<item name="windowLightNavigationBar">false</item>
|
||||
- <item name="colorBackgroundFloating">@android:color/GM2_grey_800</item>
|
||||
+ <item name="colorBackgroundFloating">?android:attr/colorPrimary</item>
|
||||
<item name="textColorSecondary">@android:color/resolver_text_color_secondary_dark</item>
|
||||
</style>
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 43b40366ed1feb86002b849851678baeed250d47 Mon Sep 17 00:00:00 2001
|
||||
From bdbd29ab6b1fb3db6084247eceabd95ec35993c6 Mon Sep 17 00:00:00 2001
|
||||
From: minaripenguin <minaripenguin@users.noreply.github.com>
|
||||
Date: Fri, 24 Mar 2023 13:04:06 +0800
|
||||
Subject: [PATCH 33/34] SystemUI: Follow monet theme on privacy indicators
|
||||
Subject: [PATCH 38/43] SystemUI: Follow monet theme on privacy indicators
|
||||
|
||||
Change-Id: Ib713cb3283fcf3a49086c5da8360d2a1b6cd6704
|
||||
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
|
||||
@@ -12,10 +12,10 @@ Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
|
||||
index 0e59b3b774df..8a02dca04251 100644
|
||||
index 402e44c3fb31..50b962310ac9 100644
|
||||
--- a/packages/SystemUI/res/values/colors.xml
|
||||
+++ b/packages/SystemUI/res/values/colors.xml
|
||||
@@ -216,7 +216,7 @@
|
||||
@@ -224,7 +224,7 @@
|
||||
<color name="screenrecord_status_color">#E94235</color>
|
||||
<color name="screenrecord_icon_color">#D93025</color><!-- red 600 -->
|
||||
|
||||
@@ -25,10 +25,10 @@ index 0e59b3b774df..8a02dca04251 100644
|
||||
<!-- Accessibility floating menu -->
|
||||
<color name="accessibility_floating_menu_background">#CCFFFFFF</color> <!-- 80% -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt b/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt
|
||||
index 8e1b00d825aa..a79a10639b9d 100644
|
||||
index 7a4be3fdc93b..19ac5fccac5f 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt
|
||||
@@ -123,7 +123,7 @@ class OngoingPrivacyChip @JvmOverloads constructor(
|
||||
@@ -125,7 +125,7 @@ class OngoingPrivacyChip @JvmOverloads constructor(
|
||||
iconSize = context.resources
|
||||
.getDimensionPixelSize(R.dimen.ongoing_appops_chip_icon_size)
|
||||
iconColor =
|
||||
@@ -1,7 +1,7 @@
|
||||
From 83a1b45cc8d1d6d4f5d8d275db29fc7ed3f34cff Mon Sep 17 00:00:00 2001
|
||||
From 9b624db6528d95a77ea550b011af435ca4425571 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 10 Jan 2024 23:36:41 +0800
|
||||
Subject: [PATCH 34/34] SystemUI: Follow monet theme on battery chip
|
||||
Subject: [PATCH 39/43] SystemUI: Follow monet theme on battery chip
|
||||
|
||||
Why does this chip even exist...
|
||||
|
||||
@@ -30,18 +30,18 @@ index d7de16d7c5bb..dd1db04e77d7 100644
|
||||
\ No newline at end of file
|
||||
+</shape>
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt b/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt
|
||||
index 835225009110..04373eb7ed87 100644
|
||||
index a58ce4162ddc..32c015f3230d 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt
|
||||
@@ -22,6 +22,7 @@ import android.util.AttributeSet
|
||||
import android.view.View
|
||||
@@ -23,6 +23,7 @@ import android.view.View
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.LinearLayout
|
||||
import com.android.settingslib.flags.Flags.newStatusBarIcons
|
||||
+import com.android.settingslib.Utils
|
||||
import com.android.systemui.battery.BatteryMeterView
|
||||
import com.android.systemui.battery.unified.BatteryColors
|
||||
import com.android.systemui.res.R
|
||||
import com.android.systemui.statusbar.events.BackgroundAnimatableView
|
||||
@@ -65,6 +66,11 @@ class BatteryStatusChip @JvmOverloads constructor(context: Context, attrs: Attri
|
||||
@@ -71,6 +72,11 @@ class BatteryStatusChip @JvmOverloads constructor(context: Context, attrs: Attri
|
||||
|
||||
@SuppressLint("UseCompatLoadingForDrawables")
|
||||
private fun updateResources() {
|
||||
@@ -0,0 +1,29 @@
|
||||
From 2f4e9b7a4cc9c22ba9586fe855c31f99cc47abbf Mon Sep 17 00:00:00 2001
|
||||
From: Pranav Vashi <neobuddy89@gmail.com>
|
||||
Date: Sat, 17 Sep 2022 12:20:38 +0530
|
||||
Subject: [PATCH 40/43] ThemeOverlayController: Remove repeated monet check
|
||||
|
||||
Change-Id: I6608df48c1a89a87eaf08d9f267e0a83e9bbd3d1
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
.../com/android/systemui/theme/ThemeOverlayController.java | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
index 84e32a1dbaae..44b54080efc4 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
@@ -551,10 +551,6 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
||||
},
|
||||
UserHandle.USER_ALL);
|
||||
|
||||
- if (!mIsMonetEnabled) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
mUserTracker.addCallback(mUserTrackerCallback, mMainExecutor);
|
||||
|
||||
mConfigurationController.addCallback(mConfigurationListener);
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
From a1462dcc2242256bde5e69c60306726c25e7281c Mon Sep 17 00:00:00 2001
|
||||
From: Genkzsz11 <genkzsz11@gmail.com>
|
||||
Date: Sat, 16 Apr 2022 00:18:51 +0700
|
||||
Subject: [PATCH 41/43] SystemUI: Use color accent for charging animation
|
||||
|
||||
Change-Id: Ideade5e9375510a31496ad75c5b74f12444350c9
|
||||
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
packages/SystemUI/res/values/styles.xml | 11 +++--------
|
||||
.../systemui/charging/WirelessChargingLayout.java | 4 ++--
|
||||
2 files changed, 5 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index e4f2cf70b0d3..fc5023697a32 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -817,14 +817,9 @@
|
||||
<!-- Used to style charging animation AVD animation -->
|
||||
<style name="ChargingAnim" />
|
||||
|
||||
- <style name="ChargingAnim.WallpaperBackground">
|
||||
- <item name="chargingAnimColor">?attr/wallpaperTextColor</item>
|
||||
- <item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||
- </style>
|
||||
-
|
||||
- <style name="ChargingAnim.DarkBackground">
|
||||
- <item name="chargingAnimColor">@android:color/white</item>
|
||||
- <item name="android:textColor">@android:color/white</item>
|
||||
+ <style name="ChargingAnim.Background">
|
||||
+ <item name="chargingAnimColor">?android:attr/colorAccent</item>
|
||||
+ <item name="android:textColor">?android:attr/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<!-- Screen recording -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/charging/WirelessChargingLayout.java b/packages/SystemUI/src/com/android/systemui/charging/WirelessChargingLayout.java
|
||||
index 047d15daf6f8..a9a657730109 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/charging/WirelessChargingLayout.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/charging/WirelessChargingLayout.java
|
||||
@@ -78,9 +78,9 @@ final class WirelessChargingLayout extends FrameLayout {
|
||||
(transmittingBatteryLevel != WirelessChargingAnimation.UNKNOWN_BATTERY_LEVEL);
|
||||
|
||||
// set style based on background
|
||||
- int style = R.style.ChargingAnim_WallpaperBackground;
|
||||
+ int style = R.style.ChargingAnim_Background;
|
||||
if (isDozing) {
|
||||
- style = R.style.ChargingAnim_DarkBackground;
|
||||
+ style = R.style.ChargingAnim_Background;
|
||||
}
|
||||
|
||||
inflate(new ContextThemeWrapper(context, style), R.layout.wireless_charging_layout, this);
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From af3769a81e043d84bf044dd5cbbd7fbd49627b86 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Thu, 13 Oct 2022 15:07:22 +0800
|
||||
Subject: [PATCH 42/43] colors_device_defaults: Add chroma to light surface
|
||||
highlight color
|
||||
|
||||
With dynamic Monet themes, most of the UI has at least a small amount
|
||||
of color (chroma), so pure white stands out as the sole outlier (e.g.
|
||||
Settings search bar in light mode). Use the 99% lightness shade instead
|
||||
to improve consistency.
|
||||
|
||||
Change-Id: I7dfe3e483fa207ce4d77349ac97872e0831ef3c8
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
core/res/res/values/colors_device_defaults.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/colors_device_defaults.xml b/core/res/res/values/colors_device_defaults.xml
|
||||
index 4c5a008a3402..5d3d6a3155a9 100644
|
||||
--- a/core/res/res/values/colors_device_defaults.xml
|
||||
+++ b/core/res/res/values/colors_device_defaults.xml
|
||||
@@ -59,7 +59,7 @@
|
||||
<color name="surface_variant_dark">@color/system_neutral1_700</color>
|
||||
<color name="surface_variant_light">@color/system_neutral2_100</color>
|
||||
<color name="surface_dark">@color/system_neutral1_800</color>
|
||||
- <color name="surface_highlight_light">@color/system_neutral1_0</color>
|
||||
+ <color name="surface_highlight_light">@color/system_neutral1_10</color>
|
||||
|
||||
<!-- Please refer to text_color_[primary]_device_default_[light].xml for text colors-->
|
||||
<color name="foreground_device_default_light">@color/text_color_primary_device_default_light</color>
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From e3fcd9c40a3d0fa641bc1e90892bd5a54ecde7e6 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Thu, 13 Oct 2022 15:07:59 +0800
|
||||
Subject: [PATCH 43/43] config_progress_background_tint: Use accent color for
|
||||
progress bar background
|
||||
|
||||
This matches the stock Pixel style and makes progress bars look more
|
||||
integrated, since the active (foreground) part is using the accent
|
||||
color.
|
||||
|
||||
Change-Id: Ife7a79a390f6f9bdb2fd76722cd39adcfc182da1
|
||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
||||
---
|
||||
core/res/res/color/config_progress_background_tint.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/color/config_progress_background_tint.xml b/core/res/res/color/config_progress_background_tint.xml
|
||||
index b086e20bf161..dfc914e76c8d 100644
|
||||
--- a/core/res/res/color/config_progress_background_tint.xml
|
||||
+++ b/core/res/res/color/config_progress_background_tint.xml
|
||||
@@ -15,5 +15,5 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
- <item android:color="?attr/colorControlNormal" />
|
||||
+ <item android:color="?attr/colorControlActivated" />
|
||||
</selector>
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 2194bcf5d390be451ff641a0d779a2a815d1d67a Mon Sep 17 00:00:00 2001
|
||||
From fb1a8efb48bd9aa11b1dfdab6ca7701a130e9bca Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 26 Feb 2024 08:41:08 +0800
|
||||
Subject: [PATCH] SetupWizard: Remove step for changing theme
|
||||
@@ -13,13 +13,13 @@ Change-Id: Id83207c766d6b0b23cd240b35936289c44026db5
|
||||
3 files changed, 15 deletions(-)
|
||||
|
||||
diff --git a/res/raw/lineage_wizard_script.xml b/res/raw/lineage_wizard_script.xml
|
||||
index 0befc2b..ea342b6 100644
|
||||
index 7c87abd..af3df01 100644
|
||||
--- a/res/raw/lineage_wizard_script.xml
|
||||
+++ b/res/raw/lineage_wizard_script.xml
|
||||
@@ -82,12 +82,6 @@
|
||||
@@ -83,12 +83,6 @@
|
||||
<WizardAction
|
||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_BIOMETRIC_SETTINGS;end"
|
||||
id="biometric_settings">
|
||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS;end"
|
||||
id="lockscreen_settings">
|
||||
- <result wizard:action="theme_settings" />
|
||||
- </WizardAction>
|
||||
-
|
||||
@@ -30,13 +30,13 @@ index 0befc2b..ea342b6 100644
|
||||
</WizardAction>
|
||||
|
||||
diff --git a/res/raw/lineage_wizard_script_user.xml b/res/raw/lineage_wizard_script_user.xml
|
||||
index aef7f2e..af38520 100644
|
||||
index 15325c6..1522eda 100644
|
||||
--- a/res/raw/lineage_wizard_script_user.xml
|
||||
+++ b/res/raw/lineage_wizard_script_user.xml
|
||||
@@ -34,12 +34,6 @@
|
||||
@@ -35,12 +35,6 @@
|
||||
<WizardAction
|
||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_BIOMETRIC_SETTINGS;end"
|
||||
id="biometric_settings">
|
||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS;end"
|
||||
id="lockscreen_settings">
|
||||
- <result wizard:action="theme_settings" />
|
||||
- </WizardAction>
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user