Compare commits
No commits in common. "lineage-21-light" and "lineage-18.1" have entirely different histories.
lineage-21
...
lineage-18
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
/patches_treble_personal/vendor_hardware_overlay
|
|
@ -0,0 +1,133 @@
|
|||||||
|
From f63609cfc0fcc6a488ba7d024a1b1e3853637b09 Mon Sep 17 00:00:00 2001
|
||||||
|
From: jhenrique09 <jhenrique09.mcz@hotmail.com>
|
||||||
|
Date: Sun, 29 Mar 2020 17:38:39 -0300
|
||||||
|
Subject: [PATCH] fwb: Start device specific popup camera service conditionally
|
||||||
|
|
||||||
|
Change-Id: I07f97fe58495ef666fa317d14fa1334389015e11
|
||||||
|
---
|
||||||
|
.../custom/popupcamera/PopUpCameraUtils.java | 20 +++++++++++++++++++
|
||||||
|
core/res/res/values/lineage_config.xml | 3 +++
|
||||||
|
core/res/res/values/lineage_symbols.xml | 3 +++
|
||||||
|
.../server/camera/CameraServiceProxy.java | 20 +++++++++++++++++++
|
||||||
|
4 files changed, 46 insertions(+)
|
||||||
|
create mode 100644 core/java/com/android/internal/util/custom/popupcamera/PopUpCameraUtils.java
|
||||||
|
|
||||||
|
diff --git a/core/java/com/android/internal/util/custom/popupcamera/PopUpCameraUtils.java b/core/java/com/android/internal/util/custom/popupcamera/PopUpCameraUtils.java
|
||||||
|
new file mode 100644
|
||||||
|
index 00000000000..f7988608141
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/core/java/com/android/internal/util/custom/popupcamera/PopUpCameraUtils.java
|
||||||
|
@@ -0,0 +1,20 @@
|
||||||
|
+/*
|
||||||
|
+* Copyright (C) 2019 The Pixel Experience 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.
|
||||||
|
+*/
|
||||||
|
+package com.android.internal.util.custom.popupcamera;
|
||||||
|
+
|
||||||
|
+public class PopUpCameraUtils {
|
||||||
|
+ public static String MANAGE_POPUP_CAMERA_SERVICE_PERMISSION = "org.pixelexperience.device.MANAGE_POPUP_CAMERA_SERVICE";
|
||||||
|
+}
|
||||||
|
diff --git a/core/res/res/values/lineage_config.xml b/core/res/res/values/lineage_config.xml
|
||||||
|
index 4b090379f5a..3315de74147 100644
|
||||||
|
--- a/core/res/res/values/lineage_config.xml
|
||||||
|
+++ b/core/res/res/values/lineage_config.xml
|
||||||
|
@@ -34,4 +34,7 @@
|
||||||
|
<!-- The list of components which should be forced to be enabled. -->
|
||||||
|
<string-array name="config_forceEnabledComponents" translatable="false">
|
||||||
|
</string-array>
|
||||||
|
+
|
||||||
|
+ <!-- Component name of popup camera service -->
|
||||||
|
+ <string name="config_popUpCameraServiceComponentName" translatable="false"></string>
|
||||||
|
</resources>
|
||||||
|
diff --git a/core/res/res/values/lineage_symbols.xml b/core/res/res/values/lineage_symbols.xml
|
||||||
|
index 155da4479fb..c7e58b3943f 100644
|
||||||
|
--- a/core/res/res/values/lineage_symbols.xml
|
||||||
|
+++ b/core/res/res/values/lineage_symbols.xml
|
||||||
|
@@ -25,4 +25,7 @@
|
||||||
|
<java-symbol type="array" name="config_deviceDisabledComponents" />
|
||||||
|
<java-symbol type="array" name="config_globallyDisabledComponents" />
|
||||||
|
<java-symbol type="array" name="config_forceEnabledComponents" />
|
||||||
|
+
|
||||||
|
+ <!-- Component name of popup camera service -->
|
||||||
|
+ <java-symbol type="string" name="config_popUpCameraServiceComponentName" />
|
||||||
|
</resources>
|
||||||
|
diff --git a/services/core/java/com/android/server/camera/CameraServiceProxy.java b/services/core/java/com/android/server/camera/CameraServiceProxy.java
|
||||||
|
index 5f7a72c8512..9e72fa09993 100644
|
||||||
|
--- a/services/core/java/com/android/server/camera/CameraServiceProxy.java
|
||||||
|
+++ b/services/core/java/com/android/server/camera/CameraServiceProxy.java
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
package com.android.server.camera;
|
||||||
|
|
||||||
|
import android.content.BroadcastReceiver;
|
||||||
|
+import android.content.ComponentName;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.IntentFilter;
|
||||||
|
@@ -32,6 +33,7 @@ import android.os.Process;
|
||||||
|
import android.os.RemoteException;
|
||||||
|
import android.os.SystemClock;
|
||||||
|
import android.os.SystemProperties;
|
||||||
|
+import android.os.UserHandle;
|
||||||
|
import android.os.UserManager;
|
||||||
|
import android.util.ArrayMap;
|
||||||
|
import android.util.ArraySet;
|
||||||
|
@@ -53,6 +55,8 @@ import java.util.Set;
|
||||||
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
+import com.android.internal.util.custom.popupcamera.PopUpCameraUtils;
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* CameraServiceProxy is the system_server analog to the camera service running in cameraserver.
|
||||||
|
*
|
||||||
|
@@ -106,6 +110,8 @@ public class CameraServiceProxy extends SystemService
|
||||||
|
private final boolean mNotifyNfc;
|
||||||
|
private final boolean mAllowMediaUid;
|
||||||
|
|
||||||
|
+ private final String mPopUpCameraServiceComponentName;
|
||||||
|
+
|
||||||
|
private ScheduledThreadPoolExecutor mLogWriterService = new ScheduledThreadPoolExecutor(
|
||||||
|
/*corePoolSize*/ 1);
|
||||||
|
|
||||||
|
@@ -218,6 +224,8 @@ public class CameraServiceProxy extends SystemService
|
||||||
|
// Don't keep any extra logging threads if not needed
|
||||||
|
mLogWriterService.setKeepAliveTime(1, TimeUnit.SECONDS);
|
||||||
|
mLogWriterService.allowCoreThreadTimeOut(true);
|
||||||
|
+ mPopUpCameraServiceComponentName = mContext.getResources().getString(
|
||||||
|
+ com.android.internal.R.string.config_popUpCameraServiceComponentName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -338,6 +346,18 @@ public class CameraServiceProxy extends SystemService
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ @Override
|
||||||
|
+ public void onBootPhase(int phase) {
|
||||||
|
+ if (phase == PHASE_BOOT_COMPLETED &&
|
||||||
|
+ !mPopUpCameraServiceComponentName.equals("")) {
|
||||||
|
+ String perm = PopUpCameraUtils.MANAGE_POPUP_CAMERA_SERVICE_PERMISSION;
|
||||||
|
+ mContext.enforceCallingOrSelfPermission(perm, "Missing or invalid popup camera service permission: " + perm);
|
||||||
|
+ Intent i = new Intent();
|
||||||
|
+ i.setComponent(ComponentName.unflattenFromString(mPopUpCameraServiceComponentName));
|
||||||
|
+ mContext.startServiceAsUser(i, UserHandle.SYSTEM);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* Dump camera usage events to log.
|
||||||
|
* Package-private
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -0,0 +1,69 @@
|
|||||||
|
From 9b7fb863d5b8ed266574f5bbd73dd896f8534f89 Mon Sep 17 00:00:00 2001
|
||||||
|
From: XiNGRZ <chenxingyu92@gmail.com>
|
||||||
|
Date: Thu, 13 Feb 2020 20:19:22 +0800
|
||||||
|
Subject: [PATCH] build: Add support of generating kernel includes for prebuilt
|
||||||
|
kernels
|
||||||
|
|
||||||
|
For prebuilt kernels, point TARGET_KERNEL_HEADER_SOURCE to the dummy
|
||||||
|
kernel source used to generate headers for HALs.
|
||||||
|
|
||||||
|
Change-Id: I8dbbe3760230ae32f4252e99d1c777a029046d39
|
||||||
|
---
|
||||||
|
build/soong/Android.bp | 4 ++--
|
||||||
|
config/BoardConfigKernel.mk | 4 ++++
|
||||||
|
config/BoardConfigSoong.mk | 2 +-
|
||||||
|
3 files changed, 7 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
|
||||||
|
index ee68c11e..03006e44 100644
|
||||||
|
--- a/build/soong/Android.bp
|
||||||
|
+++ b/build/soong/Android.bp
|
||||||
|
@@ -21,7 +21,7 @@ lineage_generator {
|
||||||
|
name: "generated_kernel_includes",
|
||||||
|
|
||||||
|
// The headers make command
|
||||||
|
- cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
|
||||||
|
+ cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_HEADER_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
|
||||||
|
|
||||||
|
// Directories that can be imported by a cc_* module generated_headers property
|
||||||
|
export_include_dirs: [
|
||||||
|
@@ -32,7 +32,7 @@ lineage_generator {
|
||||||
|
],
|
||||||
|
|
||||||
|
// Sources for dependency tracking
|
||||||
|
- dep_root: "$(TARGET_KERNEL_SOURCE)",
|
||||||
|
+ dep_root: "$(TARGET_KERNEL_HEADER_SOURCE)",
|
||||||
|
dep_files: [
|
||||||
|
"Makefile",
|
||||||
|
"include/**/*",
|
||||||
|
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
|
||||||
|
index 8479369a..508927fd 100644
|
||||||
|
--- a/config/BoardConfigKernel.mk
|
||||||
|
+++ b/config/BoardConfigKernel.mk
|
||||||
|
@@ -52,6 +52,10 @@ else
|
||||||
|
KERNEL_ARCH := $(TARGET_KERNEL_ARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
|
+ifneq ($(TARGET_KERNEL_SOURCE),)
|
||||||
|
+TARGET_KERNEL_HEADER_SOURCE := $(TARGET_KERNEL_SOURCE)
|
||||||
|
+endif
|
||||||
|
+
|
||||||
|
CLANG_PREBUILTS := $(BUILD_TOP)/prebuilts/clang/host/$(HOST_PREBUILT_TAG)/clang-r383902b
|
||||||
|
GCC_PREBUILTS := $(BUILD_TOP)/prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
||||||
|
# arm64 toolchain
|
||||||
|
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
|
||||||
|
index c0b01674..aacc8c56 100644
|
||||||
|
--- a/config/BoardConfigSoong.mk
|
||||||
|
+++ b/config/BoardConfigSoong.mk
|
||||||
|
@@ -9,7 +9,7 @@ EXPORT_TO_SOONG := \
|
||||||
|
KERNEL_MAKE_FLAGS \
|
||||||
|
PATH_OVERRIDE_SOONG \
|
||||||
|
TARGET_KERNEL_CONFIG \
|
||||||
|
- TARGET_KERNEL_SOURCE
|
||||||
|
+ TARGET_KERNEL_HEADER_SOURCE
|
||||||
|
|
||||||
|
# Setup SOONG_CONFIG_* vars to export the vars listed above.
|
||||||
|
# Documentation here:
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
0
patches_device_personal/frameworks_base/placeholder
Normal file
0
patches_device_personal/frameworks_base/placeholder
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 7ff66a5a2479b490ae553781be0cf19ac5cf9010 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Koskovich <zvnexus@outlook.com>
|
||||||
|
Date: Sat, 3 Oct 2020 14:28:35 -0700
|
||||||
|
Subject: [PATCH 1/2] Make broken copy headers the default.
|
||||||
|
|
||||||
|
* Do not take this for S unless needed, this is a hack
|
||||||
|
for this cycle.
|
||||||
|
|
||||||
|
Change-Id: I55c8897d7d4d5c2a9e62b1a931b3856b2e38956e
|
||||||
|
---
|
||||||
|
core/board_config.mk | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/core/board_config.mk b/core/board_config.mk
|
||||||
|
index 86162b6f3..d152bdff6 100644
|
||||||
|
--- a/core/board_config.mk
|
||||||
|
+++ b/core/board_config.mk
|
||||||
|
@@ -113,6 +113,7 @@ endif
|
||||||
|
# ###############################################################
|
||||||
|
$(foreach v,$(_build_broken_var_list),$(eval $(v) :=))
|
||||||
|
BUILD_BROKEN_NINJA_USES_ENV_VARS :=
|
||||||
|
+BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
|
||||||
|
|
||||||
|
# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
|
||||||
|
# or under vendor/*/$(TARGET_DEVICE). Search in both places, but
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
From 89f1eee05a62af665555ff9dc6852e320140fbf1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Thu, 14 Oct 2021 12:20:52 +0000
|
|
||||||
Subject: [PATCH] build: Remove llkd
|
|
||||||
|
|
||||||
...until someone figures out why Genshin Impact fails it
|
|
||||||
|
|
||||||
Change-Id: I29384a820a0c07b29d3f11d7039bed40eeaee926
|
|
||||||
---
|
|
||||||
target/product/base_system.mk | 1 -
|
|
||||||
1 file changed, 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/target/product/base_system.mk b/target/product/base_system.mk
|
|
||||||
index ba239a2a4a..b201f15177 100644
|
|
||||||
--- a/target/product/base_system.mk
|
|
||||||
+++ b/target/product/base_system.mk
|
|
||||||
@@ -208,7 +208,6 @@ PRODUCT_PACKAGES += \
|
|
||||||
libvulkan \
|
|
||||||
libwilhelm \
|
|
||||||
linker \
|
|
||||||
- llkd \
|
|
||||||
lmkd \
|
|
||||||
LocalTransport \
|
|
||||||
locksettings \
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
From bd52c99f0fb44194a420df337f23639af8c26db9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 5 Sep 2021 00:22:49 +0000
|
||||||
|
Subject: [PATCH 2/2] Revert "Add llkd to mainline_system"
|
||||||
|
|
||||||
|
This reverts commit 8879840c52b2647c000dffee0935bb5af662998a.
|
||||||
|
---
|
||||||
|
target/product/mainline_system.mk | 9 ++++-----
|
||||||
|
1 file changed, 4 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/target/product/mainline_system.mk b/target/product/mainline_system.mk
|
||||||
|
index a787707a0..4653207b3 100644
|
||||||
|
--- a/target/product/mainline_system.mk
|
||||||
|
+++ b/target/product/mainline_system.mk
|
||||||
|
@@ -39,9 +39,6 @@ PRODUCT_PACKAGES += \
|
||||||
|
Tag \
|
||||||
|
TimeZoneUpdater \
|
||||||
|
|
||||||
|
-# Binaries
|
||||||
|
-PRODUCT_PACKAGES += llkd
|
||||||
|
-
|
||||||
|
# OTA support
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
recovery-refresh \
|
||||||
|
@@ -49,10 +46,12 @@ PRODUCT_PACKAGES += \
|
||||||
|
update_verifier \
|
||||||
|
|
||||||
|
# Wrapped net utils for /vendor access.
|
||||||
|
-PRODUCT_PACKAGES += netutils-wrapper-1.0
|
||||||
|
+PRODUCT_PACKAGES += \
|
||||||
|
+ netutils-wrapper-1.0 \
|
||||||
|
|
||||||
|
# Charger images
|
||||||
|
-PRODUCT_PACKAGES += charger_res_images
|
||||||
|
+PRODUCT_PACKAGES += \
|
||||||
|
+ charger_res_images \
|
||||||
|
|
||||||
|
# system_other support
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,77 +0,0 @@
|
|||||||
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/43] Disable FP lockouts optionally
|
|
||||||
|
|
||||||
Both timed and permanent lockouts - GET THE FUCK OUT
|
|
||||||
Now targeting LockoutFramework, introduced in Android 12
|
|
||||||
Now controlled by property "persist.sys.fp.lockouts.disable"
|
|
||||||
|
|
||||||
Change-Id: I2d4b091f3546d4d7903bfb4d5585629212dc9915
|
|
||||||
---
|
|
||||||
.../hidl/LockoutFrameworkImpl.java | 28 +++++++++++--------
|
|
||||||
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 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
|
|
||||||
@@ -29,6 +29,7 @@ import android.content.IntentFilter;
|
|
||||||
import android.os.Handler;
|
|
||||||
import android.os.Looper;
|
|
||||||
import android.os.SystemClock;
|
|
||||||
+import android.os.SystemProperties;
|
|
||||||
import android.util.Slog;
|
|
||||||
import android.util.SparseBooleanArray;
|
|
||||||
import android.util.SparseIntArray;
|
|
||||||
@@ -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";
|
|
||||||
+ private static final String DISABLE_FP_LOCKOUTS_PROPERTY = "persist.sys.fp.lockouts.disable";
|
|
||||||
|
|
||||||
private final class LockoutReceiver extends BroadcastReceiver {
|
|
||||||
@Override
|
|
||||||
@@ -133,24 +135,28 @@ public class LockoutFrameworkImpl implements LockoutTracker {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addFailedAttemptForUser(int userId) {
|
|
||||||
- mFailedAttempts.put(userId, mFailedAttempts.get(userId, 0) + 1);
|
|
||||||
- mTimedLockoutCleared.put(userId, false);
|
|
||||||
+ if (!SystemProperties.getBoolean(DISABLE_FP_LOCKOUTS_PROPERTY, false)) {
|
|
||||||
+ mFailedAttempts.put(userId, mFailedAttempts.get(userId, 0) + 1);
|
|
||||||
+ mTimedLockoutCleared.put(userId, false);
|
|
||||||
|
|
||||||
- if (getLockoutModeForUser(userId) != LOCKOUT_NONE) {
|
|
||||||
- scheduleLockoutResetForUser(userId);
|
|
||||||
+ if (getLockoutModeForUser(userId) != LOCKOUT_NONE) {
|
|
||||||
+ scheduleLockoutResetForUser(userId);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@LockoutMode
|
|
||||||
public int getLockoutModeForUser(int userId) {
|
|
||||||
- final int failedAttempts = mFailedAttempts.get(userId, 0);
|
|
||||||
- if (failedAttempts >= MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT) {
|
|
||||||
- return LOCKOUT_PERMANENT;
|
|
||||||
- } else if (failedAttempts > 0
|
|
||||||
- && !mTimedLockoutCleared.get(userId, false)
|
|
||||||
- && (failedAttempts % MAX_FAILED_ATTEMPTS_LOCKOUT_TIMED == 0)) {
|
|
||||||
- return LOCKOUT_TIMED;
|
|
||||||
+ if (!SystemProperties.getBoolean(DISABLE_FP_LOCKOUTS_PROPERTY, false)) {
|
|
||||||
+ final int failedAttempts = mFailedAttempts.get(userId, 0);
|
|
||||||
+ if (failedAttempts >= MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT) {
|
|
||||||
+ return LOCKOUT_PERMANENT;
|
|
||||||
+ } else if (failedAttempts > 0
|
|
||||||
+ && !mTimedLockoutCleared.get(userId, false)
|
|
||||||
+ && (failedAttempts % MAX_FAILED_ATTEMPTS_LOCKOUT_TIMED == 0)) {
|
|
||||||
+ return LOCKOUT_TIMED;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
return LOCKOUT_NONE;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
|||||||
|
From 0353d82691df67c3497cc0df021d8a0850b6cfec 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 1/3] UI: Revive navbar layout tuning via sysui_nav_bar tunable
|
||||||
|
|
||||||
|
Google keeps fixing what ain't broken.
|
||||||
|
This partially undoes https://github.com/LineageOS/android_frameworks_base/commit/e0d5ccd331e694afdc3c8462a1b845df329de2b8 and https://github.com/LineageOS/android_frameworks_base/commit/d34b4e8d278386b85a00018c502bd21d00f8813b
|
||||||
|
|
||||||
|
Change-Id: Ied7d7859e50fd0fcc346219964e747c5d5f4c352
|
||||||
|
---
|
||||||
|
.../statusbar/phone/NavigationBarInflaterView.java | 14 ++++++++++++++
|
||||||
|
1 file changed, 14 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
index 047cb702c55..e4b3395f57a 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
@@ -108,6 +108,7 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
|
||||||
|
private boolean mIsVertical;
|
||||||
|
private boolean mAlternativeOrder;
|
||||||
|
+ private boolean mUsingCustomLayout;
|
||||||
|
|
||||||
|
private OverviewProxyService mOverviewProxyService;
|
||||||
|
private int mNavBarMode = NAV_BAR_MODE_3BUTTON;
|
||||||
|
@@ -173,6 +174,7 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
super.onAttachedToWindow();
|
||||||
|
Dependency.get(TunerService.class).addTunable(this, NAV_BAR_INVERSE);
|
||||||
|
Dependency.get(TunerService.class).addTunable(this, KEY_NAVIGATION_HINT);
|
||||||
|
+ Dependency.get(TunerService.class).addTunable(this, NAV_BAR_VIEWS);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -191,6 +193,8 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
mIsHintEnabled = TunerService.parseIntegerSwitch(newValue, true);
|
||||||
|
updateHint();
|
||||||
|
onLikelyDefaultLayoutChange();
|
||||||
|
+ } else if (NAV_BAR_VIEWS.equals(key)) {
|
||||||
|
+ setNavigationBarLayout(newValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -200,7 +204,17 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
updateLayoutInversion();
|
||||||
|
}
|
||||||
|
|
||||||
|
+ public void setNavigationBarLayout(String layoutValue) {
|
||||||
|
+ if (!Objects.equals(mCurrentLayout, layoutValue)) {
|
||||||
|
+ mUsingCustomLayout = layoutValue != null;
|
||||||
|
+ clearViews();
|
||||||
|
+ inflateLayout(layoutValue);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
public void onLikelyDefaultLayoutChange() {
|
||||||
|
+ // Don't override custom layouts
|
||||||
|
+ if (mUsingCustomLayout) return;
|
||||||
|
|
||||||
|
// Reevaluate new layout
|
||||||
|
final String newValue = getDefaultLayout();
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
From 6cdab07dbf6a812c1c2daf80c292fa9088143572 Mon Sep 17 00:00:00 2001
|
From 6fdadb36add6aa2f8c6c3d25c4ff8135278a9919 Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Sun, 10 Jan 2021 11:44:29 +0000
|
Date: Sun, 10 Jan 2021 11:44:29 +0000
|
||||||
Subject: [PATCH 07/43] UI: Disable wallpaper zoom
|
Subject: [PATCH 2/3] UI: Disable wallpaper zoom
|
||||||
|
|
||||||
It does little more than inducing motion sickness
|
It does little more than inducing motion sickness
|
||||||
|
|
||||||
@ -11,18 +11,18 @@ Change-Id: I78cc5484930b27f172cd8d8a5bd9042dce3478d0
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||||
index 0a4fc6515368..129c7160fe63 100644
|
index 51b461e7949..f761d28e68d 100644
|
||||||
--- a/core/res/res/values/config.xml
|
--- a/core/res/res/values/config.xml
|
||||||
+++ b/core/res/res/values/config.xml
|
+++ b/core/res/res/values/config.xml
|
||||||
@@ -5858,7 +5858,7 @@
|
@@ -4384,7 +4384,7 @@
|
||||||
<item name="config_wallpaperMinScale" format="float" type="dimen">1</item>
|
<string name="config_customSessionPolicyProvider"></string>
|
||||||
|
|
||||||
<!-- The max scale for the wallpaper when it's zoomed in -->
|
<!-- The max scale for the wallpaper when it's zoomed in -->
|
||||||
- <item name="config_wallpaperMaxScale" format="float" type="dimen">1.10</item>
|
- <item name="config_wallpaperMaxScale" format="float" type="dimen">1.10</item>
|
||||||
+ <item name="config_wallpaperMaxScale" format="float" type="dimen">1</item>
|
+ <item name="config_wallpaperMaxScale" format="float" type="dimen">1</item>
|
||||||
|
|
||||||
<!-- If true, the wallpaper will scale regardless of the value of shouldZoomOutWallpaper() -->
|
<!-- Package name that will receive an explicit manifest broadcast for
|
||||||
<bool name="config_alwaysScaleWallpaper">false</bool>
|
android.os.action.POWER_SAVE_MODE_CHANGED. -->
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
@ -1,21 +1,22 @@
|
|||||||
From 8595258b7aac74763f6f8b7edbe37b91f0a4c1a5 Mon Sep 17 00:00:00 2001
|
From 2fba4148047720a307d88013f20dbb87e389a751 Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
||||||
Subject: [PATCH 02/43] Disable vendor mismatch warning
|
Subject: [PATCH 3/3] Disable vendor mismatch warning
|
||||||
|
|
||||||
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||||
---
|
---
|
||||||
.../server/wm/ActivityTaskManagerService.java | 14 +-------------
|
.../server/wm/ActivityTaskManagerService.java | 16 ++--------------
|
||||||
1 file changed, 1 insertion(+), 13 deletions(-)
|
1 file changed, 2 insertions(+), 14 deletions(-)
|
||||||
|
|
||||||
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
index b26cddaccc04..cdc661598f33 100644
|
index ec178a4b543..f1d9cd968bc 100644
|
||||||
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
@@ -6312,19 +6312,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
@@ -6494,20 +6494,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||||
|
}
|
||||||
|
|
||||||
if (!isBuildConsistent) {
|
if (!Build.isBuildConsistent()) {
|
||||||
Slog.e(TAG, "Build fingerprint is not consistent, warning user");
|
- Slog.e(TAG, "Build fingerprint is not consistent, warning user");
|
||||||
- mUiHandler.post(() -> {
|
- mUiHandler.post(() -> {
|
||||||
- if (mShowDialogs) {
|
- if (mShowDialogs) {
|
||||||
- AlertDialog d = new BaseErrorDialog(mUiContext);
|
- AlertDialog d = new BaseErrorDialog(mUiContext);
|
||||||
@ -29,10 +30,11 @@ index b26cddaccc04..cdc661598f33 100644
|
|||||||
- d.show();
|
- d.show();
|
||||||
- }
|
- }
|
||||||
- });
|
- });
|
||||||
|
+ Slog.e(TAG, "Build fingerprint is not consistent");
|
||||||
+ // Do not emit warning about vendor mismatch
|
+ // Do not emit warning about vendor mismatch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER);
|
}
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
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/43] Keyguard: Allow locking to any rotation mode
|
|
||||||
|
|
||||||
Change-Id: I0f12c433f3547e9bfcdbc2cf50e2a4f3ec8ca311
|
|
||||||
---
|
|
||||||
.../shade/NotificationShadeWindowControllerImpl.java | 9 +++------
|
|
||||||
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 1aa42d1554fe..a2787a0bebe0 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java
|
|
||||||
@@ -443,12 +443,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
|
|
||||||
}
|
|
||||||
|
|
||||||
private void adjustScreenOrientation(NotificationShadeWindowState state) {
|
|
||||||
- if (state.bouncerShowing || state.isKeyguardShowingAndNotOccluded() || state.dozing) {
|
|
||||||
- if (shouldEnableKeyguardScreenRotation()) {
|
|
||||||
- mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
|
|
||||||
- } else {
|
|
||||||
- mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
|
|
||||||
- }
|
|
||||||
+ if ((state.bouncerShowing || state.isKeyguardShowingAndNotOccluded() || state.dozing)
|
|
||||||
+ && shouldEnableKeyguardScreenRotation()) {
|
|
||||||
+ mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
|
|
||||||
} else {
|
|
||||||
mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
|||||||
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/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
|
|
||||||
|
|
||||||
Change-Id: I06abd8bf2e28655cc9e6d81366fd82a13454ec5a
|
|
||||||
---
|
|
||||||
.../com/android/keyguard/KeyguardStatusViewController.java | 7 +++++++
|
|
||||||
.../systemui/shade/NotificationPanelViewController.java | 1 +
|
|
||||||
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 c0ae4a1f4036..7b25a37a1632 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
|
|
||||||
@@ -282,6 +282,13 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
|
|
||||||
mKeyguardSliceViewController.refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /**
|
|
||||||
+ * The amount we're in doze.
|
|
||||||
+ */
|
|
||||||
+ public void setDarkAmount(float darkAmount) {
|
|
||||||
+ mView.setDarkAmount(darkAmount);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/**
|
|
||||||
* 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 cfc0658da0f4..bbce9228f379 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
|
|
||||||
@@ -4574,6 +4574,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
|
||||||
public void onDozeAmountChanged(float linearAmount, float amount) {
|
|
||||||
mInterpolatedDarkAmount = amount;
|
|
||||||
mLinearDarkAmount = linearAmount;
|
|
||||||
+ mKeyguardStatusViewController.setDarkAmount(mInterpolatedDarkAmount);
|
|
||||||
positionClockAndNotifications();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,62 +0,0 @@
|
|||||||
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/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
|
|
||||||
|
|
||||||
Change-Id: Ia32f5d92e6c9e36560c53e7dffce7d2c29a81fe5
|
|
||||||
---
|
|
||||||
.../SystemUI/res/values-sw372dp/config.xml | 25 -------------------
|
|
||||||
packages/SystemUI/res/values/config.xml | 2 +-
|
|
||||||
2 files changed, 1 insertion(+), 26 deletions(-)
|
|
||||||
delete mode 100644 packages/SystemUI/res/values-sw372dp/config.xml
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values-sw372dp/config.xml b/packages/SystemUI/res/values-sw372dp/config.xml
|
|
||||||
deleted file mode 100644
|
|
||||||
index 07b797a32428..000000000000
|
|
||||||
--- a/packages/SystemUI/res/values-sw372dp/config.xml
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,25 +0,0 @@
|
|
||||||
-<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
-<!--
|
|
||||||
-/*
|
|
||||||
-** Copyright 2017, 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.
|
|
||||||
-*/
|
|
||||||
--->
|
|
||||||
-
|
|
||||||
-<!-- These resources are around just to allow their values to be customized
|
|
||||||
- for different hardware and product builds. -->
|
|
||||||
-<resources>
|
|
||||||
- <!-- Nav bar button default ordering/layout -->
|
|
||||||
- <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 2124ad9edca9..0286cc65c8e2 100644
|
|
||||||
--- a/packages/SystemUI/res/values/config.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/config.xml
|
|
||||||
@@ -325,7 +325,7 @@
|
|
||||||
</string-array>
|
|
||||||
|
|
||||||
<!-- Nav bar button default ordering/layout -->
|
|
||||||
- <string name="config_navBarLayout" translatable="false">left[.5W],back[1WC];home;recent[1WC],right[.5W]</string>
|
|
||||||
+ <string name="config_navBarLayout" translatable="false">left[.6W],back[1WC];home;recent[1WC],right[.6W]</string>
|
|
||||||
<string name="config_navBarLayoutQuickstep" translatable="false">back[1.7WC];home;menu_ime[1.7WC]</string>
|
|
||||||
<string name="config_navBarLayoutHandle" translatable="false">back[70AC];home_handle;ime_switcher[70AC]</string>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,197 +0,0 @@
|
|||||||
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/43] UI: Adjust split-screen divider
|
|
||||||
|
|
||||||
- Kill rounded corners - where two rectangles collide should be perfectly straight
|
|
||||||
- Make it black (pre-Sv2) for phones
|
|
||||||
- Follow taskbar theme for tablets
|
|
||||||
|
|
||||||
Change-Id: I240b627793b615c82bd07ebd77638cde180ef80f
|
|
||||||
---
|
|
||||||
.../color-night-v31/taskbar_background.xml | 20 +++++++++++++++++
|
|
||||||
.../taskbar_nav_icon_color.xml | 18 +++++++++++++++
|
|
||||||
.../res/color-v31/taskbar_background.xml | 18 +++++++++++++++
|
|
||||||
.../res/color-v31/taskbar_nav_icon_color.xml | 18 +++++++++++++++
|
|
||||||
.../Shell/res/values-sw600dp/colors.xml | 22 +++++++++++++++++++
|
|
||||||
.../WindowManager/Shell/res/values/colors.xml | 2 +-
|
|
||||||
.../wm/shell/common/split/SplitLayout.java | 19 ++--------------
|
|
||||||
7 files changed, 99 insertions(+), 18 deletions(-)
|
|
||||||
create mode 100644 libs/WindowManager/Shell/res/color-night-v31/taskbar_background.xml
|
|
||||||
create mode 100644 libs/WindowManager/Shell/res/color-night-v31/taskbar_nav_icon_color.xml
|
|
||||||
create mode 100644 libs/WindowManager/Shell/res/color-v31/taskbar_background.xml
|
|
||||||
create mode 100644 libs/WindowManager/Shell/res/color-v31/taskbar_nav_icon_color.xml
|
|
||||||
create mode 100644 libs/WindowManager/Shell/res/values-sw600dp/colors.xml
|
|
||||||
|
|
||||||
diff --git a/libs/WindowManager/Shell/res/color-night-v31/taskbar_background.xml b/libs/WindowManager/Shell/res/color-night-v31/taskbar_background.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..ec7a6823d34d
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/libs/WindowManager/Shell/res/color-night-v31/taskbar_background.xml
|
|
||||||
@@ -0,0 +1,20 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!-- Copyright (C) 2023 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.
|
|
||||||
+-->
|
|
||||||
+<!-- Make sure to align any changes to
|
|
||||||
+ frameworks/base/libs/WindowManager/Shell/res/color/taskbar_background_dark.xml -->
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+ <item android:color="@android:color/system_neutral1_500" android:lStar="6" />
|
|
||||||
+</selector>
|
|
||||||
diff --git a/libs/WindowManager/Shell/res/color-night-v31/taskbar_nav_icon_color.xml b/libs/WindowManager/Shell/res/color-night-v31/taskbar_nav_icon_color.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..cc8e3b30b1b5
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/libs/WindowManager/Shell/res/color-night-v31/taskbar_nav_icon_color.xml
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!-- Copyright (C) 2023 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_200"/>
|
|
||||||
+</selector>
|
|
||||||
diff --git a/libs/WindowManager/Shell/res/color-v31/taskbar_background.xml b/libs/WindowManager/Shell/res/color-v31/taskbar_background.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..5c53e4a0c9c6
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/libs/WindowManager/Shell/res/color-v31/taskbar_background.xml
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!-- Copyright (C) 2022 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_neutral1_500" android:lStar="98" />
|
|
||||||
+</selector>
|
|
||||||
diff --git a/libs/WindowManager/Shell/res/color-v31/taskbar_nav_icon_color.xml b/libs/WindowManager/Shell/res/color-v31/taskbar_nav_icon_color.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..7951e123afc4
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/libs/WindowManager/Shell/res/color-v31/taskbar_nav_icon_color.xml
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!-- Copyright (C) 2023 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_700"/>
|
|
||||||
+</selector>
|
|
||||||
diff --git a/libs/WindowManager/Shell/res/values-sw600dp/colors.xml b/libs/WindowManager/Shell/res/values-sw600dp/colors.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..8a1907da76e5
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/libs/WindowManager/Shell/res/values-sw600dp/colors.xml
|
|
||||||
@@ -0,0 +1,22 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!--
|
|
||||||
+/*
|
|
||||||
+ * Copyright 2020, 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.
|
|
||||||
+ */
|
|
||||||
+-->
|
|
||||||
+<resources>
|
|
||||||
+ <color name="docked_divider_handle">@color/taskbar_nav_icon_color</color>
|
|
||||||
+ <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 758dbfd5f3c5..e82f6ff9a4db 100644
|
|
||||||
--- a/libs/WindowManager/Shell/res/values/colors.xml
|
|
||||||
+++ b/libs/WindowManager/Shell/res/values/colors.xml
|
|
||||||
@@ -18,7 +18,7 @@
|
|
||||||
-->
|
|
||||||
<resources>
|
|
||||||
<color name="docked_divider_handle">#ffffff</color>
|
|
||||||
- <color name="split_divider_background">@color/taskbar_background_dark</color>
|
|
||||||
+ <color name="split_divider_background">@android:color/black</color>
|
|
||||||
<drawable name="forced_resizable_background">#59000000</drawable>
|
|
||||||
<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 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
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateDividerConfig(Context context) {
|
|
||||||
- final Resources resources = context.getResources();
|
|
||||||
- final Display display = context.getDisplay();
|
|
||||||
- final int dividerInset = resources.getDimensionPixelSize(
|
|
||||||
- com.android.internal.R.dimen.docked_stack_divider_insets);
|
|
||||||
- int radius = 0;
|
|
||||||
- RoundedCorner corner = display.getRoundedCorner(RoundedCorner.POSITION_TOP_LEFT);
|
|
||||||
- radius = corner != null ? Math.max(radius, corner.getRadius()) : radius;
|
|
||||||
- corner = display.getRoundedCorner(RoundedCorner.POSITION_TOP_RIGHT);
|
|
||||||
- radius = corner != null ? Math.max(radius, corner.getRadius()) : radius;
|
|
||||||
- corner = display.getRoundedCorner(RoundedCorner.POSITION_BOTTOM_RIGHT);
|
|
||||||
- radius = corner != null ? Math.max(radius, corner.getRadius()) : radius;
|
|
||||||
- corner = display.getRoundedCorner(RoundedCorner.POSITION_BOTTOM_LEFT);
|
|
||||||
- radius = corner != null ? Math.max(radius, corner.getRadius()) : radius;
|
|
||||||
-
|
|
||||||
- mDividerInsets = Math.max(dividerInset, radius);
|
|
||||||
- mDividerSize = resources.getDimensionPixelSize(R.dimen.split_divider_bar_width);
|
|
||||||
- mDividerWindowWidth = mDividerSize + 2 * mDividerInsets;
|
|
||||||
+ mDividerWindowWidth = context.getResources().getDimensionPixelSize(
|
|
||||||
+ R.dimen.split_divider_bar_width);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Gets bounds of the primary split with screen based coordinate. */
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
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/43] UI: Follow Monet and light/dark theme in user 1 icon
|
|
||||||
|
|
||||||
Change-Id: I755077c6003c39ddc9428da1defe6a6ddd0e5ff8
|
|
||||||
---
|
|
||||||
core/res/res/values-night/colors.xml | 1 +
|
|
||||||
core/res/res/values/colors.xml | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/core/res/res/values-night/colors.xml b/core/res/res/values-night/colors.xml
|
|
||||||
index d3f998fb70cf..4f7b9e093bb7 100644
|
|
||||||
--- a/core/res/res/values-night/colors.xml
|
|
||||||
+++ b/core/res/res/values-night/colors.xml
|
|
||||||
@@ -33,6 +33,7 @@
|
|
||||||
|
|
||||||
<color name="overview_background">@color/overview_background_dark</color>
|
|
||||||
|
|
||||||
+ <color name="user_icon_1">@color/system_accent1_100</color>
|
|
||||||
<color name="user_icon_4">#fff439a0</color><!-- pink -->
|
|
||||||
<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 b879c9794f39..d8191c0c3597 100644
|
|
||||||
--- a/core/res/res/values/colors.xml
|
|
||||||
+++ b/core/res/res/values/colors.xml
|
|
||||||
@@ -177,7 +177,7 @@
|
|
||||||
<color name="system_notification_accent_color">#00000000</color>
|
|
||||||
|
|
||||||
<!-- Default user icon colors -->
|
|
||||||
- <color name="user_icon_1">#ffe46962</color><!-- red -->
|
|
||||||
+ <color name="user_icon_1">@color/system_accent1_600</color>
|
|
||||||
<color name="user_icon_2">#ffaf5cf7</color><!-- purple -->
|
|
||||||
<color name="user_icon_3">#ff4c8df6</color><!-- blue -->
|
|
||||||
<color name="user_icon_4">#fff439a0</color><!-- pink -->
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
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 09/43] UI: Increase default status bar height
|
|
||||||
|
|
||||||
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
|
||||||
---
|
|
||||||
core/res/res/values/dimens.xml | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
|
||||||
index 291a5936330a..5aed5c540a75 100644
|
|
||||||
--- a/core/res/res/values/dimens.xml
|
|
||||||
+++ b/core/res/res/values/dimens.xml
|
|
||||||
@@ -41,7 +41,7 @@
|
|
||||||
|
|
||||||
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
|
||||||
calculate the status bar height. -->
|
|
||||||
- <dimen name="status_bar_height_default">24dp</dimen>
|
|
||||||
+ <dimen name="status_bar_height_default">28dp</dimen>
|
|
||||||
<!-- Height of the status bar.
|
|
||||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
|
||||||
-->
|
|
||||||
@@ -49,7 +49,7 @@
|
|
||||||
<!-- Height of the status bar in portrait.
|
|
||||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
|
||||||
-->
|
|
||||||
- <dimen name="status_bar_height_portrait">24dp</dimen>
|
|
||||||
+ <dimen name="status_bar_height_portrait">28dp</dimen>
|
|
||||||
<!-- Height of the status bar in landscape.
|
|
||||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
|
||||||
-->
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
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 10/43] UI: Revive navbar layout tuning via sysui_nav_bar
|
|
||||||
tunable
|
|
||||||
|
|
||||||
Google keeps fixing what ain't broken.
|
|
||||||
|
|
||||||
Change-Id: Ied7d7859e50fd0fcc346219964e747c5d5f4c352
|
|
||||||
---
|
|
||||||
.../NavigationBarInflaterView.java | 21 +++++++++++++++++++
|
|
||||||
1 file changed, 21 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
|
|
||||||
index 73ca35557133..bbb312c4e56b 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
|
|
||||||
@@ -135,6 +135,7 @@ public class NavigationBarInflaterView extends FrameLayout {
|
|
||||||
|
|
||||||
private boolean mInverseLayout;
|
|
||||||
private boolean mIsHintEnabled;
|
|
||||||
+ private boolean mUsingCustomLayout;
|
|
||||||
|
|
||||||
private final ContentObserver mContentObserver;
|
|
||||||
|
|
||||||
@@ -159,6 +160,9 @@ public class NavigationBarInflaterView extends FrameLayout {
|
|
||||||
mContext.getMainExecutor().execute(() -> {
|
|
||||||
onLikelyDefaultLayoutChange();
|
|
||||||
});
|
|
||||||
+ } else if (Settings.Secure.getUriFor(NAV_BAR_VIEWS).equals(uri)) {
|
|
||||||
+ setNavigationBarLayout(Settings.Secure.getString(mContext.getContentResolver(),
|
|
||||||
+ NAV_BAR_VIEWS));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -215,12 +219,16 @@ public class NavigationBarInflaterView extends FrameLayout {
|
|
||||||
Uri navBarInverse = Settings.Secure.getUriFor(NAV_BAR_INVERSE);
|
|
||||||
Uri navigationBarHint = LineageSettings.System.getUriFor(
|
|
||||||
LineageSettings.System.NAVIGATION_BAR_HINT);
|
|
||||||
+ Uri navBarViews = Settings.Secure.getUriFor(NAV_BAR_VIEWS);
|
|
||||||
mContext.getContentResolver().registerContentObserver(navBarInverse, false,
|
|
||||||
mContentObserver);
|
|
||||||
mContext.getContentResolver().registerContentObserver(navigationBarHint, false,
|
|
||||||
mContentObserver);
|
|
||||||
+ mContext.getContentResolver().registerContentObserver(navBarViews, false,
|
|
||||||
+ mContentObserver);
|
|
||||||
mContentObserver.onChange(true, navBarInverse);
|
|
||||||
mContentObserver.onChange(true, navigationBarHint);
|
|
||||||
+ mContentObserver.onChange(true, navBarViews);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@@ -237,6 +245,9 @@ public class NavigationBarInflaterView extends FrameLayout {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onLikelyDefaultLayoutChange() {
|
|
||||||
+ // Don't override custom layouts
|
|
||||||
+ if (mUsingCustomLayout) return;
|
|
||||||
+
|
|
||||||
// Reevaluate new layout
|
|
||||||
final String newValue = getDefaultLayout();
|
|
||||||
if (!Objects.equals(mCurrentLayout, newValue)) {
|
|
||||||
@@ -245,6 +256,16 @@ public class NavigationBarInflaterView extends FrameLayout {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+ public void setNavigationBarLayout(String layoutValue) {
|
|
||||||
+ mContext.getMainExecutor().execute(() -> {
|
|
||||||
+ if (!Objects.equals(mCurrentLayout, layoutValue)) {
|
|
||||||
+ mUsingCustomLayout = layoutValue != null;
|
|
||||||
+ clearViews();
|
|
||||||
+ inflateLayout(layoutValue);
|
|
||||||
+ }
|
|
||||||
+ });
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
public void setButtonDispatchers(SparseArray<ButtonDispatcher> buttonDispatchers) {
|
|
||||||
mButtonDispatchers = buttonDispatchers;
|
|
||||||
clearDispatcherViews();
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
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 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
|
|
||||||
newer version if one existed. Sometimes, using an old app is necessary
|
|
||||||
for one reason or another, so remove this annoyance and let the user use
|
|
||||||
their old app in peace.
|
|
||||||
|
|
||||||
Change-Id: I1a3021f0f9bec1ab6ff7641776391e1bd4c3cc49
|
|
||||||
---
|
|
||||||
services/core/java/com/android/server/wm/AppWarnings.java | 1 -
|
|
||||||
1 file changed, 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/services/core/java/com/android/server/wm/AppWarnings.java b/services/core/java/com/android/server/wm/AppWarnings.java
|
|
||||||
index ad5f4427fbc4..94ccee7b4771 100644
|
|
||||||
--- a/services/core/java/com/android/server/wm/AppWarnings.java
|
|
||||||
+++ b/services/core/java/com/android/server/wm/AppWarnings.java
|
|
||||||
@@ -210,7 +210,6 @@ class AppWarnings {
|
|
||||||
public void onStartActivity(ActivityRecord r) {
|
|
||||||
showUnsupportedCompileSdkDialogIfNeeded(r);
|
|
||||||
showUnsupportedDisplaySizeDialogIfNeeded(r);
|
|
||||||
- showDeprecatedTargetDialogIfNeeded(r);
|
|
||||||
showDeprecatedAbiDialogIfNeeded(r);
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
|||||||
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 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
|
|
||||||
displays have relatively high DPIs, the lack of subpixel text
|
|
||||||
positioning is only unnoticeable on high-end devices such as the Pixel 4
|
|
||||||
XL (1440x3040 @ 6.3 in => 537 dpi).
|
|
||||||
|
|
||||||
For example, on the Pixel 5 (1080 x 2340 @ 6.0 in => 432 dpi),
|
|
||||||
horizontally-scrolling labels in QS tiles can be seen "jittering"
|
|
||||||
slightly upon close observation. This was tested with the Google Sans
|
|
||||||
font on Google's stock OS. At this lower DPI, there is still a need for
|
|
||||||
subpixel text positioning (at least in some cases).
|
|
||||||
|
|
||||||
Enable subpixel text positioning by default to fix occasional kerning
|
|
||||||
issues and jittering when text is in motion.
|
|
||||||
|
|
||||||
Change-Id: I8d71e5848a745c5a2d457a28c68458920928ee09
|
|
||||||
---
|
|
||||||
graphics/java/android/graphics/Paint.java | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java
|
|
||||||
index df95a91d72d7..6cbae8b67815 100644
|
|
||||||
--- a/graphics/java/android/graphics/Paint.java
|
|
||||||
+++ b/graphics/java/android/graphics/Paint.java
|
|
||||||
@@ -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
|
|
||||||
- | FILTER_BITMAP_FLAG;
|
|
||||||
+ | FILTER_BITMAP_FLAG | SUBPIXEL_TEXT_FLAG;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Font hinter option that disables font hinting.
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
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 14/43] Remove debuggable requirement for signature spoofing
|
|
||||||
|
|
||||||
Change-Id: I8d637ddbbd117a9c5b1d9c5e462b0f4b30d98333
|
|
||||||
---
|
|
||||||
services/core/java/com/android/server/pm/ComputerEngine.java | 4 ----
|
|
||||||
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 7d00436857a5..10a221eb8b9f 100644
|
|
||||||
--- a/services/core/java/com/android/server/pm/ComputerEngine.java
|
|
||||||
+++ b/services/core/java/com/android/server/pm/ComputerEngine.java
|
|
||||||
@@ -1474,10 +1474,6 @@ public class ComputerEngine implements Computer {
|
|
||||||
private static native boolean isDebuggable();
|
|
||||||
|
|
||||||
public static boolean isMicrogSigned(AndroidPackage p) {
|
|
||||||
- if (!isDebuggable()) {
|
|
||||||
- return false;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
// Allowlist the following apps:
|
|
||||||
// * com.android.vending - microG Companion
|
|
||||||
// * com.google.android.gms - microG Services
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,54 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
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,882 +0,0 @@
|
|||||||
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 18/43] Revert "Update SystemUI to new notification color spec"
|
|
||||||
|
|
||||||
This reverts commit db2c5554ac653567d1433d3ff99328c5d855c233.
|
|
||||||
|
|
||||||
Change-Id: Iddbe46f4d01d05d6579c1e8b9dab266dd605e199
|
|
||||||
---
|
|
||||||
...ication_guts_priority_button_bg_stroke.xml | 5 ++--
|
|
||||||
.../notification_guts_priority_contents.xml | 5 ++--
|
|
||||||
.../SystemUI/res/color/remote_input_hint.xml | 5 ++--
|
|
||||||
.../SystemUI/res/color/remote_input_send.xml | 7 ++---
|
|
||||||
.../SystemUI/res/color/remote_input_text.xml | 7 ++---
|
|
||||||
.../drawable/notif_footer_btn_background.xml | 2 +-
|
|
||||||
.../res/drawable/notification_guts_bg.xml | 2 +-
|
|
||||||
.../res/drawable/notification_material_bg.xml | 2 +-
|
|
||||||
.../drawable/remote_input_view_text_bg.xml | 5 ++--
|
|
||||||
..._notification_section_header_clear_btn.xml | 3 +-
|
|
||||||
.../SystemUI/res/layout/notif_half_shelf.xml | 3 +-
|
|
||||||
.../res/layout/notif_half_shelf_row.xml | 5 ++--
|
|
||||||
.../layout/notification_children_divider.xml | 3 +-
|
|
||||||
.../layout/notification_conversation_info.xml | 3 +-
|
|
||||||
.../SystemUI/res/layout/notification_info.xml | 5 ++--
|
|
||||||
.../res/layout/notification_snooze.xml | 4 +--
|
|
||||||
.../res/layout/notification_snooze_option.xml | 3 +-
|
|
||||||
.../layout/status_bar_notification_footer.xml | 6 ++--
|
|
||||||
...status_bar_notification_section_header.xml | 2 +-
|
|
||||||
packages/SystemUI/res/values-night/colors.xml | 2 +-
|
|
||||||
packages/SystemUI/res/values/colors.xml | 2 +-
|
|
||||||
packages/SystemUI/res/values/styles.xml | 30 ++++---------------
|
|
||||||
.../systemui/statusbar/EmptyShadeView.java | 8 ++---
|
|
||||||
.../footer/ui/view/FooterView.java | 29 +++++++++---------
|
|
||||||
.../row/ActivatableNotificationView.java | 2 +-
|
|
||||||
.../row/HybridNotificationView.java | 5 ++--
|
|
||||||
.../row/NotificationConversationInfo.java | 9 +++---
|
|
||||||
.../row/wrapper/NotificationViewWrapper.java | 3 +-
|
|
||||||
.../stack/NotificationChildrenContainer.java | 2 +-
|
|
||||||
.../stack/NotificationSectionsManager.kt | 8 ++---
|
|
||||||
.../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(+), 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
|
|
||||||
--- a/packages/SystemUI/res/color/notification_guts_priority_button_bg_stroke.xml
|
|
||||||
+++ b/packages/SystemUI/res/color/notification_guts_priority_button_bg_stroke.xml
|
|
||||||
@@ -14,9 +14,8 @@
|
|
||||||
~ limitations under the License
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_selected="true"
|
|
||||||
- android:color="?androidprv:attr/materialColorOnSurfaceVariant" />
|
|
||||||
+ android:color="?android:attr/colorAccent" />
|
|
||||||
<item android:color="@color/notification_guts_priority_button_bg_stroke_color" />
|
|
||||||
</selector>
|
|
||||||
diff --git a/packages/SystemUI/res/color/notification_guts_priority_contents.xml b/packages/SystemUI/res/color/notification_guts_priority_contents.xml
|
|
||||||
index cc8c25a2d1ec..42f01896d7a1 100644
|
|
||||||
--- a/packages/SystemUI/res/color/notification_guts_priority_contents.xml
|
|
||||||
+++ b/packages/SystemUI/res/color/notification_guts_priority_contents.xml
|
|
||||||
@@ -14,9 +14,8 @@
|
|
||||||
~ limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:state_selected="true"
|
|
||||||
- android:color="?androidprv:attr/materialColorOnSurfaceVariant" />
|
|
||||||
+ android:color="?android:attr/colorAccent" />
|
|
||||||
<item android:color="@color/notification_guts_priority_button_content_color" />
|
|
||||||
</selector>
|
|
||||||
diff --git a/packages/SystemUI/res/color/remote_input_hint.xml b/packages/SystemUI/res/color/remote_input_hint.xml
|
|
||||||
index 0d90ee6b47c6..7fe58dbcf822 100644
|
|
||||||
--- a/packages/SystemUI/res/color/remote_input_hint.xml
|
|
||||||
+++ b/packages/SystemUI/res/color/remote_input_hint.xml
|
|
||||||
@@ -14,7 +14,6 @@
|
|
||||||
~ limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
- <item android:color="?androidprv:attr/materialColorOnSurfaceVariant" android:alpha=".6" />
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+ <item android:color="?android:attr/textColorPrimary" android:alpha=".6" />
|
|
||||||
</selector>
|
|
||||||
\ No newline at end of file
|
|
||||||
diff --git a/packages/SystemUI/res/color/remote_input_send.xml b/packages/SystemUI/res/color/remote_input_send.xml
|
|
||||||
index 0acc66b9050f..4dcd3dd229fb 100644
|
|
||||||
--- a/packages/SystemUI/res/color/remote_input_send.xml
|
|
||||||
+++ b/packages/SystemUI/res/color/remote_input_send.xml
|
|
||||||
@@ -15,8 +15,7 @@
|
|
||||||
~ limitations under the License
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
- <item android:state_enabled="false" android:color="?androidprv:attr/materialColorPrimary" android:alpha=".3" />
|
|
||||||
- <item android:color="?androidprv:attr/materialColorPrimary" />
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+ <item android:state_enabled="false" android:color="?android:attr/colorAccent" android:alpha=".3" />
|
|
||||||
+ <item android:color="?android:attr/colorAccent" />
|
|
||||||
</selector>
|
|
||||||
\ No newline at end of file
|
|
||||||
diff --git a/packages/SystemUI/res/color/remote_input_text.xml b/packages/SystemUI/res/color/remote_input_text.xml
|
|
||||||
index bf2c198fe540..13bb1d7cbe7d 100644
|
|
||||||
--- a/packages/SystemUI/res/color/remote_input_text.xml
|
|
||||||
+++ b/packages/SystemUI/res/color/remote_input_text.xml
|
|
||||||
@@ -15,8 +15,7 @@
|
|
||||||
~ limitations under the License
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
- <item android:state_enabled="false" android:color="?androidprv:attr/materialColorOnSurfaceVariant" android:alpha=".6" />
|
|
||||||
- <item android:color="?androidprv:attr/materialColorOnSurfaceVariant" />
|
|
||||||
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+ <item android:state_enabled="false" android:color="?android:attr/textColorPrimary" android:alpha=".6" />
|
|
||||||
+ <item android:color="?android:attr/textColorPrimary" />
|
|
||||||
</selector>
|
|
||||||
\ No newline at end of file
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/notif_footer_btn_background.xml b/packages/SystemUI/res/drawable/notif_footer_btn_background.xml
|
|
||||||
index b9597375c3df..e6266754c0af 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/notif_footer_btn_background.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/notif_footer_btn_background.xml
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
<padding
|
|
||||||
android:left="20dp"
|
|
||||||
android:right="20dp" />
|
|
||||||
- <solid android:color="?androidprv:attr/materialColorSurfaceContainerHigh" />
|
|
||||||
+ <solid android:color="?androidprv:attr/colorSurface" />
|
|
||||||
</shape>
|
|
||||||
</inset>
|
|
||||||
</item>
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/notification_guts_bg.xml b/packages/SystemUI/res/drawable/notification_guts_bg.xml
|
|
||||||
index 84e2231738d4..bd9394bf9f8a 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/notification_guts_bg.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/notification_guts_bg.xml
|
|
||||||
@@ -17,7 +17,7 @@
|
|
||||||
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
- <solid android:color="?androidprv:attr/materialColorSurfaceContainerHigh" />
|
|
||||||
+ <solid android:color="?androidprv:attr/colorSurface" />
|
|
||||||
<!--The radius is 1dp smaller than the notification one, to avoid aliasing bugs on the corners -->
|
|
||||||
<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 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 @@
|
|
||||||
android:color="?android:attr/colorControlHighlight">
|
|
||||||
<item>
|
|
||||||
<shape>
|
|
||||||
- <solid android:color="?androidprv:attr/materialColorSurfaceContainerHigh" />
|
|
||||||
+ <solid android:color="?androidprv:attr/colorSurface" />
|
|
||||||
</shape>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/remote_input_view_text_bg.xml b/packages/SystemUI/res/drawable/remote_input_view_text_bg.xml
|
|
||||||
index 45d1a530cd20..535b35497b5c 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/remote_input_view_text_bg.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/remote_input_view_text_bg.xml
|
|
||||||
@@ -14,13 +14,12 @@
|
|
||||||
~ limitations under the License.
|
|
||||||
-->
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:shape="rectangle">
|
|
||||||
|
|
||||||
- <solid android:color="?androidprv:attr/materialColorSurfaceDim" />
|
|
||||||
+ <solid android:color="?android:attr/colorBackgroundFloating" />
|
|
||||||
<stroke
|
|
||||||
android:width="@dimen/remote_input_view_text_stroke"
|
|
||||||
- android:color="?androidprv:attr/materialColorPrimary"/>
|
|
||||||
+ android:color="?android:attr/colorAccent"/>
|
|
||||||
<padding
|
|
||||||
android:bottom="0dp"
|
|
||||||
android:left="12dp"
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml b/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml
|
|
||||||
index 06bed001ae1a..8b3408048848 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml
|
|
||||||
@@ -15,12 +15,11 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:width="40dp"
|
|
||||||
android:height="40dp"
|
|
||||||
android:viewportWidth="40"
|
|
||||||
android:viewportHeight="40">
|
|
||||||
<path
|
|
||||||
- android:fillColor="?androidprv:attr/materialColorOnSurfaceVariant"
|
|
||||||
+ android:fillColor="@color/notification_section_clear_all_btn_color"
|
|
||||||
android:pathData="M24.6667 16.2733L23.7267 15.3333L20 19.06L16.2734 15.3333L15.3334 16.2733L19.06 20L15.3334 23.7267L16.2734 24.6667L20 20.94L23.7267 24.6667L24.6667 23.7267L20.94 20L24.6667 16.2733Z"/>
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notif_half_shelf.xml b/packages/SystemUI/res/layout/notif_half_shelf.xml
|
|
||||||
index 68c8dd96d188..c70f8e2b1c07 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notif_half_shelf.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notif_half_shelf.xml
|
|
||||||
@@ -16,7 +16,6 @@
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:id="@+id/half_shelf_dialog"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
@@ -66,7 +65,7 @@
|
|
||||||
android:gravity="center_vertical|start"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="2"
|
|
||||||
- android:textColor="?androidprv:attr/materialColorOnSurface"
|
|
||||||
+ android:textColor="?android:attr/textColorPrimary"
|
|
||||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
|
||||||
android:textSize="16sp"
|
|
||||||
/>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notif_half_shelf_row.xml b/packages/SystemUI/res/layout/notif_half_shelf_row.xml
|
|
||||||
index 9ef342ce5220..190f9994b1dc 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notif_half_shelf_row.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notif_half_shelf_row.xml
|
|
||||||
@@ -16,7 +16,6 @@
|
|
||||||
|
|
||||||
<com.android.systemui.statusbar.notification.row.ChannelRow
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:id="@+id/half_shelf_row"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
@@ -60,7 +59,7 @@
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
android:fontFamily="@*android:string/config_headlineFontFamily"
|
|
||||||
- android:textColor="?androidprv:attr/materialColorOnSurface"
|
|
||||||
+ android:textColor="?android:attr/textColorPrimary"
|
|
||||||
android:textSize="16sp"
|
|
||||||
/>
|
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@
|
|
||||||
android:maxLines="1"
|
|
||||||
android:layout_below="@id/channel_name"
|
|
||||||
android:fontFamily="@*android:string/config_bodyFontFamily"
|
|
||||||
- android:textColor="?androidprv:attr/materialColorOnSurfaceVariant"
|
|
||||||
+ android:textColor="?android:attr/textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notification_children_divider.xml b/packages/SystemUI/res/layout/notification_children_divider.xml
|
|
||||||
index 13e24a9ea277..eb743067933d 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notification_children_divider.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notification_children_divider.xml
|
|
||||||
@@ -17,8 +17,7 @@
|
|
||||||
|
|
||||||
<com.android.systemui.statusbar.AlphaOptimizedView
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:id="@+id/notification_more_divider"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/notification_divider_height"
|
|
||||||
- android:background="?androidprv:attr/materialColorOnSurfaceVariant" />
|
|
||||||
+ android:background="@color/notification_divider_color" />
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notification_conversation_info.xml b/packages/SystemUI/res/layout/notification_conversation_info.xml
|
|
||||||
index 3a752c81b95a..4f6e88c2266f 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notification_conversation_info.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notification_conversation_info.xml
|
|
||||||
@@ -17,7 +17,6 @@
|
|
||||||
|
|
||||||
<com.android.systemui.statusbar.notification.row.NotificationConversationInfo
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:id="@+id/notification_guts"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
@@ -174,7 +173,7 @@
|
|
||||||
android:contentDescription="@string/notification_more_settings"
|
|
||||||
android:background="@drawable/ripple_drawable_20dp"
|
|
||||||
android:src="@drawable/ic_settings"
|
|
||||||
- android:tint="?androidprv:attr/materialColorPrimary"
|
|
||||||
+ android:tint="?android:attr/colorAccent"
|
|
||||||
android:layout_alignParentEnd="true" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notification_info.xml b/packages/SystemUI/res/layout/notification_info.xml
|
|
||||||
index 19a3f2fd521c..852db1b8fb91 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notification_info.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notification_info.xml
|
|
||||||
@@ -17,7 +17,6 @@
|
|
||||||
|
|
||||||
<com.android.systemui.statusbar.notification.row.NotificationInfo
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:id="@+id/notification_guts"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
@@ -103,7 +102,7 @@ asked for it -->
|
|
||||||
android:contentDescription="@string/notification_app_settings"
|
|
||||||
android:src="@drawable/ic_info"
|
|
||||||
android:layout_toStartOf="@id/info"
|
|
||||||
- android:tint="?androidprv:attr/materialColorPrimary"/>
|
|
||||||
+ android:tint="@color/notification_guts_link_icon_tint"/>
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/info"
|
|
||||||
android:layout_width="@dimen/notification_importance_toggle_size"
|
|
||||||
@@ -112,7 +111,7 @@ asked for it -->
|
|
||||||
android:contentDescription="@string/notification_more_settings"
|
|
||||||
android:background="@drawable/ripple_drawable_20dp"
|
|
||||||
android:src="@drawable/ic_settings"
|
|
||||||
- android:tint="?androidprv:attr/materialColorPrimary"
|
|
||||||
+ android:tint="?android:attr/colorAccent"
|
|
||||||
android:layout_alignParentEnd="true" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notification_snooze.xml b/packages/SystemUI/res/layout/notification_snooze.xml
|
|
||||||
index ce09385eaf45..6608d8620f86 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notification_snooze.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notification_snooze.xml
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:paddingTop="2dp"
|
|
||||||
android:paddingBottom="2dp"
|
|
||||||
- android:background="?androidprv:attr/materialColorSurfaceContainerHigh"
|
|
||||||
+ android:background="?androidprv:attr/colorSurface"
|
|
||||||
android:theme="@style/Theme.SystemUI">
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:paddingStart="@*android:dimen/notification_content_margin_end"
|
|
||||||
- android:textColor="?androidprv:attr/materialColorOnSurface"
|
|
||||||
+ android:textColor="?android:attr/textColorPrimary"
|
|
||||||
android:paddingEnd="4dp"/>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
diff --git a/packages/SystemUI/res/layout/notification_snooze_option.xml b/packages/SystemUI/res/layout/notification_snooze_option.xml
|
|
||||||
index fa6f965198d4..d42cc0212fd8 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/notification_snooze_option.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/notification_snooze_option.xml
|
|
||||||
@@ -16,11 +16,10 @@
|
|
||||||
-->
|
|
||||||
<TextView
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@*android:dimen/notification_headerless_min_height"
|
|
||||||
android:layout_marginStart="@*android:dimen/notification_content_margin_end"
|
|
||||||
android:layout_marginEnd="@*android:dimen/notification_content_margin_end"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:textSize="14sp"
|
|
||||||
- android:textColor="?androidprv:attr/materialColorOnSurfaceVariant"/>
|
|
||||||
\ No newline at end of file
|
|
||||||
+ android:textColor="?android:attr/textColorSecondary"/>
|
|
||||||
\ No newline at end of file
|
|
||||||
diff --git a/packages/SystemUI/res/layout/status_bar_notification_footer.xml b/packages/SystemUI/res/layout/status_bar_notification_footer.xml
|
|
||||||
index 72424a13d0f1..c1bac3151049 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/status_bar_notification_footer.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/status_bar_notification_footer.xml
|
|
||||||
@@ -41,7 +41,7 @@
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
>
|
|
||||||
<com.android.systemui.statusbar.notification.row.FooterViewButton
|
|
||||||
- style="@style/TextAppearance.NotificationFooterButton"
|
|
||||||
+ style="@style/TextAppearance.NotificationSectionHeaderButton"
|
|
||||||
android:id="@+id/manage_text"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
@@ -54,11 +54,12 @@
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/dismiss_text"
|
|
||||||
android:background="@drawable/notif_footer_btn_background"
|
|
||||||
android:focusable="true"
|
|
||||||
+ android:textColor="@color/notif_pill_text"
|
|
||||||
android:contentDescription="@string/manage_notifications_history_text"
|
|
||||||
android:text="@string/manage_notifications_history_text"
|
|
||||||
/>
|
|
||||||
<com.android.systemui.statusbar.notification.row.FooterViewButton
|
|
||||||
- style="@style/TextAppearance.NotificationFooterButton"
|
|
||||||
+ style="@style/TextAppearance.NotificationSectionHeaderButton"
|
|
||||||
android:id="@+id/dismiss_text"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
@@ -69,6 +70,7 @@
|
|
||||||
app:layout_constraintStart_toEndOf="@id/manage_text"
|
|
||||||
android:background="@drawable/notif_footer_btn_background"
|
|
||||||
android:focusable="true"
|
|
||||||
+ android:textColor="@color/notif_pill_text"
|
|
||||||
android:contentDescription="@string/accessibility_clear_all"
|
|
||||||
android:text="@string/clear_all_notifications_text"
|
|
||||||
/>
|
|
||||||
diff --git a/packages/SystemUI/res/layout/status_bar_notification_section_header.xml b/packages/SystemUI/res/layout/status_bar_notification_section_header.xml
|
|
||||||
index 53abe87e7c12..c4d8d55f74e2 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/status_bar_notification_section_header.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/status_bar_notification_section_header.xml
|
|
||||||
@@ -40,7 +40,7 @@
|
|
||||||
android:layout_weight="1">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
- style="@style/TextAppearance.NotificationSectionHeaderLabel"
|
|
||||||
+ style="@style/TextAppearance.NotificationSectionHeaderButton"
|
|
||||||
android:id="@+id/header_label"
|
|
||||||
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 61a323d44dfc..ddf188e3f1d3 100644
|
|
||||||
--- a/packages/SystemUI/res/values-night/colors.xml
|
|
||||||
+++ b/packages/SystemUI/res/values-night/colors.xml
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
<!-- The color of the text inside a notification -->
|
|
||||||
<color name="notification_primary_text_color">@*android:color/notification_primary_text_color_dark</color>
|
|
||||||
|
|
||||||
- <color name="notif_pill_text">@android:color/system_on_surface_dark</color>
|
|
||||||
+ <color name="notif_pill_text">@color/material_dynamic_neutral95</color>
|
|
||||||
|
|
||||||
<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 46364820c5d5..846fd5736590 100644
|
|
||||||
--- a/packages/SystemUI/res/values/colors.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/colors.xml
|
|
||||||
@@ -121,7 +121,7 @@
|
|
||||||
<!-- Chosen so fill over background matches single tone -->
|
|
||||||
<color name="dark_mode_qs_icon_color_dual_tone_fill">#99000000</color>
|
|
||||||
|
|
||||||
- <color name="notif_pill_text">@android:color/system_on_surface_light</color>
|
|
||||||
+ <color name="notif_pill_text">@color/material_dynamic_neutral10</color>
|
|
||||||
|
|
||||||
<!-- 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 ce08ca3e43af..ae354d634f67 100644
|
|
||||||
--- a/packages/SystemUI/res/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/styles.xml
|
|
||||||
@@ -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>
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
+ <item name="android:textColor">@color/notification_guts_header_text_color</item>
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_channel_text</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.NotificationImportanceChannelGroup">
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_channel_group_text</item>
|
|
||||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
+ <item name="android:textColor">@color/notification_guts_header_text_color</item>
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_channel_group_text</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.NotificationImportanceApp">
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_channel_group_text</item>
|
|
||||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurfaceVariant</item>
|
|
||||||
+ <item name="android:textColor">@color/notification_guts_sub_text_color</item>
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_channel_group_text</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.NotificationImportanceHeader">
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_header_text</item>
|
|
||||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
+ <item name="android:textColor">@color/notification_guts_header_text_color</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.NotificationImportanceDetail">
|
|
||||||
<item name="android:textSize">@dimen/notification_importance_description_text</item>
|
|
||||||
<item name="android:fontFamily">@*android:string/config_bodyFontFamily</item>
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurfaceVariant</item>
|
|
||||||
+ <item name="android:textColor">@color/notification_guts_sub_text_color</item>
|
|
||||||
<item name="android:gravity">center</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
@@ -663,28 +663,10 @@
|
|
||||||
<item name="android:gravity">center</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
- <style
|
|
||||||
- name="TextAppearance.NotificationSectionHeaderLabel"
|
|
||||||
- parent="@android:style/Widget.DeviceDefault.Button.Borderless">
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
- <item name="android:textAllCaps">false</item>
|
|
||||||
- <item name="android:textSize">14sp</item>
|
|
||||||
- <item name="android:minWidth">0dp</item>
|
|
||||||
- </style>
|
|
||||||
-
|
|
||||||
<style
|
|
||||||
name="TextAppearance.NotificationSectionHeaderButton"
|
|
||||||
parent="@android:style/Widget.DeviceDefault.Button.Borderless">
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
- <item name="android:textAllCaps">false</item>
|
|
||||||
- <item name="android:textSize">14sp</item>
|
|
||||||
- <item name="android:minWidth">0dp</item>
|
|
||||||
- </style>
|
|
||||||
-
|
|
||||||
- <style
|
|
||||||
- name="TextAppearance.NotificationFooterButton"
|
|
||||||
- parent="@android:style/Widget.DeviceDefault.Button.Borderless">
|
|
||||||
- <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
||||||
<item name="android:textAllCaps">false</item>
|
|
||||||
<item name="android:textSize">14sp</item>
|
|
||||||
<item name="android:minWidth">0dp</item>
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java b/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
|
|
||||||
index 2338be28d32c..c9758471a30e 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
|
|
||||||
@@ -72,10 +72,10 @@ public class EmptyShadeView extends StackScrollerDecorView {
|
|
||||||
return findViewById(R.id.no_notifications_footer);
|
|
||||||
}
|
|
||||||
|
|
||||||
- public void setTextColors(@ColorInt int onSurface, @ColorInt int onSurfaceVariant) {
|
|
||||||
- mEmptyText.setTextColor(onSurfaceVariant);
|
|
||||||
- mEmptyFooterText.setTextColor(onSurface);
|
|
||||||
- mEmptyFooterText.setCompoundDrawableTintList(ColorStateList.valueOf(onSurface));
|
|
||||||
+ public void setTextColor(@ColorInt int color) {
|
|
||||||
+ mEmptyText.setTextColor(color);
|
|
||||||
+ mEmptyFooterText.setTextColor(color);
|
|
||||||
+ mEmptyFooterText.setCompoundDrawableTintList(ColorStateList.valueOf(color));
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
@@ -361,25 +361,26 @@ public class FooterView extends StackScrollerDecorView {
|
|
||||||
*/
|
|
||||||
public void updateColors() {
|
|
||||||
Resources.Theme theme = mContext.getTheme();
|
|
||||||
- final @ColorInt int onSurface = Utils.getColorAttrDefaultColor(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorOnSurface);
|
|
||||||
+ final @ColorInt int textColor = getResources().getColor(R.color.notif_pill_text, theme);
|
|
||||||
final Drawable clearAllBg = theme.getDrawable(R.drawable.notif_footer_btn_background);
|
|
||||||
final Drawable manageBg = theme.getDrawable(R.drawable.notif_footer_btn_background);
|
|
||||||
- if (!notificationBackgroundTintOptimization()) {
|
|
||||||
- final @ColorInt int scHigh = Utils.getColorAttrDefaultColor(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh);
|
|
||||||
- if (scHigh != 0) {
|
|
||||||
- final ColorFilter bgColorFilter = new PorterDuffColorFilter(scHigh, SRC_ATOP);
|
|
||||||
- clearAllBg.setColorFilter(bgColorFilter);
|
|
||||||
- manageBg.setColorFilter(bgColorFilter);
|
|
||||||
- }
|
|
||||||
+ // TODO(b/282173943): Remove redundant tinting once Resources are thread-safe
|
|
||||||
+ final @ColorInt int buttonBgColor =
|
|
||||||
+ Utils.getColorAttrDefaultColor(mContext, com.android.internal.R.attr.colorSurface);
|
|
||||||
+ final ColorFilter bgColorFilter = new PorterDuffColorFilter(buttonBgColor, SRC_ATOP);
|
|
||||||
+ if (buttonBgColor != 0) {
|
|
||||||
+ clearAllBg.setColorFilter(bgColorFilter);
|
|
||||||
+ manageBg.setColorFilter(bgColorFilter);
|
|
||||||
}
|
|
||||||
mClearAllButton.setBackground(clearAllBg);
|
|
||||||
- mClearAllButton.setTextColor(onSurface);
|
|
||||||
+ mClearAllButton.setTextColor(textColor);
|
|
||||||
mManageOrHistoryButton.setBackground(manageBg);
|
|
||||||
- mManageOrHistoryButton.setTextColor(onSurface);
|
|
||||||
- mSeenNotifsFooterTextView.setTextColor(onSurface);
|
|
||||||
- mSeenNotifsFooterTextView.setCompoundDrawableTintList(ColorStateList.valueOf(onSurface));
|
|
||||||
+ mManageOrHistoryButton.setTextColor(textColor);
|
|
||||||
+ final @ColorInt int labelTextColor =
|
|
||||||
+ Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorPrimary);
|
|
||||||
+ mSeenNotifsFooterTextView.setTextColor(labelTextColor);
|
|
||||||
+ mSeenNotifsFooterTextView.setCompoundDrawableTintList(
|
|
||||||
+ ColorStateList.valueOf(labelTextColor));
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
@@ -122,7 +122,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
|
||||||
|
|
||||||
private void updateColors() {
|
|
||||||
mNormalColor = Utils.getColorAttrDefaultColor(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh);
|
|
||||||
+ com.android.internal.R.attr.colorSurface);
|
|
||||||
mTintedRippleColor = mContext.getColor(
|
|
||||||
R.color.notification_ripple_tinted_color);
|
|
||||||
mNormalRippleColor = mContext.getColor(
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HybridNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HybridNotificationView.java
|
|
||||||
index da8c4dc08bf0..892a63505a71 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HybridNotificationView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HybridNotificationView.java
|
|
||||||
@@ -28,6 +28,7 @@ import android.widget.TextView;
|
|
||||||
|
|
||||||
import androidx.annotation.ColorInt;
|
|
||||||
|
|
||||||
+import com.android.internal.util.ContrastColorUtil;
|
|
||||||
import com.android.keyguard.AlphaOptimizedLinearLayout;
|
|
||||||
import com.android.systemui.res.R;
|
|
||||||
import com.android.systemui.statusbar.CrossFadeHelper;
|
|
||||||
@@ -97,8 +98,8 @@ public class HybridNotificationView extends AlphaOptimizedLinearLayout
|
|
||||||
private void resolveThemeTextColors() {
|
|
||||||
try (TypedArray ta = mContext.getTheme().obtainStyledAttributes(
|
|
||||||
android.R.style.Theme_DeviceDefault_DayNight, new int[]{
|
|
||||||
- com.android.internal.R.attr.materialColorOnSurface,
|
|
||||||
- com.android.internal.R.attr.materialColorOnSurfaceVariant
|
|
||||||
+ android.R.attr.textColorPrimary,
|
|
||||||
+ android.R.attr.textColorSecondary
|
|
||||||
})) {
|
|
||||||
if (ta != null) {
|
|
||||||
mPrimaryTextColor = ta.getColor(0, mPrimaryTextColor);
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java
|
|
||||||
index 14593cb1b381..62b268b90cf3 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java
|
|
||||||
@@ -65,10 +65,10 @@ import android.widget.TextView;
|
|
||||||
|
|
||||||
import com.android.internal.annotations.VisibleForTesting;
|
|
||||||
import com.android.settingslib.notification.ConversationIconFactory;
|
|
||||||
+import com.android.systemui.res.R;
|
|
||||||
import com.android.systemui.dagger.qualifiers.Background;
|
|
||||||
import com.android.systemui.dagger.qualifiers.Main;
|
|
||||||
import com.android.systemui.people.widget.PeopleSpaceWidgetManager;
|
|
||||||
-import com.android.systemui.res.R;
|
|
||||||
import com.android.systemui.shade.ShadeController;
|
|
||||||
import com.android.systemui.statusbar.notification.NotificationChannelHelper;
|
|
||||||
import com.android.systemui.statusbar.notification.collection.NotificationEntry;
|
|
||||||
@@ -336,11 +336,10 @@ public class NotificationConversationInfo extends LinearLayout implements
|
|
||||||
Drawable person = mIconFactory.getBaseIconDrawable(mShortcutInfo);
|
|
||||||
if (person == null) {
|
|
||||||
person = mContext.getDrawable(R.drawable.ic_person).mutate();
|
|
||||||
- TypedArray ta = mContext.obtainStyledAttributes(
|
|
||||||
- new int[]{com.android.internal.R.attr.materialColorPrimary});
|
|
||||||
- int colorPrimary = ta.getColor(0, 0);
|
|
||||||
+ TypedArray ta = mContext.obtainStyledAttributes(new int[]{android.R.attr.colorAccent});
|
|
||||||
+ int colorAccent = ta.getColor(0, 0);
|
|
||||||
ta.recycle();
|
|
||||||
- person.setTint(colorPrimary);
|
|
||||||
+ person.setTint(colorAccent);
|
|
||||||
}
|
|
||||||
ImageView image = findViewById(R.id.conversation_icon);
|
|
||||||
image.setImageDrawable(person);
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationViewWrapper.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationViewWrapper.java
|
|
||||||
index 50f3e7896442..6f602ff437eb 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationViewWrapper.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationViewWrapper.java
|
|
||||||
@@ -337,8 +337,7 @@ public abstract class NotificationViewWrapper implements TransformableView {
|
|
||||||
if (customBackgroundColor != 0) {
|
|
||||||
return customBackgroundColor;
|
|
||||||
}
|
|
||||||
- return Utils.getColorAttr(mView.getContext(),
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh)
|
|
||||||
+ return Utils.getColorAttr(mView.getContext(), android.R.attr.colorBackground)
|
|
||||||
.getDefaultColor();
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
@@ -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(
|
|
||||||
- new int[]{com.android.internal.R.attr.materialColorPrimary})) {
|
|
||||||
+ new int[]{com.android.internal.R.attr.colorAccent})) {
|
|
||||||
color = ta.getColor(0, color);
|
|
||||||
}
|
|
||||||
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 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(
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- fun setHeaderForegroundColors(@ColorInt onSurface: Int, @ColorInt onSurfaceVariant: Int) {
|
|
||||||
- peopleHeaderView?.setForegroundColors(onSurface, onSurfaceVariant)
|
|
||||||
- silentHeaderView?.setForegroundColors(onSurface, onSurfaceVariant)
|
|
||||||
- alertingHeaderView?.setForegroundColors(onSurface, onSurfaceVariant)
|
|
||||||
+ fun setHeaderForegroundColor(@ColorInt color: Int) {
|
|
||||||
+ peopleHeaderView?.setForegroundColor(color)
|
|
||||||
+ silentHeaderView?.setForegroundColor(color)
|
|
||||||
+ alertingHeaderView?.setForegroundColor(color)
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
@@ -351,7 +351,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|
||||||
private boolean mAnimateNextBackgroundTop;
|
|
||||||
private boolean mAnimateNextBackgroundBottom;
|
|
||||||
private boolean mAnimateNextSectionBoundsChange;
|
|
||||||
- private @ColorInt int mBgColor;
|
|
||||||
+ private int mBgColor;
|
|
||||||
private float mDimAmount;
|
|
||||||
private ValueAnimator mDimAnimator;
|
|
||||||
private final ArrayList<ExpandableView> mTmpSortedChildren = new ArrayList<>();
|
|
||||||
@@ -665,8 +665,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|
||||||
mSections = mSectionsManager.createSectionsForBuckets();
|
|
||||||
|
|
||||||
mAmbientState = Dependency.get(AmbientState.class);
|
|
||||||
- mBgColor = Utils.getColorAttr(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh).getDefaultColor();
|
|
||||||
+ mBgColor = Utils.getColorAttr(mContext, android.R.attr.colorBackgroundFloating)
|
|
||||||
+ .getDefaultColor();
|
|
||||||
int minHeight = res.getDimensionPixelSize(R.dimen.notification_min_height);
|
|
||||||
int maxHeight = res.getDimensionPixelSize(R.dimen.notification_max_height);
|
|
||||||
mSplitShadeMinContentHeight = res.getDimensionPixelSize(
|
|
||||||
@@ -810,8 +810,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateBgColor() {
|
|
||||||
- mBgColor = Utils.getColorAttr(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh).getDefaultColor();
|
|
||||||
+ mBgColor = Utils.getColorAttr(mContext, android.R.attr.colorBackgroundFloating)
|
|
||||||
+ .getDefaultColor();
|
|
||||||
updateBackgroundDimming();
|
|
||||||
for (int i = 0; i < getChildCount(); i++) {
|
|
||||||
View child = getChildAt(i);
|
|
||||||
@@ -4622,22 +4622,19 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
- * Update colors of section headers, shade footer, and empty shade views.
|
|
||||||
+ * Update colors of "dismiss" and "empty shade" views.
|
|
||||||
*/
|
|
||||||
void updateDecorViews() {
|
|
||||||
- final @ColorInt int onSurface = Utils.getColorAttrDefaultColor(
|
|
||||||
- mContext, com.android.internal.R.attr.materialColorOnSurface);
|
|
||||||
- final @ColorInt int onSurfaceVariant = Utils.getColorAttrDefaultColor(
|
|
||||||
- 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);
|
|
||||||
|
|
||||||
if (mFooterView != null) {
|
|
||||||
mFooterView.updateColors();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mEmptyShadeView != null) {
|
|
||||||
- mEmptyShadeView.setTextColors(onSurface, onSurfaceVariant);
|
|
||||||
+ mEmptyShadeView.setTextColor(textColor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/SectionHeaderView.java
|
|
||||||
@@ -132,8 +132,8 @@ public class SectionHeaderView extends StackScrollerDecorView {
|
|
||||||
mLabelView.setText(resId);
|
|
||||||
}
|
|
||||||
|
|
||||||
- void setForegroundColors(@ColorInt int onSurface, @ColorInt int onSurfaceVariant) {
|
|
||||||
- mLabelView.setTextColor(onSurface);
|
|
||||||
- mClearAllButton.setImageTintList(ColorStateList.valueOf(onSurfaceVariant));
|
|
||||||
+ void setForegroundColor(@ColorInt int color) {
|
|
||||||
+ mLabelView.setTextColor(color);
|
|
||||||
+ mClearAllButton.setImageTintList(ColorStateList.valueOf(color));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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 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
|
|
||||||
@@ -1555,9 +1555,8 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
|
||||||
private void updateThemeColors() {
|
|
||||||
if (mScrimBehind == null) return;
|
|
||||||
int background = Utils.getColorAttr(mScrimBehind.getContext(),
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceDim).getDefaultColor();
|
|
||||||
- int accent = Utils.getColorAttr(mScrimBehind.getContext(),
|
|
||||||
- com.android.internal.R.attr.materialColorPrimary).getDefaultColor();
|
|
||||||
+ android.R.attr.colorBackgroundFloating).getDefaultColor();
|
|
||||||
+ int accent = Utils.getColorAccent(mScrimBehind.getContext()).getDefaultColor();
|
|
||||||
mColors.setMainColor(background);
|
|
||||||
mColors.setSecondaryColor(accent);
|
|
||||||
final boolean isBackgroundLight = !ContrastColorUtil.isColorDark(background);
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
|
|
||||||
index 66ac17eee545..a033e1d55333 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
|
|
||||||
@@ -20,7 +20,6 @@ import android.animation.Animator;
|
|
||||||
import android.animation.AnimatorListenerAdapter;
|
|
||||||
import android.animation.AnimatorSet;
|
|
||||||
import android.animation.ObjectAnimator;
|
|
||||||
-import android.annotation.ColorInt;
|
|
||||||
import android.content.Context;
|
|
||||||
import android.util.AttributeSet;
|
|
||||||
import android.view.View;
|
|
||||||
@@ -29,7 +28,6 @@ import android.widget.TextView;
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
-import com.android.settingslib.Utils;
|
|
||||||
import com.android.systemui.res.R;
|
|
||||||
import com.android.wm.shell.animation.Interpolators;
|
|
||||||
|
|
||||||
@@ -51,9 +49,8 @@ public class TapAgainView extends TextView {
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateColor() {
|
|
||||||
- final @ColorInt int onSurface = Utils.getColorAttrDefaultColor(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorOnSurface);
|
|
||||||
- setTextColor(onSurface);
|
|
||||||
+ int textColor = getResources().getColor(R.color.notif_pill_text, mContext.getTheme());
|
|
||||||
+ setTextColor(textColor);
|
|
||||||
setBackground(getResources().getDrawable(R.drawable.rounded_bg_full, mContext.getTheme()));
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
private ImageView mDelete;
|
|
||||||
private ImageView mDeleteBg;
|
|
||||||
private boolean mColorized;
|
|
||||||
- private int mLastBackgroundColor;
|
|
||||||
+ private int mTint;
|
|
||||||
private boolean mResetting;
|
|
||||||
@Nullable
|
|
||||||
private RevealParams mRevealParams;
|
|
||||||
@@ -181,9 +181,10 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
|
||||||
mEditorActionHandler = new EditorActionHandler();
|
|
||||||
mUiEventLogger = Dependency.get(UiEventLogger.class);
|
|
||||||
TypedArray ta = getContext().getTheme().obtainStyledAttributes(new int[]{
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceDim,
|
|
||||||
+ com.android.internal.R.attr.colorAccent,
|
|
||||||
+ com.android.internal.R.attr.colorSurface,
|
|
||||||
});
|
|
||||||
- mLastBackgroundColor = ta.getColor(0, 0);
|
|
||||||
+ mTint = ta.getColor(0, 0);
|
|
||||||
ta.recycle();
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -209,9 +210,9 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
|
||||||
* @param backgroundColor colorized notification color
|
|
||||||
*/
|
|
||||||
public void setBackgroundTintColor(final int backgroundColor, boolean colorized) {
|
|
||||||
- if (colorized == mColorized && backgroundColor == mLastBackgroundColor) return;
|
|
||||||
+ if (colorized == mColorized && backgroundColor == mTint) return;
|
|
||||||
mColorized = colorized;
|
|
||||||
- mLastBackgroundColor = backgroundColor;
|
|
||||||
+ mTint = backgroundColor;
|
|
||||||
final int editBgColor;
|
|
||||||
final int deleteBgColor;
|
|
||||||
final int deleteFgColor;
|
|
||||||
@@ -236,8 +237,8 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
|
||||||
hintColor = mContext.getColor(R.color.remote_input_hint);
|
|
||||||
deleteFgColor = textColor.getDefaultColor();
|
|
||||||
try (TypedArray ta = getContext().getTheme().obtainStyledAttributes(new int[]{
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceDim,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceVariant
|
|
||||||
+ com.android.internal.R.attr.colorSurfaceHighlight,
|
|
||||||
+ com.android.internal.R.attr.colorSurfaceVariant
|
|
||||||
})) {
|
|
||||||
editBgColor = ta.getColor(0, backgroundColor);
|
|
||||||
deleteBgColor = ta.getColor(1, Color.GRAY);
|
|
||||||
diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationViewTest.kt b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationViewTest.kt
|
|
||||||
index 9b9cb8213c91..ccef1d56c6a0 100644
|
|
||||||
--- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationViewTest.kt
|
|
||||||
+++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ActivatableNotificationViewTest.kt
|
|
||||||
@@ -61,9 +61,8 @@ class ActivatableNotificationViewTest : SysuiTestCase() {
|
|
||||||
else -> null
|
|
||||||
} as T?
|
|
||||||
}
|
|
||||||
-
|
|
||||||
- mNormalColor = Utils.getColorAttrDefaultColor(mContext,
|
|
||||||
- com.android.internal.R.attr.materialColorSurfaceContainerHigh)
|
|
||||||
+ mNormalColor =
|
|
||||||
+ Utils.getColorAttrDefaultColor(mContext, com.android.internal.R.attr.colorSurface)
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,181 +0,0 @@
|
|||||||
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 19/43] Revert "Update framework to new notification color
|
|
||||||
spec"
|
|
||||||
|
|
||||||
This reverts commit 6063e254e0cc84243e3a3fb85fe1bff71b302a87.
|
|
||||||
---
|
|
||||||
core/java/android/app/Notification.java | 50 ++++---------------
|
|
||||||
core/res/res/values/colors.xml | 9 ++--
|
|
||||||
.../src/android/app/NotificationTest.java | 9 ----
|
|
||||||
3 files changed, 15 insertions(+), 53 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
|
|
||||||
index baecf785a8af..671b8d4153c5 100644
|
|
||||||
--- a/core/java/android/app/Notification.java
|
|
||||||
+++ b/core/java/android/app/Notification.java
|
|
||||||
@@ -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) {
|
|
||||||
- pillColor = Colors.flattenAlpha(
|
|
||||||
- getColors(p).getTertiaryFixedDimAccentColor(), bgColor);
|
|
||||||
+ pillColor = Colors.flattenAlpha(getColors(p).getTertiaryAccentColor(), bgColor);
|
|
||||||
textColor = Colors.flattenAlpha(
|
|
||||||
getColors(p).getOnTertiaryAccentTextColor(), pillColor);
|
|
||||||
}
|
|
||||||
@@ -12944,9 +12943,6 @@ public class Notification implements Parcelable
|
|
||||||
private int mSecondaryAccentColor = COLOR_INVALID;
|
|
||||||
private int mTertiaryAccentColor = COLOR_INVALID;
|
|
||||||
private int mOnTertiaryAccentTextColor = COLOR_INVALID;
|
|
||||||
- private int mTertiaryFixedDimAccentColor = COLOR_INVALID;
|
|
||||||
- private int mOnTertiaryFixedAccentTextColor = COLOR_INVALID;
|
|
||||||
-
|
|
||||||
private int mErrorColor = COLOR_INVALID;
|
|
||||||
private int mContrastColor = COLOR_INVALID;
|
|
||||||
private int mRippleAlpha = 0x33;
|
|
||||||
@@ -13004,7 +13000,7 @@ public class Notification implements Parcelable
|
|
||||||
|
|
||||||
if (isColorized) {
|
|
||||||
if (rawColor == COLOR_DEFAULT) {
|
|
||||||
- int[] attrs = {R.attr.materialColorSecondary};
|
|
||||||
+ int[] attrs = {R.attr.colorAccentSecondary};
|
|
||||||
try (TypedArray ta = obtainDayNightAttributes(ctx, attrs)) {
|
|
||||||
mBackgroundColor = getColor(ta, 0, Color.WHITE);
|
|
||||||
}
|
|
||||||
@@ -13022,21 +13018,17 @@ public class Notification implements Parcelable
|
|
||||||
mSecondaryAccentColor = mSecondaryTextColor;
|
|
||||||
mTertiaryAccentColor = flattenAlpha(mPrimaryTextColor, mBackgroundColor);
|
|
||||||
mOnTertiaryAccentTextColor = mBackgroundColor;
|
|
||||||
- mTertiaryFixedDimAccentColor = mTertiaryAccentColor;
|
|
||||||
- mOnTertiaryFixedAccentTextColor = mOnTertiaryAccentTextColor;
|
|
||||||
mErrorColor = mPrimaryTextColor;
|
|
||||||
mRippleAlpha = 0x33;
|
|
||||||
} else {
|
|
||||||
int[] attrs = {
|
|
||||||
- R.attr.materialColorSurfaceContainerHigh,
|
|
||||||
- R.attr.materialColorOnSurface,
|
|
||||||
- R.attr.materialColorOnSurfaceVariant,
|
|
||||||
- R.attr.materialColorPrimary,
|
|
||||||
- R.attr.materialColorSecondary,
|
|
||||||
- R.attr.materialColorTertiary,
|
|
||||||
- R.attr.materialColorOnTertiary,
|
|
||||||
- R.attr.materialColorTertiaryFixedDim,
|
|
||||||
- R.attr.materialColorOnTertiaryFixed,
|
|
||||||
+ R.attr.colorSurface,
|
|
||||||
+ R.attr.textColorPrimary,
|
|
||||||
+ R.attr.textColorSecondary,
|
|
||||||
+ R.attr.colorAccent,
|
|
||||||
+ R.attr.colorAccentSecondary,
|
|
||||||
+ R.attr.colorAccentTertiary,
|
|
||||||
+ R.attr.textColorOnAccent,
|
|
||||||
R.attr.colorError,
|
|
||||||
R.attr.colorControlHighlight
|
|
||||||
};
|
|
||||||
@@ -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);
|
|
||||||
- mTertiaryFixedDimAccentColor = getColor(ta, 7, COLOR_INVALID);
|
|
||||||
- mOnTertiaryFixedAccentTextColor = getColor(ta, 8, COLOR_INVALID);
|
|
||||||
- mErrorColor = getColor(ta, 9, COLOR_INVALID);
|
|
||||||
- mRippleAlpha = Color.alpha(getColor(ta, 10, 0x33ffffff));
|
|
||||||
+ mErrorColor = getColor(ta, 7, COLOR_INVALID);
|
|
||||||
+ mRippleAlpha = Color.alpha(getColor(ta, 8, 0x33ffffff));
|
|
||||||
}
|
|
||||||
mContrastColor = calculateContrastColor(ctx, rawColor, mPrimaryAccentColor,
|
|
||||||
mBackgroundColor, nightMode);
|
|
||||||
@@ -13079,14 +13069,6 @@ public class Notification implements Parcelable
|
|
||||||
ContrastColorUtil.resolvePrimaryColor(
|
|
||||||
ctx, mTertiaryAccentColor, nightMode), 0xFF);
|
|
||||||
}
|
|
||||||
- if (mTertiaryFixedDimAccentColor == COLOR_INVALID) {
|
|
||||||
- mTertiaryFixedDimAccentColor = mContrastColor;
|
|
||||||
- }
|
|
||||||
- if (mOnTertiaryFixedAccentTextColor == COLOR_INVALID) {
|
|
||||||
- mOnTertiaryFixedAccentTextColor = ColorUtils.setAlphaComponent(
|
|
||||||
- ContrastColorUtil.resolvePrimaryColor(
|
|
||||||
- ctx, mTertiaryFixedDimAccentColor, nightMode), 0xFF);
|
|
||||||
- }
|
|
||||||
if (mErrorColor == COLOR_INVALID) {
|
|
||||||
mErrorColor = mPrimaryTextColor;
|
|
||||||
}
|
|
||||||
@@ -13160,16 +13142,6 @@ public class Notification implements Parcelable
|
|
||||||
return mOnTertiaryAccentTextColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
- /** @return the theme's tertiary fixed dim accent color for colored UI elements. */
|
|
||||||
- public @ColorInt int getTertiaryFixedDimAccentColor() {
|
|
||||||
- return mTertiaryFixedDimAccentColor;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- /** @return the theme's text color to be used on the tertiary fixed accent color. */
|
|
||||||
- public @ColorInt int getOnTertiaryFixedAccentTextColor() {
|
|
||||||
- return mOnTertiaryFixedAccentTextColor;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
/**
|
|
||||||
* @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 d8191c0c3597..b4139f343fa5 100644
|
|
||||||
--- a/core/res/res/values/colors.xml
|
|
||||||
+++ b/core/res/res/values/colors.xml
|
|
||||||
@@ -135,12 +135,11 @@
|
|
||||||
<drawable name="notification_template_icon_low_bg">#0cffffff</drawable>
|
|
||||||
<drawable name="notification_template_divider">#29000000</drawable>
|
|
||||||
<drawable name="notification_template_divider_media">#29ffffff</drawable>
|
|
||||||
- <color name="notification_primary_text_color_light">@color/system_on_surface_light</color>
|
|
||||||
- <color name="notification_primary_text_color_dark">@color/system_on_surface_dark</color>
|
|
||||||
- <!-- Note that the primary and secondary notification text colors are, in fact, the same. -->
|
|
||||||
- <color name="notification_secondary_text_color_light">@color/system_on_surface_light</color>
|
|
||||||
- <color name="notification_secondary_text_color_dark">@color/system_on_surface_dark</color>
|
|
||||||
+ <color name="notification_primary_text_color_light">@color/primary_text_default_material_light</color>
|
|
||||||
+ <color name="notification_primary_text_color_dark">@color/primary_text_default_material_dark</color>
|
|
||||||
+ <color name="notification_secondary_text_color_light">@color/primary_text_default_material_light</color>
|
|
||||||
<item name="notification_secondary_text_disabled_alpha" format="float" type="dimen">0.38</item>
|
|
||||||
+ <color name="notification_secondary_text_color_dark">@color/primary_text_default_material_dark</color>
|
|
||||||
<color name="notification_default_color_dark">#ddffffff</color>
|
|
||||||
<color name="notification_default_color_light">#a3202124</color>
|
|
||||||
|
|
||||||
diff --git a/core/tests/coretests/src/android/app/NotificationTest.java b/core/tests/coretests/src/android/app/NotificationTest.java
|
|
||||||
index 5b0502da1bdf..297f8254ded1 100644
|
|
||||||
--- a/core/tests/coretests/src/android/app/NotificationTest.java
|
|
||||||
+++ b/core/tests/coretests/src/android/app/NotificationTest.java
|
|
||||||
@@ -859,10 +859,6 @@ public class NotificationTest {
|
|
||||||
assertEquals(cDay.getTertiaryAccentColor(), cNight.getTertiaryAccentColor());
|
|
||||||
assertEquals(cDay.getOnTertiaryAccentTextColor(),
|
|
||||||
cNight.getOnTertiaryAccentTextColor());
|
|
||||||
- assertEquals(cDay.getTertiaryFixedDimAccentColor(),
|
|
||||||
- cNight.getTertiaryFixedDimAccentColor());
|
|
||||||
- assertEquals(cDay.getOnTertiaryFixedAccentTextColor(),
|
|
||||||
- cNight.getOnTertiaryFixedAccentTextColor());
|
|
||||||
assertEquals(cDay.getProtectionColor(), cNight.getProtectionColor());
|
|
||||||
assertEquals(cDay.getContrastColor(), cNight.getContrastColor());
|
|
||||||
assertEquals(cDay.getRippleAlpha(), cNight.getRippleAlpha());
|
|
||||||
@@ -1844,8 +1840,6 @@ public class NotificationTest {
|
|
||||||
assertThat(c.getSecondaryAccentColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
assertThat(c.getTertiaryAccentColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
assertThat(c.getOnTertiaryAccentTextColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
- assertThat(c.getTertiaryFixedDimAccentColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
- assertThat(c.getOnTertiaryFixedAccentTextColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
assertThat(c.getErrorColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
assertThat(c.getContrastColor()).isNotEqualTo(Notification.COLOR_INVALID);
|
|
||||||
assertThat(c.getRippleAlpha()).isAtLeast(0x00);
|
|
||||||
@@ -1861,12 +1855,9 @@ public class NotificationTest {
|
|
||||||
// These colors are only used for emphasized buttons; they do not need contrast
|
|
||||||
assertContrastIsAtLeast(c.getSecondaryAccentColor(), c.getBackgroundColor(), 1);
|
|
||||||
assertContrastIsAtLeast(c.getTertiaryAccentColor(), c.getBackgroundColor(), 1);
|
|
||||||
- assertContrastIsAtLeast(c.getTertiaryFixedDimAccentColor(), c.getBackgroundColor(), 1);
|
|
||||||
|
|
||||||
// The text that is used within the accent color DOES need to have contrast
|
|
||||||
assertContrastIsAtLeast(c.getOnTertiaryAccentTextColor(), c.getTertiaryAccentColor(), 4.5);
|
|
||||||
- assertContrastIsAtLeast(c.getOnTertiaryFixedAccentTextColor(),
|
|
||||||
- c.getTertiaryFixedDimAccentColor(), 4.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void resolveColorsInNightMode(boolean nightMode, Notification.Colors c, int rawColor,
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
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 20/43] Revert "Make QS always use dark theme colors"
|
|
||||||
|
|
||||||
This reverts commit d62f7249f9e3222da95ecf6816601c408aac6be5.
|
|
||||||
|
|
||||||
This is a prerequisite for making the QS panel follow the light system
|
|
||||||
theme setting.
|
|
||||||
|
|
||||||
Change-Id: Iac4c96ccb3845812ca3df820bf27dc533816f72e
|
|
||||||
---
|
|
||||||
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 ae354d634f67..7422d5a14221 100644
|
|
||||||
--- a/packages/SystemUI/res/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/styles.xml
|
|
||||||
@@ -412,7 +412,7 @@
|
|
||||||
<item name="containerStyle">@style/AuthCredentialPinPasswordContainerStyle</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
- <style name="Theme.SystemUI.QuickSettings" parent="@*android:style/Theme.DeviceDefault">
|
|
||||||
+ <style name="Theme.SystemUI.QuickSettings" parent="@*android:style/Theme.DeviceDefault.SystemUI">
|
|
||||||
<item name="isQsTheme">true</item>
|
|
||||||
<item name="lightIconTheme">@style/QSIconTheme</item>
|
|
||||||
<item name="darkIconTheme">@style/QSIconTheme</item>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
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 21/43] Revert "Do not re-inflate QS and SB when
|
|
||||||
CONFIG_UI_MODE"
|
|
||||||
|
|
||||||
This reverts commit 8a40ff855b86bc86e23367017002289920855a4e.
|
|
||||||
|
|
||||||
This is a prerequisite for making the QS panel follow the light system
|
|
||||||
mode setting.
|
|
||||||
|
|
||||||
Change-Id: Ibad399ece587505559cc73febdda2f2d8558e94d
|
|
||||||
---
|
|
||||||
.../com/android/systemui/fragments/FragmentHostManager.java | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
index 81a520661cfe..5e0b34db0965 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
@@ -59,7 +59,8 @@ public class FragmentHostManager {
|
|
||||||
private final LeakDetector mLeakDetector;
|
|
||||||
private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
|
|
||||||
ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
|
|
||||||
- | ActivityInfo.CONFIG_ASSETS_PATHS);
|
|
||||||
+ | ActivityInfo.CONFIG_ASSETS_PATHS
|
|
||||||
+ | ActivityInfo.CONFIG_UI_MODE);
|
|
||||||
private final FragmentService mManager;
|
|
||||||
private final ExtensionFragmentManager mPlugins = new ExtensionFragmentManager();
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,212 +0,0 @@
|
|||||||
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 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
|
|
||||||
also looks out-of-place next to QS tiles and the notification panel
|
|
||||||
because dynamic themes don't affect it at all.
|
|
||||||
|
|
||||||
Revert to the ~Beta 1 style where quick settings used the same theme as
|
|
||||||
the notification shade.
|
|
||||||
|
|
||||||
- colorAccentPrimary has been replaced with colorAccent for contrast in
|
|
||||||
light mode, because colorAccentPrimary is system_accent1_100 (dark
|
|
||||||
accent color)
|
|
||||||
- Footer chips have been converted to surfaces (similar to QS tiles and
|
|
||||||
notifications), which makes more sense with the new style
|
|
||||||
- The QS background is now the same as the notification shade background
|
|
||||||
in both light and dark modes
|
|
||||||
|
|
||||||
Demo screenshots (with dual-tone commit):
|
|
||||||
https://twitter.com/kdrag0n/status/1445922541218922496
|
|
||||||
|
|
||||||
[kdrag0n: ported to 12L]
|
|
||||||
[neobuddy89: adapted for 14QPR1]
|
|
||||||
|
|
||||||
TODO: Fix QS customizer background in light theme
|
|
||||||
|
|
||||||
Change-Id: I3d45b72f0f119e100505409d178ab8f698993881
|
|
||||||
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 | 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
|
|
||||||
--- a/packages/SystemUI/res/values-night/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values-night/styles.xml
|
|
||||||
@@ -14,7 +14,8 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
+ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
|
|
||||||
<style name="Theme.SystemUI.DayNightDialog" parent="@android:style/Theme.DeviceDefault.Dialog"/>
|
|
||||||
|
|
||||||
@@ -24,6 +25,34 @@
|
|
||||||
<item name="android:windowIsFloating">true</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
+ <style name="Theme.SystemUI.QuickSettings" parent="@*android:style/Theme.DeviceDefault.SystemUI">
|
|
||||||
+ <item name="isQsTheme">true</item>
|
|
||||||
+ <item name="lightIconTheme">@style/QSIconTheme</item>
|
|
||||||
+ <item name="darkIconTheme">@style/QSIconTheme</item>
|
|
||||||
+ <item name="android:colorError">@*android:color/error_color_material_dark</item>
|
|
||||||
+ <item name="android:windowIsFloating">true</item>
|
|
||||||
+ <item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
|
||||||
+
|
|
||||||
+ <item name="surfaceBright">?androidprv:attr/materialColorSurfaceBright</item>
|
|
||||||
+ <item name="android:colorBackground">?attr/surfaceBright</item>
|
|
||||||
+ <item name="scHigh">?androidprv:attr/materialColorSurfaceContainerHigh</item>
|
|
||||||
+ <item name="primary">?androidprv:attr/materialColorPrimary</item>
|
|
||||||
+ <item name="tertiary">?androidprv:attr/materialColorTertiary</item>
|
|
||||||
+ <item name="onSurface">?androidprv:attr/materialColorOnSurface</item>
|
|
||||||
+ <item name="onSurfaceVariant">?androidprv:attr/materialColorOnSurfaceVariant</item>
|
|
||||||
+ <item name="outline">?androidprv:attr/materialColorOutline</item>
|
|
||||||
+
|
|
||||||
+ <item name="shadeActive">?android:attr/colorAccent</item>
|
|
||||||
+ <item name="onShadeActive">?android:attr/textColorPrimaryInverse</item>
|
|
||||||
+ <item name="onShadeActiveVariant">?android:attr/textColorSecondaryInverse</item>
|
|
||||||
+ <item name="shadeInactive">@android:color/system_neutral1_800</item>
|
|
||||||
+ <item name="onShadeInactive">?android:attr/textColorPrimary</item>
|
|
||||||
+ <item name="onShadeInactiveVariant">?android:attr/textColorSecondary</item>
|
|
||||||
+ <item name="shadeDisabled">@color/shade_disabled</item>
|
|
||||||
+ <item name="underSurface">@android:color/system_neutral1_900</item>
|
|
||||||
+ <item name="android:itemTextAppearance">@style/Control.MenuItem</item>
|
|
||||||
+ </style>
|
|
||||||
+
|
|
||||||
<!-- Screenshots -->
|
|
||||||
<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 7422d5a14221..0ac7e82fa42b 100644
|
|
||||||
--- a/packages/SystemUI/res/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/styles.xml
|
|
||||||
@@ -416,7 +416,7 @@
|
|
||||||
<item name="isQsTheme">true</item>
|
|
||||||
<item name="lightIconTheme">@style/QSIconTheme</item>
|
|
||||||
<item name="darkIconTheme">@style/QSIconTheme</item>
|
|
||||||
- <item name="android:colorError">@*android:color/error_color_material_dark</item>
|
|
||||||
+ <item name="android:colorError">@*android:color/error_color_material_light</item>
|
|
||||||
<item name="android:windowIsFloating">true</item>
|
|
||||||
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
|
||||||
|
|
||||||
@@ -429,14 +429,14 @@
|
|
||||||
<item name="onSurfaceVariant">?androidprv:attr/materialColorOnSurfaceVariant</item>
|
|
||||||
<item name="outline">?androidprv:attr/materialColorOutline</item>
|
|
||||||
|
|
||||||
- <item name="shadeActive">@color/material_dynamic_primary90</item>
|
|
||||||
- <item name="onShadeActive">@color/material_dynamic_primary10</item>
|
|
||||||
- <item name="onShadeActiveVariant">@color/material_dynamic_primary30</item>
|
|
||||||
- <item name="shadeInactive">@color/material_dynamic_neutral20</item>
|
|
||||||
- <item name="onShadeInactive">@color/material_dynamic_neutral90</item>
|
|
||||||
- <item name="onShadeInactiveVariant">@color/material_dynamic_neutral_variant80</item>
|
|
||||||
- <item name="shadeDisabled">@color/shade_disabled</item>
|
|
||||||
- <item name="underSurface">@color/material_dynamic_neutral0</item>
|
|
||||||
+ <item name="shadeActive">?android:attr/colorAccent</item>
|
|
||||||
+ <item name="onShadeActive">?android:attr/textColorPrimaryInverse</item>
|
|
||||||
+ <item name="onShadeActiveVariant">?android:attr/textColorSecondaryInverse</item>
|
|
||||||
+ <item name="shadeInactive">@*android:color/surface_light</item>
|
|
||||||
+ <item name="onShadeInactive">?android:attr/textColorPrimary</item>
|
|
||||||
+ <item name="onShadeInactiveVariant">?android:attr/textColorSecondary</item>
|
|
||||||
+ <item name="shadeDisabled">@*android:color/surface_light</item>
|
|
||||||
+ <item name="underSurface">@android:color/system_neutral1_100</item>
|
|
||||||
<item name="android:itemTextAppearance">@style/Control.MenuItem</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
@@ -686,7 +686,7 @@
|
|
||||||
|
|
||||||
<style name="QSCustomizeToolbar" parent="@*android:style/Widget.DeviceDefault.Toolbar">
|
|
||||||
<item name="android:textColor">?attr/onSurface</item>
|
|
||||||
- <item name="android:elevation">10dp</item>
|
|
||||||
+ <item name="android:elevation">0dp</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<!-- 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 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
|
|
||||||
@@ -997,7 +997,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
|
||||||
mNotificationsAlpha = behindAlpha;
|
|
||||||
mNotificationsTint = behindTint;
|
|
||||||
mBehindAlpha = 1;
|
|
||||||
- mBehindTint = Color.BLACK;
|
|
||||||
+ mBehindTint = Color.TRANSPARENT;
|
|
||||||
} else {
|
|
||||||
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 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
|
|
||||||
@@ -83,7 +83,7 @@ public enum ScrimState {
|
|
||||||
mBehindAlpha = mClipQsScrim ? 1 : mScrimBehindAlphaKeyguard;
|
|
||||||
mNotifAlpha = mClipQsScrim ? mScrimBehindAlphaKeyguard : 0;
|
|
||||||
if (mClipQsScrim) {
|
|
||||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
|
||||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
@@ -123,7 +123,7 @@ public enum ScrimState {
|
|
||||||
@Override
|
|
||||||
public void prepare(ScrimState previousState) {
|
|
||||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
|
||||||
- mBehindTint = mClipQsScrim ? mBackgroundColor : mSurfaceColor;
|
|
||||||
+ mBehindTint = mSurfaceColor;
|
|
||||||
mNotifAlpha = mClipQsScrim ? mDefaultScrimAlpha : 0;
|
|
||||||
mNotifTint = Color.TRANSPARENT;
|
|
||||||
mFrontAlpha = 0f;
|
|
||||||
@@ -155,10 +155,10 @@ public enum ScrimState {
|
|
||||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
|
||||||
mNotifAlpha = 1f;
|
|
||||||
mFrontAlpha = 0f;
|
|
||||||
- mBehindTint = mClipQsScrim ? Color.TRANSPARENT : mBackgroundColor;
|
|
||||||
+ mBehindTint = Color.TRANSPARENT;
|
|
||||||
|
|
||||||
if (mClipQsScrim) {
|
|
||||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
|
||||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
@@ -259,22 +259,22 @@ public enum ScrimState {
|
|
||||||
&& !fromAod;
|
|
||||||
|
|
||||||
mFrontTint = Color.TRANSPARENT;
|
|
||||||
- mBehindTint = mBackgroundColor;
|
|
||||||
+ mBehindTint = Color.TRANSPARENT;
|
|
||||||
mBlankScreen = false;
|
|
||||||
|
|
||||||
if (mDisplayRequiresBlanking && previousState == ScrimState.AOD) {
|
|
||||||
// Set all scrims black, before they fade transparent.
|
|
||||||
- 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 = mBackgroundColor;
|
|
||||||
- mBehindTint = mBackgroundColor;
|
|
||||||
+ mFrontTint = Color.BLACK;
|
|
||||||
+ mBehindTint = Color.TRANSPARENT;
|
|
||||||
mBlankScreen = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mClipQsScrim) {
|
|
||||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, mBackgroundColor);
|
|
||||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
|||||||
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 23/43] SystemUI: Use themewrapper for QSCustomizer and tune
|
|
||||||
colorUnavailable
|
|
||||||
|
|
||||||
* Restores behvavior from A13 for colorUnavailable, shadeDisabled is now unused.
|
|
||||||
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
.../com/android/systemui/qs/customize/QSCustomizer.java | 9 ++++++---
|
|
||||||
.../com/android/systemui/qs/tileimpl/QSTileViewImpl.kt | 2 +-
|
|
||||||
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 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;
|
|
||||||
import android.util.AttributeSet;
|
|
||||||
import android.util.TypedValue;
|
|
||||||
import android.view.LayoutInflater;
|
|
||||||
+import android.view.ContextThemeWrapper;
|
|
||||||
import android.view.Menu;
|
|
||||||
import android.view.MenuItem;
|
|
||||||
import android.view.View;
|
|
||||||
@@ -70,13 +71,15 @@ public class QSCustomizer extends LinearLayout {
|
|
||||||
public QSCustomizer(Context context, AttributeSet attrs) {
|
|
||||||
super(context, attrs);
|
|
||||||
|
|
||||||
- LayoutInflater.from(getContext()).inflate(R.layout.qs_customize_panel_content, this);
|
|
||||||
+ Context themedContext =
|
|
||||||
+ 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));
|
|
||||||
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);
|
|
||||||
mToolbar.setNavigationIcon(
|
|
||||||
- getResources().getDrawable(value.resourceId, mContext.getTheme()));
|
|
||||||
+ getResources().getDrawable(value.resourceId, themedContext.getTheme()));
|
|
||||||
|
|
||||||
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 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(
|
|
||||||
|
|
||||||
private val colorActive = Utils.getColorAttrDefaultColor(context, R.attr.shadeActive)
|
|
||||||
private val colorInactive = Utils.getColorAttrDefaultColor(context, R.attr.shadeInactive)
|
|
||||||
- private val colorUnavailable = Utils.getColorAttrDefaultColor(context, R.attr.shadeDisabled)
|
|
||||||
+ private val colorUnavailable = Utils.applyAlpha(UNAVAILABLE_ALPHA, colorInactive)
|
|
||||||
|
|
||||||
private val overlayColorActive = Utils.applyAlpha(
|
|
||||||
/* alpha= */ 0.11f,
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
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 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
|
|
||||||
because the new views become visible before states are refreshed.
|
|
||||||
|
|
||||||
Initializing tiles in the inactive state is much less disruptive, and
|
|
||||||
the effect is very hard to see as compared to the active color because
|
|
||||||
the background color is much less prominent.
|
|
||||||
|
|
||||||
Change-Id: I048171d503f5533e91bab486b8805ac15c329f31
|
|
||||||
---
|
|
||||||
.../plugin/src/com/android/systemui/plugins/qs/QSTile.java | 2 +-
|
|
||||||
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 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 {
|
|
||||||
@ProvidesInterface(version = State.VERSION)
|
|
||||||
public static class State {
|
|
||||||
public static final int VERSION = 1;
|
|
||||||
- public static final int DEFAULT_STATE = Tile.STATE_ACTIVE;
|
|
||||||
+ public static final int DEFAULT_STATE = Tile.STATE_INACTIVE;
|
|
||||||
|
|
||||||
public Icon icon;
|
|
||||||
public Supplier<Icon> iconSupplier;
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,136 +0,0 @@
|
|||||||
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 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,
|
|
||||||
and we don't necessarily have to give it up just because our QS has
|
|
||||||
light and dark themes.
|
|
||||||
|
|
||||||
To preserve the dual-tone effect, use a darker background color for the
|
|
||||||
QS section:
|
|
||||||
|
|
||||||
Light:
|
|
||||||
Notifications: neutral1 20 (surface_light)
|
|
||||||
Notification panel: neutral1 50 (light BG)
|
|
||||||
QS background: neutral1 100 (darker light BG / surface_header_light)
|
|
||||||
Inactive QS tiles: neutral1 20 (surface_light)
|
|
||||||
|
|
||||||
Dark:
|
|
||||||
Notifications: neutral1 800 (surface_dark)
|
|
||||||
Notification panel: neutral1 900 (dark BG)
|
|
||||||
QS background: neutral1 950 (surface_header_dark_sysui modulated to L* 5)
|
|
||||||
Inactive QS tiles: neutral1 800 (surface_dark)
|
|
||||||
|
|
||||||
The dark QS background could be neutral1 0 (black) like it was before,
|
|
||||||
but I don't think it looks as good because it can't be tinted based on
|
|
||||||
the active wallpaper and thus stands out from other colors.
|
|
||||||
|
|
||||||
Unfortunately, Google's current CAM16-based modulation causes hue shifts
|
|
||||||
in extreme light and dark shades (e.g. L* = 98 / 5), but we'll fix this
|
|
||||||
by generating and overlaying modulated surface colors in our
|
|
||||||
ThemeOverlayController implementation.
|
|
||||||
|
|
||||||
Demo screenshots: https://twitter.com/kdrag0n/status/1445922541218922496
|
|
||||||
|
|
||||||
Change-Id: Icdc4957ecb4e0201377351f1a3e1c6928d6b3955
|
|
||||||
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
|
|
||||||
---
|
|
||||||
.../res/color/surface_header_dark_sysui.xml | 18 ++++++++++++++++++
|
|
||||||
core/res/res/values-night/values.xml | 1 +
|
|
||||||
.../statusbar/phone/ScrimController.java | 12 +++++++++++-
|
|
||||||
3 files changed, 30 insertions(+), 1 deletion(-)
|
|
||||||
create mode 100644 core/res/res/color/surface_header_dark_sysui.xml
|
|
||||||
|
|
||||||
diff --git a/core/res/res/color/surface_header_dark_sysui.xml b/core/res/res/color/surface_header_dark_sysui.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..ec070c96f91a
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/core/res/res/color/surface_header_dark_sysui.xml
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<!-- Copyright (C) 2021 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="@color/system_neutral1_500" android:lStar="5" />
|
|
||||||
+</selector>
|
|
||||||
diff --git a/core/res/res/values-night/values.xml b/core/res/res/values-night/values.xml
|
|
||||||
index 1571fab66a5b..0683c20a4a4c 100644
|
|
||||||
--- a/core/res/res/values-night/values.xml
|
|
||||||
+++ b/core/res/res/values-night/values.xml
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
<item name="colorSecondary">@color/secondary_device_default_settings</item>
|
|
||||||
<item name="colorAccent">@color/accent_device_default_dark</item>
|
|
||||||
<item name="colorError">@color/error_color_device_default_dark</item>
|
|
||||||
+ <item name="colorSurfaceHeader">@color/surface_header_dark_sysui</item>
|
|
||||||
<item name="colorControlNormal">?attr/textColorPrimary</item>
|
|
||||||
<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 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
|
|
||||||
@@ -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;
|
|
||||||
@@ -390,6 +391,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
|
||||||
mKeyguardInteractor = keyguardInteractor;
|
|
||||||
mWallpaperRepository = wallpaperRepository;
|
|
||||||
mMainDispatcher = mainDispatcher;
|
|
||||||
+ mBehindColors = new GradientColors();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@@ -1191,7 +1193,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
|
||||||
&& !mBlankScreen;
|
|
||||||
|
|
||||||
mScrimInFront.setColors(mColors, animateScrimInFront);
|
|
||||||
- mScrimBehind.setColors(mColors, animateBehindScrim);
|
|
||||||
+ mScrimBehind.setColors(mBehindColors, animateBehindScrim);
|
|
||||||
mNotificationsScrim.setColors(mColors, animateScrimNotifications);
|
|
||||||
|
|
||||||
dispatchBackScrimState(mScrimBehind.getViewAlpha());
|
|
||||||
@@ -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();
|
|
||||||
+ int surfaceBackground = Utils.getColorAttr(mScrimBehind.getContext(),
|
|
||||||
+ com.android.internal.R.attr.colorSurfaceHeader).getDefaultColor();
|
|
||||||
int accent = Utils.getColorAccent(mScrimBehind.getContext()).getDefaultColor();
|
|
||||||
+
|
|
||||||
mColors.setMainColor(background);
|
|
||||||
mColors.setSecondaryColor(accent);
|
|
||||||
final boolean isBackgroundLight = !ContrastColorUtil.isColorDark(background);
|
|
||||||
@@ -1568,6 +1573,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
|
||||||
state.setSurfaceColor(surface);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ mBehindColors.setMainColor(surfaceBackground);
|
|
||||||
+ mBehindColors.setSecondaryColor(accent);
|
|
||||||
+ mBehindColors.setSupportsDarkText(
|
|
||||||
+ ColorUtils.calculateContrast(mBehindColors.getMainColor(), Color.WHITE) > 4.5);
|
|
||||||
+
|
|
||||||
mNeedsDrawableColorUpdate = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
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 26/43] SystemUI: Re-inflate QS and SB when
|
|
||||||
CONFIG_SCREEN_LAYOUT
|
|
||||||
|
|
||||||
- It was removed in a13, needed for light theme change in landscape.
|
|
||||||
|
|
||||||
Change-Id: I1872f5d90e6f6b8debecbc69eb80c3a11d8984e2
|
|
||||||
---
|
|
||||||
.../src/com/android/systemui/fragments/FragmentHostManager.java | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
index 5e0b34db0965..5aa7ceb7b5f5 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
|
||||||
@@ -59,7 +59,7 @@ public class FragmentHostManager {
|
|
||||||
private final LeakDetector mLeakDetector;
|
|
||||||
private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
|
|
||||||
ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
|
|
||||||
- | ActivityInfo.CONFIG_ASSETS_PATHS
|
|
||||||
+ | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS
|
|
||||||
| ActivityInfo.CONFIG_UI_MODE);
|
|
||||||
private final FragmentService mManager;
|
|
||||||
private final ExtensionFragmentManager mPlugins = new ExtensionFragmentManager();
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,220 +0,0 @@
|
|||||||
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 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
|
|
||||||
|
|
||||||
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 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
|
|
||||||
import android.annotation.IdRes
|
|
||||||
import android.app.PendingIntent
|
|
||||||
import android.app.StatusBarManager
|
|
||||||
+import android.content.Context
|
|
||||||
import android.content.Intent
|
|
||||||
+import android.content.res.ColorStateList
|
|
||||||
import android.content.res.Configuration
|
|
||||||
+import android.graphics.Color
|
|
||||||
import android.graphics.Insets
|
|
||||||
import android.os.Bundle
|
|
||||||
import android.os.Trace
|
|
||||||
@@ -92,6 +95,7 @@ constructor(
|
|
||||||
private val privacyIconsController: HeaderPrivacyIconsController,
|
|
||||||
private val insetsProvider: StatusBarContentInsetsProvider,
|
|
||||||
private val configurationController: ConfigurationController,
|
|
||||||
+ private val context: Context,
|
|
||||||
private val variableDateViewControllerFactory: VariableDateViewController.Factory,
|
|
||||||
@Named(SHADE_HEADER) private val batteryMeterViewController: BatteryMeterViewController,
|
|
||||||
private val dumpManager: DumpManager,
|
|
||||||
@@ -143,6 +147,7 @@ constructor(
|
|
||||||
private var cutout: DisplayCutout? = null
|
|
||||||
private var lastInsets: WindowInsets? = null
|
|
||||||
private var nextAlarmIntent: PendingIntent? = null
|
|
||||||
+ private var textColorPrimary = Color.TRANSPARENT
|
|
||||||
|
|
||||||
private var qsDisabled = false
|
|
||||||
private var visible = false
|
|
||||||
@@ -290,6 +295,10 @@ constructor(
|
|
||||||
clock.onDensityOrFontScaleChanged()
|
|
||||||
}
|
|
||||||
|
|
||||||
+ override fun onUiModeChanged() {
|
|
||||||
+ updateResources()
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
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)
|
|
||||||
+ updateResources()
|
|
||||||
systemIconsHoverContainer.setOnHoverListener(
|
|
||||||
statusOverlayHoverListenerFactory.createListener(systemIconsHoverContainer)
|
|
||||||
)
|
|
||||||
@@ -554,6 +564,24 @@ constructor(
|
|
||||||
header.setPadding(padding, header.paddingTop, padding, header.paddingBottom)
|
|
||||||
updateQQSPaddings()
|
|
||||||
qsBatteryModeController.updateResources()
|
|
||||||
+
|
|
||||||
+ val textColor = Utils.getColorAttrDefaultColor(context, android.R.attr.textColorPrimary)
|
|
||||||
+ val colorStateList = Utils.getColorAttr(context, android.R.attr.textColorPrimary)
|
|
||||||
+ if (textColor != textColorPrimary) {
|
|
||||||
+ val textColorSecondary = Utils.getColorAttrDefaultColor(context,
|
|
||||||
+ android.R.attr.textColorSecondary)
|
|
||||||
+ textColorPrimary = textColor
|
|
||||||
+ if (iconManager != null) {
|
|
||||||
+ iconManager.setTint(
|
|
||||||
+ textColorPrimary,
|
|
||||||
+ Utils.getColorAttrDefaultColor(context, android.R.attr.textColorPrimaryInverse),
|
|
||||||
+ )
|
|
||||||
+ }
|
|
||||||
+ clock.setTextColor(textColorPrimary)
|
|
||||||
+ date.setTextColor(textColorPrimary)
|
|
||||||
+ mShadeCarrierGroup.updateColors(textColorPrimary, colorStateList)
|
|
||||||
+ batteryIcon.updateColors(textColorPrimary, textColorSecondary, textColorPrimary)
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
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 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
|
|
||||||
@@ -151,6 +151,14 @@ public class ShadeCarrier extends LinearLayout {
|
|
||||||
com.android.settingslib.R.string.not_default_data_content_description));
|
|
||||||
}
|
|
||||||
|
|
||||||
+ public void updateColors(ColorStateList colorStateList) {
|
|
||||||
+ final boolean visible = !mIsSingleCarrier;
|
|
||||||
+ if (visible) {
|
|
||||||
+ mMobileRoaming.setImageTintList(colorStateList);
|
|
||||||
+ mMobileSignal.setImageTintList(colorStateList);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
@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 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;
|
|
||||||
|
|
||||||
import android.annotation.StyleRes;
|
|
||||||
import android.content.Context;
|
|
||||||
+import android.content.res.ColorStateList;
|
|
||||||
+import android.graphics.PorterDuff;
|
|
||||||
import android.util.AttributeSet;
|
|
||||||
import android.view.View;
|
|
||||||
+import android.widget.ImageView;
|
|
||||||
import android.widget.LinearLayout;
|
|
||||||
import android.widget.TextView;
|
|
||||||
|
|
||||||
@@ -57,6 +60,17 @@ public class ShadeCarrierGroup extends LinearLayout {
|
|
||||||
return findViewById(R.id.shade_carrier_divider2);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ public void updateColors(int color, ColorStateList colorStateList) {
|
|
||||||
+ getNoSimTextView().setTextColor(color);
|
|
||||||
+ ShadeCarrier[] shadeCarriers = { getCarrier1View(), getCarrier2View(), getCarrier3View() };
|
|
||||||
+ for (ShadeCarrier shadeCarrier : shadeCarriers) {
|
|
||||||
+ for (int i = 0; i < shadeCarrier.getChildCount(); i++) {
|
|
||||||
+ shadeCarrier.updateColors(colorStateList);
|
|
||||||
+ shadeCarrier.setCarrierTextColor(color);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
public void updateTextAppearance(@StyleRes int 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
|
|
||||||
+++ b/packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt
|
|
||||||
@@ -189,6 +189,7 @@ class ShadeHeaderControllerTest : SysuiTestCase() {
|
|
||||||
privacyIconsController,
|
|
||||||
insetsProvider,
|
|
||||||
configurationController,
|
|
||||||
+ mockedContext,
|
|
||||||
variableDateViewControllerFactory,
|
|
||||||
batteryMeterViewController,
|
|
||||||
dumpManager,
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
.../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..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(
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- val backgroundColor = colorAttr(R.attr.underSurface)
|
|
||||||
+ 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
|
|
||||||
+++ b/packages/SystemUI/res/drawable/qs_footer_actions_background.xml
|
|
||||||
@@ -15,7 +15,7 @@
|
|
||||||
-->
|
|
||||||
<inset xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<shape>
|
|
||||||
- <solid android:color="?attr/underSurface"/>
|
|
||||||
+ <solid android:color="@android:color/transparent"/>
|
|
||||||
<corners android:topLeftRadius="@dimen/qs_corner_radius"
|
|
||||||
android:topRightRadius="@dimen/qs_corner_radius"/>
|
|
||||||
</shape>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,65 +0,0 @@
|
|||||||
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,48 +0,0 @@
|
|||||||
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 30/43] SystemUI: Follow Dark/Light theme for Safe Mode dialog
|
|
||||||
|
|
||||||
Change-Id: Ia9864a45551e969abaccd351e8b6d65e21d99165
|
|
||||||
Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
.../java/com/android/server/power/ShutdownThread.java | 8 +++++++-
|
|
||||||
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 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;
|
|
||||||
import android.content.Intent;
|
|
||||||
import android.content.IntentFilter;
|
|
||||||
import android.content.pm.PackageManagerInternal;
|
|
||||||
+import android.content.res.Configuration;
|
|
||||||
import android.os.Bundle;
|
|
||||||
import android.os.FileUtils;
|
|
||||||
import android.os.Handler;
|
|
||||||
@@ -194,6 +195,11 @@ public final class ShutdownThread extends Thread {
|
|
||||||
? com.android.internal.R.string.shutdown_confirm_question
|
|
||||||
: com.android.internal.R.string.shutdown_confirm);
|
|
||||||
|
|
||||||
+ boolean isNightMode = (context.getResources().getConfiguration().uiMode
|
|
||||||
+ & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
|
|
||||||
+ int themeResId = isNightMode ? android.R.style.Theme_DeviceDefault_Dialog_Alert :
|
|
||||||
+ android.R.style.Theme_DeviceDefault_Light_Dialog_Alert;
|
|
||||||
+
|
|
||||||
if (DEBUG) {
|
|
||||||
Log.d(TAG, "Notifying thread to start shutdown longPressBehavior=" + longPressBehavior);
|
|
||||||
}
|
|
||||||
@@ -203,7 +209,7 @@ public final class ShutdownThread extends Thread {
|
|
||||||
if (sConfirmDialog != null) {
|
|
||||||
sConfirmDialog.dismiss();
|
|
||||||
}
|
|
||||||
- sConfirmDialog = new AlertDialog.Builder(context)
|
|
||||||
+ sConfirmDialog = new AlertDialog.Builder(context, themeResId)
|
|
||||||
.setTitle(mRebootSafeMode
|
|
||||||
? com.android.internal.R.string.reboot_safemode_title
|
|
||||||
: com.android.internal.R.string.power_off)
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,86 +0,0 @@
|
|||||||
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 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
|
|
||||||
light mode.
|
|
||||||
|
|
||||||
SystemUI: Always refresh power menu on UI mode change
|
|
||||||
|
|
||||||
This is necessary for reliably theming the global actions dialog with
|
|
||||||
dynamic colors and adapting it to light/dark themes.
|
|
||||||
|
|
||||||
Demo screenshots (with color overlays applied):
|
|
||||||
https://twitter.com/kdrag0n/status/1445960685427433473
|
|
||||||
|
|
||||||
[kdrag0n: ported to 12L]
|
|
||||||
|
|
||||||
Change-Id: If58fb4079a4cd11414ff928fad3576beecb14ff5
|
|
||||||
Signed-off-by: althafvly <althafvly@gmail.com>
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values-night/colors.xml | 5 +++++
|
|
||||||
packages/SystemUI/res/values/colors.xml | 8 ++++----
|
|
||||||
.../systemui/globalactions/GlobalActionsDialogLite.java | 9 +++++++++
|
|
||||||
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 ddf188e3f1d3..3a403b69ff04 100644
|
|
||||||
--- a/packages/SystemUI/res/values-night/colors.xml
|
|
||||||
+++ b/packages/SystemUI/res/values-night/colors.xml
|
|
||||||
@@ -55,6 +55,11 @@
|
|
||||||
<!-- The color of the text in the Global Actions menu -->
|
|
||||||
<color name="global_actions_text">@color/GM2_grey_200</color>
|
|
||||||
|
|
||||||
+ <!-- Colors for Power Menu Lite -->
|
|
||||||
+ <color name="global_actions_lite_background">@*android:color/primary_device_default_dark</color>
|
|
||||||
+ <color name="global_actions_lite_button_background">@*android:color/surface_dark</color>
|
|
||||||
+ <color name="global_actions_lite_text">@*android:color/foreground_device_default_dark</color>
|
|
||||||
+
|
|
||||||
<!-- The color of the text in the Global Actions menu -->
|
|
||||||
<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 846fd5736590..402e44c3fb31 100644
|
|
||||||
--- a/packages/SystemUI/res/values/colors.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/colors.xml
|
|
||||||
@@ -39,10 +39,10 @@
|
|
||||||
<color name="global_actions_grid_background">#F1F3F4</color>
|
|
||||||
|
|
||||||
<!-- Colors for Power Menu Lite -->
|
|
||||||
- <color name="global_actions_lite_background">#191C18</color>
|
|
||||||
- <color name="global_actions_lite_button_background">#303030</color>
|
|
||||||
- <color name="global_actions_lite_button_background_focused">#666666</color>
|
|
||||||
- <color name="global_actions_lite_text">#F0F0F0</color>
|
|
||||||
+ <color name="global_actions_lite_background">@*android:color/primary_device_default_light</color>
|
|
||||||
+ <color name="global_actions_lite_button_background">@*android:color/surface_light</color>
|
|
||||||
+ <color name="global_actions_lite_button_background_focused">#666666</color> <!-- LOS TV-specific, don't care -->
|
|
||||||
+ <color name="global_actions_lite_text">@*android:color/foreground_device_default_light</color>
|
|
||||||
<color name="global_actions_lite_emergency_background">#F85D4D</color>
|
|
||||||
<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 fa1b430a4ed5..0b2cc012f999 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
|
||||||
@@ -846,6 +846,15 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
|
||||||
user.id) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ @Override
|
|
||||||
+ public void onUiModeChanged() {
|
|
||||||
+ // Colors may change, depending on UI mode
|
|
||||||
+ mContext.getTheme().applyStyle(mContext.getThemeResId(), true);
|
|
||||||
+ if (mDialog != null && mDialog.isShowing()) {
|
|
||||||
+ mDialog.refreshDialog();
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
@Override
|
|
||||||
public void onConfigChanged(Configuration newConfig) {
|
|
||||||
if (mDialog != null && mDialog.isShowing()
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
|||||||
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 32/43] SystemUI: Re-evaluate system theme on UI mode change
|
|
||||||
|
|
||||||
- Need for power menu to set accurate colors
|
|
||||||
|
|
||||||
Change-Id: I05d41eaf8ea19ce3b6ce659d01da33cf55de3b7e
|
|
||||||
---
|
|
||||||
.../systemui/theme/ThemeOverlayController.java | 17 ++++++++++++++++-
|
|
||||||
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 321429e43573..84e32a1dbaae 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
|
||||||
@@ -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;
|
|
||||||
+import com.android.systemui.statusbar.policy.ConfigurationController;
|
|
||||||
+import com.android.systemui.statusbar.policy.ConfigurationController.ConfigurationListener;
|
|
||||||
import com.android.systemui.statusbar.policy.DeviceProvisionedController;
|
|
||||||
import com.android.systemui.statusbar.policy.DeviceProvisionedController.DeviceProvisionedListener;
|
|
||||||
import com.android.systemui.util.kotlin.JavaAdapter;
|
|
||||||
@@ -143,6 +145,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
|
||||||
private final boolean mIsMonetEnabled;
|
|
||||||
private final boolean mIsFidelityEnabled;
|
|
||||||
private final UserTracker mUserTracker;
|
|
||||||
+ private final ConfigurationController mConfigurationController;
|
|
||||||
private final DeviceProvisionedController mDeviceProvisionedController;
|
|
||||||
private final Resources mResources;
|
|
||||||
// Current wallpaper colors associated to a user.
|
|
||||||
@@ -184,6 +187,15 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
|
||||||
// Determines if we should ignore THEME_CUSTOMIZATION_OVERLAY_PACKAGES setting changes.
|
|
||||||
private boolean mSkipSettingChange;
|
|
||||||
|
|
||||||
+ private final ConfigurationListener mConfigurationListener =
|
|
||||||
+ new ConfigurationListener() {
|
|
||||||
+ @Override
|
|
||||||
+ public void onUiModeChanged() {
|
|
||||||
+ Log.i(TAG, "Re-applying theme on UI change");
|
|
||||||
+ reevaluateSystemTheme(true /* forceReload */);
|
|
||||||
+ }
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
private final DeviceProvisionedListener mDeviceProvisionedListener =
|
|
||||||
new DeviceProvisionedListener() {
|
|
||||||
@Override
|
|
||||||
@@ -425,10 +437,12 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
|
||||||
JavaAdapter javaAdapter,
|
|
||||||
KeyguardTransitionInteractor keyguardTransitionInteractor,
|
|
||||||
UiModeManager uiModeManager,
|
|
||||||
- ActivityManager activityManager) {
|
|
||||||
+ ActivityManager activityManager,
|
|
||||||
+ ConfigurationController configurationController) {
|
|
||||||
mContext = context;
|
|
||||||
mIsMonetEnabled = featureFlags.isEnabled(Flags.MONET);
|
|
||||||
mIsFidelityEnabled = featureFlags.isEnabled(Flags.COLOR_FIDELITY);
|
|
||||||
+ mConfigurationController = configurationController;
|
|
||||||
mDeviceProvisionedController = deviceProvisionedController;
|
|
||||||
mBroadcastDispatcher = broadcastDispatcher;
|
|
||||||
mUserManager = userManager;
|
|
||||||
@@ -543,6 +557,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
|
|
||||||
|
|
||||||
mUserTracker.addCallback(mUserTrackerCallback, mMainExecutor);
|
|
||||||
|
|
||||||
+ mConfigurationController.addCallback(mConfigurationListener);
|
|
||||||
mDeviceProvisionedController.addCallback(mDeviceProvisionedListener);
|
|
||||||
|
|
||||||
// All wallpaper color and keyguard logic only applies when Monet is enabled.
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
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 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
|
|
||||||
being updated correctly on QS re-inflation (via
|
|
||||||
QuickStatusBarHeader.updateResources).
|
|
||||||
|
|
||||||
Change-Id: Icdf2484793cb63b7c0ab6ab87e94185e6bdc9ca4
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
.../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..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;
|
|
||||||
import android.text.style.RelativeSizeSpan;
|
|
||||||
import android.util.AttributeSet;
|
|
||||||
import android.util.TypedValue;
|
|
||||||
-import android.view.ContextThemeWrapper;
|
|
||||||
import android.view.Display;
|
|
||||||
import android.view.View;
|
|
||||||
import android.view.ViewGroup;
|
|
||||||
@@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
- // Update text color based when shade scrim changes color.
|
|
||||||
- public void onColorsChanged(boolean lightTheme) {
|
|
||||||
- final Context context = new ContextThemeWrapper(mContext,
|
|
||||||
- lightTheme ? R.style.Theme_SystemUI_LightWallpaper : R.style.Theme_SystemUI);
|
|
||||||
- setTextColor(Utils.getColorAttrDefaultColor(context, R.attr.wallpaperTextColor));
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
@Override
|
|
||||||
public void onDensityOrFontScaleChanged() {
|
|
||||||
reloadDimens();
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
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 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
|
|
||||||
hence height returns 0, resulting in footer and media panel
|
|
||||||
position overlapping the QS panel. Return the maximum height
|
|
||||||
among all present QS pages to fix this issue.
|
|
||||||
|
|
||||||
Change-Id: I539babdb75c114cc44b4213ff114d4272be22ef6
|
|
||||||
---
|
|
||||||
.../com/android/systemui/qs/PagedTileLayout.java | 14 +++++++++-----
|
|
||||||
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 43f3a2242da4..c7f74705a81e 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
|
|
||||||
@@ -137,12 +137,16 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getTilesHeight() {
|
|
||||||
- // Use the first page as that is the maximum height we need to show.
|
|
||||||
- TileLayout tileLayout = mPages.get(0);
|
|
||||||
- if (tileLayout == null) {
|
|
||||||
- return 0;
|
|
||||||
+ // Find the maximum height among all pages.
|
|
||||||
+ int height = 0;
|
|
||||||
+ for (int i = 0; i < mPages.size(); i++) {
|
|
||||||
+ TileLayout tileLayout = mPages.get(i);
|
|
||||||
+ if (tileLayout != null) {
|
|
||||||
+ height = Math.max(height, tileLayout.getTilesHeight());
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
- return tileLayout.getTilesHeight();
|
|
||||||
+ mLogger.d("getTilesHeight ret=", height);
|
|
||||||
+ return height;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
|||||||
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 35/43] SystemUI: Remove visibility check in setting QSCarrier
|
|
||||||
color
|
|
||||||
|
|
||||||
This fixes a corner case where the signal icon color is incorrect:
|
|
||||||
Have dual sim -> switch to dark theme -> turn off one sim -> switch
|
|
||||||
to light theme -> turn the other sim back on. QS carrier signal
|
|
||||||
is colored white instead of black.
|
|
||||||
|
|
||||||
Ensure that the signal icon color is always up to date, by removing
|
|
||||||
visibility check, to avoid this issue.
|
|
||||||
|
|
||||||
Fixes: 816b8ddf ("Follow light/dark theme in SplitShade Header")
|
|
||||||
Change-Id: I092c06053fc4bc8d9ca51d1d31128da27ef6a823
|
|
||||||
---
|
|
||||||
.../com/android/systemui/shade/carrier/ShadeCarrier.java | 7 ++-----
|
|
||||||
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 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
|
|
||||||
@@ -152,11 +152,8 @@ public class ShadeCarrier extends LinearLayout {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void updateColors(ColorStateList colorStateList) {
|
|
||||||
- final boolean visible = !mIsSingleCarrier;
|
|
||||||
- if (visible) {
|
|
||||||
- mMobileRoaming.setImageTintList(colorStateList);
|
|
||||||
- mMobileSignal.setImageTintList(colorStateList);
|
|
||||||
- }
|
|
||||||
+ mMobileRoaming.setImageTintList(colorStateList);
|
|
||||||
+ mMobileSignal.setImageTintList(colorStateList);
|
|
||||||
}
|
|
||||||
|
|
||||||
@VisibleForTesting
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
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,42 +0,0 @@
|
|||||||
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 38/43] SystemUI: Follow monet theme on privacy indicators
|
|
||||||
|
|
||||||
Change-Id: Ib713cb3283fcf3a49086c5da8360d2a1b6cd6704
|
|
||||||
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
|
|
||||||
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values/colors.xml | 2 +-
|
|
||||||
.../src/com/android/systemui/privacy/OngoingPrivacyChip.kt | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
|
|
||||||
index 402e44c3fb31..50b962310ac9 100644
|
|
||||||
--- a/packages/SystemUI/res/values/colors.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/colors.xml
|
|
||||||
@@ -224,7 +224,7 @@
|
|
||||||
<color name="screenrecord_status_color">#E94235</color>
|
|
||||||
<color name="screenrecord_icon_color">#D93025</color><!-- red 600 -->
|
|
||||||
|
|
||||||
- <color name="privacy_chip_background">#3ddc84</color>
|
|
||||||
+ <color name="privacy_chip_background">?android:attr/colorAccent</color>
|
|
||||||
|
|
||||||
<!-- 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 7a4be3fdc93b..19ac5fccac5f 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyChip.kt
|
|
||||||
@@ -125,7 +125,7 @@ class OngoingPrivacyChip @JvmOverloads constructor(
|
|
||||||
iconSize = context.resources
|
|
||||||
.getDimensionPixelSize(R.dimen.ongoing_appops_chip_icon_size)
|
|
||||||
iconColor =
|
|
||||||
- Utils.getColorAttrDefaultColor(context, com.android.internal.R.attr.colorPrimary)
|
|
||||||
+ Utils.getColorAttrDefaultColor(context, android.R.attr.textColorPrimaryInverse)
|
|
||||||
|
|
||||||
val height = context.resources
|
|
||||||
.getDimensionPixelSize(R.dimen.ongoing_appops_chip_height)
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
|||||||
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 39/43] SystemUI: Follow monet theme on battery chip
|
|
||||||
|
|
||||||
Why does this chip even exist...
|
|
||||||
|
|
||||||
Change-Id: I178fdda5d8d310c4c7fa5f05f9911b3f94986cb9
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/drawable/statusbar_chip_bg.xml | 8 +++-----
|
|
||||||
.../com/android/systemui/statusbar/BatteryStatusChip.kt | 6 ++++++
|
|
||||||
2 files changed, 9 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/statusbar_chip_bg.xml b/packages/SystemUI/res/drawable/statusbar_chip_bg.xml
|
|
||||||
index d7de16d7c5bb..dd1db04e77d7 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/statusbar_chip_bg.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/statusbar_chip_bg.xml
|
|
||||||
@@ -15,9 +15,7 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
-<shape
|
|
||||||
- xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
|
||||||
- <solid android:color="?androidprv:attr/colorAccentPrimary" />
|
|
||||||
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
+ <solid android:color="@color/privacy_chip_background" />
|
|
||||||
<corners android:radius="@dimen/ongoing_appops_chip_bg_corner_radius" />
|
|
||||||
-</shape>
|
|
||||||
\ 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 a58ce4162ddc..32c015f3230d 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt
|
|
||||||
@@ -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
|
|
||||||
@@ -71,6 +72,11 @@ class BatteryStatusChip @JvmOverloads constructor(context: Context, attrs: Attri
|
|
||||||
|
|
||||||
@SuppressLint("UseCompatLoadingForDrawables")
|
|
||||||
private fun updateResources() {
|
|
||||||
+ val primaryColor =
|
|
||||||
+ Utils.getColorAttrDefaultColor(context, android.R.attr.textColorPrimaryInverse)
|
|
||||||
+ val textColorSecondary =
|
|
||||||
+ Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorSecondaryInverse)
|
|
||||||
+ batteryMeterView.updateColors(primaryColor, textColorSecondary, primaryColor)
|
|
||||||
roundedContainer.background = mContext.getDrawable(R.drawable.statusbar_chip_bg)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
From 6f9026e0548bd82e7b728ef29dd7d14db93b2105 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 26 Jun 2021 14:23:09 +0000
|
||||||
|
Subject: [PATCH] Jelly: MainActivity: Restore applyThemeColor
|
||||||
|
|
||||||
|
Fixes black statusbar on start
|
||||||
|
|
||||||
|
Change-Id: I6816f5b1dcb3c7bcaee2736a9e2a3ecd63217bc6
|
||||||
|
---
|
||||||
|
app/src/main/java/org/lineageos/jelly/MainActivity.kt | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/app/src/main/java/org/lineageos/jelly/MainActivity.kt b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
|
||||||
|
index 2902b0a..9ff74ed 100644
|
||||||
|
--- a/app/src/main/java/org/lineageos/jelly/MainActivity.kt
|
||||||
|
+++ b/app/src/main/java/org/lineageos/jelly/MainActivity.kt
|
||||||
|
@@ -193,6 +193,7 @@ class MainActivity : WebViewExtActivity(), SearchBarController.OnCancelListener,
|
||||||
|
findViewById(R.id.search_menu_cancel),
|
||||||
|
this)
|
||||||
|
setUiMode()
|
||||||
|
+ applyThemeColor(mThemeColor)
|
||||||
|
try {
|
||||||
|
val httpCacheDir = File(cacheDir, "suggestion_responses")
|
||||||
|
val httpCacheSize = 1024 * 1024.toLong() // 1 MiB
|
||||||
|
@@ -763,4 +764,4 @@ class MainActivity : WebViewExtActivity(), SearchBarController.OnCancelListener,
|
||||||
|
private const val STORAGE_PERM_REQ = 423
|
||||||
|
private const val LOCATION_PERM_REQ = 424
|
||||||
|
}
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
+}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
From 3dda22bc6cad9da7d937218f157fe762dafb5d7d Mon Sep 17 00:00:00 2001
|
From 47bf5612cec98931ee3076c307247ac58d07ccff Mon Sep 17 00:00:00 2001
|
||||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Sun, 13 Jan 2019 21:44:48 +0800
|
Date: Sun, 13 Jan 2019 21:44:48 +0800
|
||||||
Subject: [PATCH] LineageParts: Invert per-app stretch-to-fullscreen
|
Subject: [PATCH] LineageParts: Invert per-app stretch-to-fullscreen
|
||||||
@ -14,10 +14,10 @@ Change-Id: Icb02c8dfd84882f736e37d6cd92c35e5eb288faa
|
|||||||
6 files changed, 11 insertions(+), 11 deletions(-)
|
6 files changed, 11 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
diff --git a/res/layout/long_screen_layout.xml b/res/layout/long_screen_layout.xml
|
diff --git a/res/layout/long_screen_layout.xml b/res/layout/long_screen_layout.xml
|
||||||
index 3252c10..ed4efd9 100644
|
index 40d0938..1119cef 100644
|
||||||
--- a/res/layout/long_screen_layout.xml
|
--- a/res/layout/long_screen_layout.xml
|
||||||
+++ b/res/layout/long_screen_layout.xml
|
+++ b/res/layout/long_screen_layout.xml
|
||||||
@@ -25,7 +25,7 @@
|
@@ -36,7 +36,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
@ -27,13 +27,13 @@ index 3252c10..ed4efd9 100644
|
|||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
|
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
|
||||||
index 9823209..a15a439 100644
|
index ee5f7f9..eeed571 100644
|
||||||
--- a/res/values-zh-rCN/strings.xml
|
--- a/res/values-zh-rCN/strings.xml
|
||||||
+++ b/res/values-zh-rCN/strings.xml
|
+++ b/res/values-zh-rCN/strings.xml
|
||||||
@@ -456,9 +456,9 @@
|
@@ -448,9 +448,9 @@
|
||||||
<string name="display_rotation_90_title">90 度</string>
|
<string name="auto_power_save_summary_on">电量 %s 时自动启用省电</string>
|
||||||
<string name="display_rotation_180_title">180 度</string>
|
<string name="auto_power_save_summary_off">不要自动启用省电</string>
|
||||||
<string name="display_rotation_270_title">270 度</string>
|
<string name="auto_power_save_never">永不</string>
|
||||||
- <string name="long_screen_settings_title">全屏应用</string>
|
- <string name="long_screen_settings_title">全屏应用</string>
|
||||||
- <string name="long_screen_settings_summary">强制旧式应用程序使用全屏长宽比</string>
|
- <string name="long_screen_settings_summary">强制旧式应用程序使用全屏长宽比</string>
|
||||||
- <string name="long_screen_settings_no_apps">无应用</string>
|
- <string name="long_screen_settings_no_apps">无应用</string>
|
||||||
@ -41,14 +41,14 @@ index 9823209..a15a439 100644
|
|||||||
+ <string name="inverse_long_screen_settings_summary">对选定的应用禁用拉伸全屏</string>
|
+ <string name="inverse_long_screen_settings_summary">对选定的应用禁用拉伸全屏</string>
|
||||||
+ <string name="inverse_long_screen_settings_no_apps">无应用</string>
|
+ <string name="inverse_long_screen_settings_no_apps">无应用</string>
|
||||||
<string name="charging_sounds_settings_title">充电提示音</string>
|
<string name="charging_sounds_settings_title">充电提示音</string>
|
||||||
<string name="charging_sounds_enable_title">启用充电提示音</string>
|
<string name="charging_sounds_enabled_title">启用</string>
|
||||||
<string name="charging_sounds_summary">连接或断开电源时发出声音</string>
|
<string name="charging_sounds_enabled_summary">连接或断开电源时发出声音</string>
|
||||||
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||||
index 0358a7e..5996a8f 100644
|
index 65d799a..ff23ae9 100644
|
||||||
--- a/res/values/strings.xml
|
--- a/res/values/strings.xml
|
||||||
+++ b/res/values/strings.xml
|
+++ b/res/values/strings.xml
|
||||||
@@ -579,9 +579,9 @@
|
@@ -579,9 +579,9 @@
|
||||||
<string name="display_rotation_270_title">270 degrees</string>
|
<string name="auto_power_save_never">Never</string>
|
||||||
|
|
||||||
<!-- Applications: Long screen -->
|
<!-- Applications: Long screen -->
|
||||||
- <string name="long_screen_settings_title">Full screen apps</string>
|
- <string name="long_screen_settings_title">Full screen apps</string>
|
||||||
@ -61,23 +61,23 @@ index 0358a7e..5996a8f 100644
|
|||||||
<!-- Sounds: Charging sounds -->
|
<!-- Sounds: Charging sounds -->
|
||||||
<string name="charging_sounds_settings_title">Charging sounds</string>
|
<string name="charging_sounds_settings_title">Charging sounds</string>
|
||||||
diff --git a/res/xml/long_screen_prefs.xml b/res/xml/long_screen_prefs.xml
|
diff --git a/res/xml/long_screen_prefs.xml b/res/xml/long_screen_prefs.xml
|
||||||
index 9a4f7bb..ece52c9 100644
|
index ec947fa..20da90a 100644
|
||||||
--- a/res/xml/long_screen_prefs.xml
|
--- a/res/xml/long_screen_prefs.xml
|
||||||
+++ b/res/xml/long_screen_prefs.xml
|
+++ b/res/xml/long_screen_prefs.xml
|
||||||
@@ -6,6 +6,6 @@
|
@@ -18,6 +18,6 @@
|
||||||
<PreferenceScreen
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:lineage="http://schemas.android.com/apk/res/org.lineageos.lineageparts"
|
||||||
android:key="long_screen_settings"
|
android:key="long_screen_settings"
|
||||||
- android:title="@string/long_screen_settings_title">
|
- android:title="@string/long_screen_settings_title">
|
||||||
+ android:title="@string/inverse_long_screen_settings_title">
|
+ android:title="@string/inverse_long_screen_settings_title">
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
diff --git a/res/xml/parts_catalog.xml b/res/xml/parts_catalog.xml
|
diff --git a/res/xml/parts_catalog.xml b/res/xml/parts_catalog.xml
|
||||||
index d6b19c0..6e65a31 100644
|
index a4346c7..e21d7d5 100644
|
||||||
--- a/res/xml/parts_catalog.xml
|
--- a/res/xml/parts_catalog.xml
|
||||||
+++ b/res/xml/parts_catalog.xml
|
+++ b/res/xml/parts_catalog.xml
|
||||||
@@ -75,8 +75,8 @@
|
@@ -92,8 +92,8 @@
|
||||||
lineage:xmlRes="@xml/power_menu_settings" />
|
lineage:xmlRes="@xml/perf_profile_settings" />
|
||||||
|
|
||||||
<part android:key="long_screen_settings"
|
<part android:key="long_screen_settings"
|
||||||
- android:title="@string/long_screen_settings_title"
|
- android:title="@string/long_screen_settings_title"
|
||||||
@ -88,10 +88,10 @@ index d6b19c0..6e65a31 100644
|
|||||||
lineage:xmlRes="@xml/long_screen_prefs" />
|
lineage:xmlRes="@xml/long_screen_prefs" />
|
||||||
|
|
||||||
diff --git a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
diff --git a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
index 7155e12..4b89260 100644
|
index ac04058..50ff8f6 100644
|
||||||
--- a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
--- a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
+++ b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
+++ b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
@@ -222,7 +222,7 @@ public class LongScreenSettings extends SettingsPreferenceFragment
|
@@ -246,7 +246,7 @@ public class LongScreenSettings extends SettingsPreferenceFragment
|
||||||
mApplicationsState.ensureIcon(entry);
|
mApplicationsState.ensureIcon(entry);
|
||||||
holder.icon.setImageDrawable(entry.icon);
|
holder.icon.setImageDrawable(entry.icon);
|
||||||
holder.state.setTag(entry);
|
holder.state.setTag(entry);
|
||||||
@ -101,5 +101,5 @@ index 7155e12..4b89260 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
--
|
--
|
||||||
2.34.1
|
2.17.1
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
From b98a354d5dd11302672f2feed6eff815e8927342 Mon Sep 17 00:00:00 2001
|
From 3f7f3f9546f9f23d66381f7dff887cd562285ce6 Mon Sep 17 00:00:00 2001
|
||||||
From: Paul Keith <javelinanddart@gmail.com>
|
From: Paul Keith <javelinanddart@gmail.com>
|
||||||
Date: Tue, 30 Oct 2018 15:46:18 +0100
|
Date: Tue, 30 Oct 2018 15:46:18 +0100
|
||||||
Subject: [PATCH 1/2] Messaging: Add "Mark as read" quick action for message
|
Subject: [PATCH] Messaging: Add "Mark as read" quick action for message
|
||||||
notifications
|
notifications
|
||||||
|
|
||||||
Change-Id: I7194dca022e5062926fa35709de282721ca64320
|
Change-Id: I7194dca022e5062926fa35709de282721ca64320
|
||||||
---
|
---
|
||||||
res/drawable/ic_wear_read.xml | 9 +++++++++
|
res/drawable/ic_wear_read.xml | 9 +++++++++
|
||||||
res/values-zh-rCN/cm_strings.xml | 1 +
|
|
||||||
res/values/cm_strings.xml | 3 +++
|
res/values/cm_strings.xml | 3 +++
|
||||||
.../messaging/datamodel/BugleNotifications.java | 14 ++++++++++++++
|
.../messaging/datamodel/BugleNotifications.java | 14 ++++++++++++++
|
||||||
.../datamodel/MessageNotificationState.java | 8 ++++++++
|
.../datamodel/MessageNotificationState.java | 8 ++++++++
|
||||||
@ -15,7 +14,7 @@ Change-Id: I7194dca022e5062926fa35709de282721ca64320
|
|||||||
.../messaging/receiver/NotificationReceiver.java | 12 +++++++++++-
|
.../messaging/receiver/NotificationReceiver.java | 12 +++++++++++-
|
||||||
src/com/android/messaging/ui/UIIntents.java | 11 +++++++++++
|
src/com/android/messaging/ui/UIIntents.java | 11 +++++++++++
|
||||||
src/com/android/messaging/ui/UIIntentsImpl.java | 14 ++++++++++++++
|
src/com/android/messaging/ui/UIIntentsImpl.java | 14 ++++++++++++++
|
||||||
9 files changed, 82 insertions(+), 2 deletions(-)
|
8 files changed, 81 insertions(+), 2 deletions(-)
|
||||||
create mode 100644 res/drawable/ic_wear_read.xml
|
create mode 100644 res/drawable/ic_wear_read.xml
|
||||||
|
|
||||||
diff --git a/res/drawable/ic_wear_read.xml b/res/drawable/ic_wear_read.xml
|
diff --git a/res/drawable/ic_wear_read.xml b/res/drawable/ic_wear_read.xml
|
||||||
@ -33,27 +32,19 @@ index 0000000..9d017e6
|
|||||||
+ android:fillColor="#ffffff"
|
+ android:fillColor="#ffffff"
|
||||||
+ android:pathData="M0.41,13.41L6,19L7.41,17.58L1.83,12M22.24,5.58L11.66,16.17L7.5,12L6.07,13.41L11.66,19L23.66,7M18,7L16.59,5.58L10.24,11.93L11.66,13.34L18,7Z" />
|
+ android:pathData="M0.41,13.41L6,19L7.41,17.58L1.83,12M22.24,5.58L11.66,16.17L7.5,12L6.07,13.41L11.66,19L23.66,7M18,7L16.59,5.58L10.24,11.93L11.66,13.34L18,7Z" />
|
||||||
+</vector>
|
+</vector>
|
||||||
diff --git a/res/values-zh-rCN/cm_strings.xml b/res/values-zh-rCN/cm_strings.xml
|
|
||||||
index 074c13f..988d9f4 100644
|
|
||||||
--- a/res/values-zh-rCN/cm_strings.xml
|
|
||||||
+++ b/res/values-zh-rCN/cm_strings.xml
|
|
||||||
@@ -18,4 +18,5 @@
|
|
||||||
<string name="swipe_to_delete_conversation_pref_title">滑动删除邮件</string>
|
|
||||||
<string name="swipe_to_delete_conversation_pref_summary">向右滑动以删除会话</string>
|
|
||||||
<string name="notification_channel_messages_title">短信</string>
|
|
||||||
+ <string name="notification_mark_as_read">标记为已读</string>
|
|
||||||
</resources>
|
|
||||||
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
|
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
|
||||||
index 9f2382c..743cb8b 100644
|
index f285555..858f093 100644
|
||||||
--- a/res/values/cm_strings.xml
|
--- a/res/values/cm_strings.xml
|
||||||
+++ b/res/values/cm_strings.xml
|
+++ b/res/values/cm_strings.xml
|
||||||
@@ -21,4 +21,7 @@
|
@@ -23,6 +23,9 @@
|
||||||
|
<string name="show_emoticons_pref_title">Emoticons access</string>
|
||||||
|
<string name="show_emoticons_pref_summary">Show the emoticons key on the keyboard</string>
|
||||||
|
|
||||||
<!-- Notification channel -->
|
|
||||||
<string name="notification_channel_messages_title">Messages</string>
|
|
||||||
+
|
|
||||||
+ <!-- Mark message as read -->
|
+ <!-- Mark message as read -->
|
||||||
+ <string name="notification_mark_as_read">Mark as read</string>
|
+ <string name="notification_mark_as_read">Mark as read</string>
|
||||||
|
+
|
||||||
|
<!-- Notification channel -->
|
||||||
|
<string name="notification_channel_messages_title">Messages</string>
|
||||||
</resources>
|
</resources>
|
||||||
diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java
|
diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java
|
||||||
index 6df9e88..dbe86ff 100644
|
index 6df9e88..dbe86ff 100644
|
||||||
@ -88,10 +79,10 @@ index 6df9e88..dbe86ff 100644
|
|||||||
final WearableExtender wearableExtender, final NotificationState notificationState) {
|
final WearableExtender wearableExtender, final NotificationState notificationState) {
|
||||||
if (!(notificationState instanceof MultiMessageNotificationState)) {
|
if (!(notificationState instanceof MultiMessageNotificationState)) {
|
||||||
diff --git a/src/com/android/messaging/datamodel/MessageNotificationState.java b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
diff --git a/src/com/android/messaging/datamodel/MessageNotificationState.java b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
||||||
index fd82f74..b49774f 100644
|
index 4a4bfd5..7555d97 100644
|
||||||
--- a/src/com/android/messaging/datamodel/MessageNotificationState.java
|
--- a/src/com/android/messaging/datamodel/MessageNotificationState.java
|
||||||
+++ b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
+++ b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
||||||
@@ -335,6 +335,14 @@ public abstract class MessageNotificationState extends NotificationState {
|
@@ -334,6 +334,14 @@ public abstract class MessageNotificationState extends NotificationState {
|
||||||
getClearIntentRequestCode());
|
getClearIntentRequestCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,5 +219,5 @@ index d64082d..9281899 100644
|
|||||||
* Gets a PendingIntent associated with an Intent to start an Activity. All notifications
|
* Gets a PendingIntent associated with an Intent to start an Activity. All notifications
|
||||||
* that starts an Activity must use this method to get a PendingIntent, which achieves two
|
* that starts an Activity must use this method to get a PendingIntent, which achieves two
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
||||||
|
@ -1,143 +0,0 @@
|
|||||||
From a544ce840f27fbf140b43652e76f6cc6c8b5b00e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Luca Stefani <luca.stefani.ge1@gmail.com>
|
|
||||||
Date: Sat, 28 Mar 2020 15:10:57 +0100
|
|
||||||
Subject: [PATCH 2/2] Properly set conversation as read
|
|
||||||
|
|
||||||
* We were currently set the whole conversation set as read
|
|
||||||
-> Get only the matching notification instead
|
|
||||||
|
|
||||||
Test: m, manual
|
|
||||||
Change-Id: I468e0d50f82129a029fb1f27bb9fa4fec45f2945
|
|
||||||
---
|
|
||||||
.../messaging/datamodel/BugleNotifications.java | 16 +++++++++++++++-
|
|
||||||
.../datamodel/MessageNotificationState.java | 8 --------
|
|
||||||
.../messaging/datamodel/NotificationState.java | 5 -----
|
|
||||||
.../messaging/receiver/NotificationReceiver.java | 11 ++++-------
|
|
||||||
src/com/android/messaging/ui/UIIntents.java | 2 +-
|
|
||||||
src/com/android/messaging/ui/UIIntentsImpl.java | 7 +++----
|
|
||||||
6 files changed, 23 insertions(+), 26 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java
|
|
||||||
index dbe86ff..c9c6fca 100644
|
|
||||||
--- a/src/com/android/messaging/datamodel/BugleNotifications.java
|
|
||||||
+++ b/src/com/android/messaging/datamodel/BugleNotifications.java
|
|
||||||
@@ -879,11 +879,25 @@ public class BugleNotifications {
|
|
||||||
|
|
||||||
private static void addReadAction(final NotificationCompat.Builder notifBuilder,
|
|
||||||
final WearableExtender wearableExtender, final NotificationState notificationState) {
|
|
||||||
+ if (!(notificationState instanceof MultiMessageNotificationState)) {
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+ final MultiMessageNotificationState multiMessageNotificationState =
|
|
||||||
+ (MultiMessageNotificationState) notificationState;
|
|
||||||
final Context context = Factory.get().getApplicationContext();
|
|
||||||
- final PendingIntent readPendingIntent = notificationState.getReadIntent();
|
|
||||||
+
|
|
||||||
+ final String conversationId = notificationState.mConversationIds.first();
|
|
||||||
+
|
|
||||||
+ final int requestCode = multiMessageNotificationState.getReadIntentRequestCode();
|
|
||||||
+ final PendingIntent readPendingIntent = UIIntents.get().getPendingIntentForMarkingAsRead(
|
|
||||||
+ Factory.get().getApplicationContext(),
|
|
||||||
+ conversationId,
|
|
||||||
+ requestCode);
|
|
||||||
+
|
|
||||||
final NotificationCompat.Action.Builder readActionBuilder =
|
|
||||||
new NotificationCompat.Action.Builder(R.drawable.ic_wear_read,
|
|
||||||
context.getString(R.string.notification_mark_as_read), readPendingIntent);
|
|
||||||
+
|
|
||||||
notifBuilder.addAction(readActionBuilder.build());
|
|
||||||
|
|
||||||
// Support the action on a wearable device as well
|
|
||||||
diff --git a/src/com/android/messaging/datamodel/MessageNotificationState.java b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
|
||||||
index b49774f..fd82f74 100644
|
|
||||||
--- a/src/com/android/messaging/datamodel/MessageNotificationState.java
|
|
||||||
+++ b/src/com/android/messaging/datamodel/MessageNotificationState.java
|
|
||||||
@@ -335,14 +335,6 @@ public abstract class MessageNotificationState extends NotificationState {
|
|
||||||
getClearIntentRequestCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
- @Override
|
|
||||||
- public PendingIntent getReadIntent() {
|
|
||||||
- return UIIntents.get().getPendingIntentForMarkingAsRead(
|
|
||||||
- Factory.get().getApplicationContext(),
|
|
||||||
- mConversationIds,
|
|
||||||
- getReadIntentRequestCode());
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
/**
|
|
||||||
* Notification for multiple messages in at least 2 different conversations.
|
|
||||||
*/
|
|
||||||
diff --git a/src/com/android/messaging/datamodel/NotificationState.java b/src/com/android/messaging/datamodel/NotificationState.java
|
|
||||||
index 4c11537..780cb8e 100644
|
|
||||||
--- a/src/com/android/messaging/datamodel/NotificationState.java
|
|
||||||
+++ b/src/com/android/messaging/datamodel/NotificationState.java
|
|
||||||
@@ -79,11 +79,6 @@ public abstract class NotificationState {
|
|
||||||
*/
|
|
||||||
public abstract PendingIntent getClearIntent();
|
|
||||||
|
|
||||||
- /**
|
|
||||||
- * The intent to be triggered when mark as read is pressed.
|
|
||||||
- */
|
|
||||||
- public abstract PendingIntent getReadIntent();
|
|
||||||
-
|
|
||||||
protected Uri getAttachmentUri() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
diff --git a/src/com/android/messaging/receiver/NotificationReceiver.java b/src/com/android/messaging/receiver/NotificationReceiver.java
|
|
||||||
index f87779c..ae30f03 100644
|
|
||||||
--- a/src/com/android/messaging/receiver/NotificationReceiver.java
|
|
||||||
+++ b/src/com/android/messaging/receiver/NotificationReceiver.java
|
|
||||||
@@ -54,13 +54,10 @@ public class NotificationReceiver extends BroadcastReceiver {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (intent.getAction().equals(UIIntents.ACTION_MARK_AS_READ)) {
|
|
||||||
- final String conversationIdSetString =
|
|
||||||
- intent.getStringExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID_SET);
|
|
||||||
- if (conversationIdSetString != null) {
|
|
||||||
- for (final String conversationId :
|
|
||||||
- ConversationIdSet.createSet(conversationIdSetString)) {
|
|
||||||
- MarkAsReadAction.markAsRead(conversationId);
|
|
||||||
- }
|
|
||||||
+ final String conversationId =
|
|
||||||
+ intent.getStringExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID);
|
|
||||||
+ if (conversationId != null) {
|
|
||||||
+ MarkAsReadAction.markAsRead(conversationId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
diff --git a/src/com/android/messaging/ui/UIIntents.java b/src/com/android/messaging/ui/UIIntents.java
|
|
||||||
index 144e831..ab81cab 100644
|
|
||||||
--- a/src/com/android/messaging/ui/UIIntents.java
|
|
||||||
+++ b/src/com/android/messaging/ui/UIIntents.java
|
|
||||||
@@ -332,7 +332,7 @@ public abstract class UIIntents {
|
|
||||||
* <p>This is intended to be used by notifications.
|
|
||||||
*/
|
|
||||||
public abstract PendingIntent getPendingIntentForMarkingAsRead(final Context context,
|
|
||||||
- final ConversationIdSet conversationIdSet, final int requestCode);
|
|
||||||
+ final String conversationId, final int requestCode);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a PendingIntent for showing low storage notifications.
|
|
||||||
diff --git a/src/com/android/messaging/ui/UIIntentsImpl.java b/src/com/android/messaging/ui/UIIntentsImpl.java
|
|
||||||
index 9281899..858072d 100644
|
|
||||||
--- a/src/com/android/messaging/ui/UIIntentsImpl.java
|
|
||||||
+++ b/src/com/android/messaging/ui/UIIntentsImpl.java
|
|
||||||
@@ -432,12 +432,11 @@ public class UIIntentsImpl extends UIIntents {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public PendingIntent getPendingIntentForMarkingAsRead(final Context context,
|
|
||||||
- final ConversationIdSet conversationIdSet, final int requestCode) {
|
|
||||||
+ final String conversationId, final int requestCode) {
|
|
||||||
final Intent intent = new Intent(context, NotificationReceiver.class);
|
|
||||||
intent.setAction(ACTION_MARK_AS_READ);
|
|
||||||
- if (conversationIdSet != null) {
|
|
||||||
- intent.putExtra(UI_INTENT_EXTRA_CONVERSATION_ID_SET,
|
|
||||||
- conversationIdSet.getDelimitedString());
|
|
||||||
+ if (conversationId != null) {
|
|
||||||
+ intent.putExtra(UI_INTENT_EXTRA_CONVERSATION_ID, conversationId);
|
|
||||||
}
|
|
||||||
return PendingIntent.getBroadcast(context,
|
|
||||||
requestCode, intent,
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,65 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
This partially reverts commit 554f63530a257db3194bd7c492e1c954eb11374d.
|
|
||||||
|
|
||||||
Change-Id: Id83207c766d6b0b23cd240b35936289c44026db5
|
|
||||||
---
|
|
||||||
res/raw/lineage_wizard_script.xml | 6 ------
|
|
||||||
res/raw/lineage_wizard_script_user.xml | 6 ------
|
|
||||||
res/raw/wizard_script.xml | 3 ---
|
|
||||||
3 files changed, 15 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/res/raw/lineage_wizard_script.xml b/res/raw/lineage_wizard_script.xml
|
|
||||||
index 7c87abd..af3df01 100644
|
|
||||||
--- a/res/raw/lineage_wizard_script.xml
|
|
||||||
+++ b/res/raw/lineage_wizard_script.xml
|
|
||||||
@@ -83,12 +83,6 @@
|
|
||||||
<WizardAction
|
|
||||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS;end"
|
|
||||||
id="lockscreen_settings">
|
|
||||||
- <result wizard:action="theme_settings" />
|
|
||||||
- </WizardAction>
|
|
||||||
-
|
|
||||||
- <WizardAction
|
|
||||||
- wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.THEME_SETTINGS;end"
|
|
||||||
- id="theme_settings">
|
|
||||||
<result wizard:action="navigation_settings" />
|
|
||||||
</WizardAction>
|
|
||||||
|
|
||||||
diff --git a/res/raw/lineage_wizard_script_user.xml b/res/raw/lineage_wizard_script_user.xml
|
|
||||||
index 15325c6..1522eda 100644
|
|
||||||
--- a/res/raw/lineage_wizard_script_user.xml
|
|
||||||
+++ b/res/raw/lineage_wizard_script_user.xml
|
|
||||||
@@ -35,12 +35,6 @@
|
|
||||||
<WizardAction
|
|
||||||
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS;end"
|
|
||||||
id="lockscreen_settings">
|
|
||||||
- <result wizard:action="theme_settings" />
|
|
||||||
- </WizardAction>
|
|
||||||
-
|
|
||||||
- <WizardAction
|
|
||||||
- wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.THEME_SETTINGS;end"
|
|
||||||
- id="theme_settings">
|
|
||||||
<result wizard:action="navigation_settings" />
|
|
||||||
</WizardAction>
|
|
||||||
|
|
||||||
diff --git a/res/raw/wizard_script.xml b/res/raw/wizard_script.xml
|
|
||||||
index 38ec267..ba93494 100644
|
|
||||||
--- a/res/raw/wizard_script.xml
|
|
||||||
+++ b/res/raw/wizard_script.xml
|
|
||||||
@@ -112,9 +112,6 @@
|
|
||||||
<result wizard:action="lineage_settings" />
|
|
||||||
</WizardAction>
|
|
||||||
<WizardAction wizard:uri="intent:#Intent;package=org.lineageos.setupwizard;action=org.lineageos.setupwizard.LINEAGE_SETTINGS;end" id="lineage_settings">
|
|
||||||
- <result wizard:action="theme_settings" />
|
|
||||||
- </WizardAction>
|
|
||||||
- <WizardAction wizard:uri="intent:#Intent;package=org.lineageos.setupwizard;action=org.lineageos.setupwizard.THEME_SETTINGS;end" id="theme_settings">
|
|
||||||
<result wizard:action="navigation_settings" />
|
|
||||||
</WizardAction>
|
|
||||||
<WizardAction wizard:uri="intent:#Intent;package=org.lineageos.setupwizard;action=org.lineageos.setupwizard.NAVIGATION_SETTINGS;end" id="navigation_settings">
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,448 @@
|
|||||||
|
From 69e5c49e18b9f33cebde3d54c69477ef2c18a756 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vachounet <vachounet@live.fr>
|
||||||
|
Date: Tue, 24 Nov 2020 05:49:46 +0000
|
||||||
|
Subject: [PATCH] Trebuchet: Move clear all button to actions view
|
||||||
|
|
||||||
|
Change-Id: I9d13247501ca8e1610c17adc204ad64dd4a04cec
|
||||||
|
---
|
||||||
|
.../RecentsViewStateController.java | 3 -
|
||||||
|
.../FallbackRecentsStateController.java | 3 -
|
||||||
|
.../quickstep/views/ClearAllButton.java | 112 ------------------
|
||||||
|
.../android/quickstep/views/RecentsView.java | 52 ++------
|
||||||
|
.../res/drawable/ic_clear_all_recents.xml | 21 ++++
|
||||||
|
.../res/layout/overview_actions_container.xml | 17 ++-
|
||||||
|
.../res/layout/overview_clear_all_button.xml | 27 -----
|
||||||
|
7 files changed, 44 insertions(+), 191 deletions(-)
|
||||||
|
delete mode 100644 quickstep/recents_ui_overrides/src/com/android/quickstep/views/ClearAllButton.java
|
||||||
|
create mode 100644 quickstep/res/drawable/ic_clear_all_recents.xml
|
||||||
|
delete mode 100644 quickstep/res/layout/overview_clear_all_button.xml
|
||||||
|
|
||||||
|
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsViewStateController.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsViewStateController.java
|
||||||
|
index 5ccc1e868..bc47c5a00 100644
|
||||||
|
--- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsViewStateController.java
|
||||||
|
+++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsViewStateController.java
|
||||||
|
@@ -35,7 +35,6 @@ import com.android.launcher3.anim.PendingAnimation;
|
||||||
|
import com.android.launcher3.anim.PropertySetter;
|
||||||
|
import com.android.launcher3.states.StateAnimationConfig;
|
||||||
|
import com.android.launcher3.util.MultiValueAlpha;
|
||||||
|
-import com.android.quickstep.views.ClearAllButton;
|
||||||
|
import com.android.quickstep.views.LauncherRecentsView;
|
||||||
|
import com.android.quickstep.views.RecentsView;
|
||||||
|
|
||||||
|
@@ -84,8 +83,6 @@ public final class RecentsViewStateController extends
|
||||||
|
private void setAlphas(PropertySetter propertySetter, StateAnimationConfig config,
|
||||||
|
LauncherState state) {
|
||||||
|
float buttonAlpha = (state.getVisibleElements(mLauncher) & OVERVIEW_BUTTONS) != 0 ? 1 : 0;
|
||||||
|
- propertySetter.setFloat(mRecentsView.getClearAllButton(), ClearAllButton.VISIBILITY_ALPHA,
|
||||||
|
- buttonAlpha, LINEAR);
|
||||||
|
propertySetter.setFloat(mLauncher.getActionsView().getVisibilityAlpha(),
|
||||||
|
MultiValueAlpha.VALUE, buttonAlpha, config.getInterpolator(
|
||||||
|
ANIM_OVERVIEW_ACTIONS_FADE, LINEAR));
|
||||||
|
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/FallbackRecentsStateController.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/FallbackRecentsStateController.java
|
||||||
|
index 24a761066..7af77ef60 100644
|
||||||
|
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/FallbackRecentsStateController.java
|
||||||
|
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/FallbackRecentsStateController.java
|
||||||
|
@@ -35,7 +35,6 @@ import com.android.launcher3.statemanager.StateManager.StateHandler;
|
||||||
|
import com.android.launcher3.states.StateAnimationConfig;
|
||||||
|
import com.android.launcher3.util.MultiValueAlpha;
|
||||||
|
import com.android.quickstep.RecentsActivity;
|
||||||
|
-import com.android.quickstep.views.ClearAllButton;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* State controller for fallback recents activity
|
||||||
|
@@ -78,8 +77,6 @@ public class FallbackRecentsStateController implements StateHandler<RecentsState
|
||||||
|
private void setProperties(RecentsState state, StateAnimationConfig config,
|
||||||
|
PropertySetter setter) {
|
||||||
|
float buttonAlpha = state.hasButtons() ? 1 : 0;
|
||||||
|
- setter.setFloat(mRecentsView.getClearAllButton(), ClearAllButton.VISIBILITY_ALPHA,
|
||||||
|
- buttonAlpha, LINEAR);
|
||||||
|
setter.setFloat(mActivity.getActionsView().getVisibilityAlpha(),
|
||||||
|
MultiValueAlpha.VALUE, buttonAlpha, LINEAR);
|
||||||
|
|
||||||
|
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ClearAllButton.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ClearAllButton.java
|
||||||
|
deleted file mode 100644
|
||||||
|
index fd74357f3..000000000
|
||||||
|
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ClearAllButton.java
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,112 +0,0 @@
|
||||||
|
-/*
|
||||||
|
- * Copyright (C) 2018 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.
|
||||||
|
- */
|
||||||
|
-
|
||||||
|
-package com.android.quickstep.views;
|
||||||
|
-
|
||||||
|
-import android.content.Context;
|
||||||
|
-import android.util.AttributeSet;
|
||||||
|
-import android.util.FloatProperty;
|
||||||
|
-import android.widget.Button;
|
||||||
|
-
|
||||||
|
-import com.android.launcher3.touch.PagedOrientationHandler;
|
||||||
|
-import com.android.quickstep.views.RecentsView.PageCallbacks;
|
||||||
|
-import com.android.quickstep.views.RecentsView.ScrollState;
|
||||||
|
-
|
||||||
|
-public class ClearAllButton extends Button implements PageCallbacks {
|
||||||
|
-
|
||||||
|
- public static final FloatProperty<ClearAllButton> VISIBILITY_ALPHA =
|
||||||
|
- new FloatProperty<ClearAllButton>("visibilityAlpha") {
|
||||||
|
- @Override
|
||||||
|
- public Float get(ClearAllButton view) {
|
||||||
|
- return view.mVisibilityAlpha;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- @Override
|
||||||
|
- public void setValue(ClearAllButton view, float v) {
|
||||||
|
- view.setVisibilityAlpha(v);
|
||||||
|
- }
|
||||||
|
- };
|
||||||
|
-
|
||||||
|
- private float mScrollAlpha = 1;
|
||||||
|
- private float mContentAlpha = 1;
|
||||||
|
- private float mVisibilityAlpha = 1;
|
||||||
|
-
|
||||||
|
- private boolean mIsRtl;
|
||||||
|
-
|
||||||
|
- private int mScrollOffset;
|
||||||
|
-
|
||||||
|
- public ClearAllButton(Context context, AttributeSet attrs) {
|
||||||
|
- super(context, attrs);
|
||||||
|
- mIsRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- @Override
|
||||||
|
- protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||||
|
- super.onLayout(changed, left, top, right, bottom);
|
||||||
|
- PagedOrientationHandler orientationHandler = getRecentsView().getPagedOrientationHandler();
|
||||||
|
- mScrollOffset = orientationHandler.getClearAllScrollOffset(getRecentsView(), mIsRtl);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- private RecentsView getRecentsView() {
|
||||||
|
- return (RecentsView) getParent();
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- @Override
|
||||||
|
- public void onRtlPropertiesChanged(int layoutDirection) {
|
||||||
|
- super.onRtlPropertiesChanged(layoutDirection);
|
||||||
|
- mIsRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- @Override
|
||||||
|
- public boolean hasOverlappingRendering() {
|
||||||
|
- return false;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- public void setContentAlpha(float alpha) {
|
||||||
|
- if (mContentAlpha != alpha) {
|
||||||
|
- mContentAlpha = alpha;
|
||||||
|
- updateAlpha();
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- public void setVisibilityAlpha(float alpha) {
|
||||||
|
- if (mVisibilityAlpha != alpha) {
|
||||||
|
- mVisibilityAlpha = alpha;
|
||||||
|
- updateAlpha();
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- @Override
|
||||||
|
- public void onPageScroll(ScrollState scrollState) {
|
||||||
|
- PagedOrientationHandler orientationHandler = getRecentsView().getPagedOrientationHandler();
|
||||||
|
- float orientationSize = orientationHandler.getPrimaryValue(getWidth(), getHeight());
|
||||||
|
- if (orientationSize == 0) {
|
||||||
|
- return;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- float shift = Math.min(scrollState.scrollFromEdge, orientationSize);
|
||||||
|
- float translation = mIsRtl ? (mScrollOffset - shift) : (mScrollOffset + shift);
|
||||||
|
- orientationHandler.setPrimaryAndResetSecondaryTranslate(this, translation);
|
||||||
|
- mScrollAlpha = 1 - shift / orientationSize;
|
||||||
|
- updateAlpha();
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- private void updateAlpha() {
|
||||||
|
- final float alpha = mScrollAlpha * mContentAlpha * mVisibilityAlpha;
|
||||||
|
- setAlpha(alpha);
|
||||||
|
- setClickable(alpha == 1);
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
|
||||||
|
index 0130cae47..bfdd79e5f 100644
|
||||||
|
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
|
||||||
|
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
|
||||||
|
@@ -85,6 +85,7 @@ import android.view.ViewGroup;
|
||||||
|
import android.view.accessibility.AccessibilityEvent;
|
||||||
|
import android.view.accessibility.AccessibilityNodeInfo;
|
||||||
|
import android.view.animation.Interpolator;
|
||||||
|
+import android.widget.Button;
|
||||||
|
import android.widget.ListView;
|
||||||
|
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
@@ -268,8 +269,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
private final float mFastFlingVelocity;
|
||||||
|
private final RecentsModel mModel;
|
||||||
|
private final int mTaskTopMargin;
|
||||||
|
- private final ClearAllButton mClearAllButton;
|
||||||
|
- private final Rect mClearAllButtonDeadZoneRect = new Rect();
|
||||||
|
+ private Button mClearAllButton;
|
||||||
|
private final Rect mTaskViewDeadZoneRect = new Rect();
|
||||||
|
|
||||||
|
private final ScrollState mScrollState = new ScrollState();
|
||||||
|
@@ -442,9 +442,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
mModel = RecentsModel.INSTANCE.get(context);
|
||||||
|
mIdp = InvariantDeviceProfile.INSTANCE.get(context);
|
||||||
|
|
||||||
|
- mClearAllButton = (ClearAllButton) LayoutInflater.from(context)
|
||||||
|
- .inflate(R.layout.overview_clear_all_button, this, false);
|
||||||
|
- mClearAllButton.setOnClickListener(this::dismissAllTasks);
|
||||||
|
mTaskViewPool = new ViewPool<>(context, this, R.layout.task, 20 /* max size */,
|
||||||
|
10 /* initial size */);
|
||||||
|
|
||||||
|
@@ -550,6 +547,8 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
public void init(OverviewActionsView actionsView) {
|
||||||
|
mActionsView = actionsView;
|
||||||
|
mActionsView.updateHiddenFlags(HIDDEN_NO_TASKS, getTaskViewCount() == 0);
|
||||||
|
+ mClearAllButton = (Button) mActionsView.findViewById(R.id.clear_all);
|
||||||
|
+ mClearAllButton.setOnClickListener(this::dismissAllTasks);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -620,7 +619,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateTaskStartIndex(View affectingView) {
|
||||||
|
- if (!(affectingView instanceof TaskView) && !(affectingView instanceof ClearAllButton)) {
|
||||||
|
+ if (!(affectingView instanceof TaskView)) {
|
||||||
|
int childCount = getChildCount();
|
||||||
|
|
||||||
|
mTaskViewStartIndex = 0;
|
||||||
|
@@ -674,7 +673,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
* button fully visible, center page is Clear All button.
|
||||||
|
*/
|
||||||
|
public boolean isClearAllHidden() {
|
||||||
|
- return mClearAllButton.getAlpha() != 1f;
|
||||||
|
+ return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -732,11 +731,8 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
mTouchDownToStartHome = true;
|
||||||
|
} else {
|
||||||
|
updateDeadZoneRects();
|
||||||
|
- final boolean clearAllButtonDeadZoneConsumed =
|
||||||
|
- mClearAllButton.getAlpha() == 1
|
||||||
|
- && mClearAllButtonDeadZoneRect.contains(x, y);
|
||||||
|
final boolean cameFromNavBar = (ev.getEdgeFlags() & EDGE_NAV_BAR) != 0;
|
||||||
|
- if (!clearAllButtonDeadZoneConsumed && !cameFromNavBar
|
||||||
|
+ if (!cameFromNavBar
|
||||||
|
&& !mTaskViewDeadZoneRect.contains(x + getScrollX(), y)) {
|
||||||
|
mTouchDownToStartHome = true;
|
||||||
|
}
|
||||||
|
@@ -783,18 +779,12 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
|
||||||
|
final int requiredTaskCount = tasks.size();
|
||||||
|
if (getTaskViewCount() != requiredTaskCount) {
|
||||||
|
- if (indexOfChild(mClearAllButton) != -1) {
|
||||||
|
- removeView(mClearAllButton);
|
||||||
|
- }
|
||||||
|
for (int i = getTaskViewCount(); i < requiredTaskCount; i++) {
|
||||||
|
addView(mTaskViewPool.getView());
|
||||||
|
}
|
||||||
|
while (getTaskViewCount() > requiredTaskCount) {
|
||||||
|
removeView(getChildAt(getChildCount() - 1));
|
||||||
|
}
|
||||||
|
- if (requiredTaskCount > 0) {
|
||||||
|
- addView(mClearAllButton);
|
||||||
|
- }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rebind and reset all task views
|
||||||
|
@@ -834,16 +824,10 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
for (int i = getTaskViewCount() - 1; i >= 0; i--) {
|
||||||
|
removeView(getTaskViewAt(i));
|
||||||
|
}
|
||||||
|
- if (indexOfChild(mClearAllButton) != -1) {
|
||||||
|
- removeView(mClearAllButton);
|
||||||
|
- }
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTaskViewCount() {
|
||||||
|
int taskViewCount = getChildCount() - mTaskViewStartIndex;
|
||||||
|
- if (indexOfChild(mClearAllButton) != -1) {
|
||||||
|
- taskViewCount--;
|
||||||
|
- }
|
||||||
|
return taskViewCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -1199,9 +1183,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
// Add an empty view for now until the task plan is loaded and applied
|
||||||
|
final TaskView taskView = mTaskViewPool.getView();
|
||||||
|
addView(taskView, mTaskViewStartIndex);
|
||||||
|
- if (wasEmpty) {
|
||||||
|
- addView(mClearAllButton);
|
||||||
|
- }
|
||||||
|
// The temporary running task is only used for the duration between the start of the
|
||||||
|
// gesture and the task list is loaded and applied
|
||||||
|
mTmpRunningTask = Task.from(new TaskKey(runningTaskInfo), runningTaskInfo, false);
|
||||||
|
@@ -1538,7 +1519,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
removeViewInLayout(taskView);
|
||||||
|
|
||||||
|
if (getTaskViewCount() == 0) {
|
||||||
|
- removeViewInLayout(mClearAllButton);
|
||||||
|
startHome();
|
||||||
|
} else {
|
||||||
|
snapToPageImmediately(pageToSnapTo);
|
||||||
|
@@ -1677,7 +1657,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
child.setStableAlpha(alpha);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- mClearAllButton.setContentAlpha(mContentAlpha);
|
||||||
|
int alphaInt = Math.round(alpha * 255);
|
||||||
|
mEmptyMessagePaint.setAlpha(alphaInt);
|
||||||
|
mEmptyIcon.setAlpha(alphaInt);
|
||||||
|
@@ -1740,10 +1719,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
setLayoutDirection(mIsRtl
|
||||||
|
? View.LAYOUT_DIRECTION_RTL
|
||||||
|
: View.LAYOUT_DIRECTION_LTR);
|
||||||
|
- mClearAllButton.setLayoutDirection(mIsRtl
|
||||||
|
- ? View.LAYOUT_DIRECTION_LTR
|
||||||
|
- : View.LAYOUT_DIRECTION_RTL);
|
||||||
|
- mClearAllButton.setRotation(mOrientationHandler.getDegreesRotated());
|
||||||
|
mActivity.getDragLayer().recreateControllers();
|
||||||
|
boolean isInLandscape = mOrientationState.getTouchRotation() != ROTATION_0
|
||||||
|
|| mOrientationState.getRecentsActivityRotation() != ROTATION_0;
|
||||||
|
@@ -1963,15 +1938,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateDeadZoneRects() {
|
||||||
|
- // Get the deadzone rect surrounding the clear all button to not dismiss overview to home
|
||||||
|
- mClearAllButtonDeadZoneRect.setEmpty();
|
||||||
|
- if (mClearAllButton.getWidth() > 0) {
|
||||||
|
- int verticalMargin = getResources()
|
||||||
|
- .getDimensionPixelSize(R.dimen.recents_clear_all_deadzone_vertical_margin);
|
||||||
|
- mClearAllButton.getHitRect(mClearAllButtonDeadZoneRect);
|
||||||
|
- mClearAllButtonDeadZoneRect.inset(-getPaddingRight() / 2, -verticalMargin);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
// Get the deadzone rect between the task views
|
||||||
|
mTaskViewDeadZoneRect.setEmpty();
|
||||||
|
int count = getTaskViewCount();
|
||||||
|
@@ -2304,10 +2270,6 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
||||||
|
return super.computeMaxScroll();
|
||||||
|
}
|
||||||
|
|
||||||
|
- public ClearAllButton getClearAllButton() {
|
||||||
|
- return mClearAllButton;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
@Override
|
||||||
|
protected boolean onOverscroll(int amount) {
|
||||||
|
// overscroll should only be accepted on -1 direction (for clear all button)
|
||||||
|
diff --git a/quickstep/res/drawable/ic_clear_all_recents.xml b/quickstep/res/drawable/ic_clear_all_recents.xml
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000..7cba0220b
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/quickstep/res/drawable/ic_clear_all_recents.xml
|
||||||
|
@@ -0,0 +1,21 @@
|
||||||
|
+<!-- Copyright (C) 2020 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.
|
||||||
|
+-->
|
||||||
|
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
+ android:height="24dp"
|
||||||
|
+ android:width="24dp"
|
||||||
|
+ android:viewportWidth="24"
|
||||||
|
+ android:viewportHeight="24">
|
||||||
|
+ <path android:fillColor="#FF000000" android:pathData="M5,13H19V11H5M3,17H17V15H3M7,7V9H21V7" />
|
||||||
|
+</vector>
|
||||||
|
diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml
|
||||||
|
index 258f24a54..302cabf8a 100644
|
||||||
|
--- a/quickstep/res/layout/overview_actions_container.xml
|
||||||
|
+++ b/quickstep/res/layout/overview_actions_container.xml
|
||||||
|
@@ -45,6 +45,21 @@
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
+ <Button
|
||||||
|
+ style="@style/OverviewActionButton"
|
||||||
|
+ android:id="@+id/clear_all"
|
||||||
|
+ android:layout_width="wrap_content"
|
||||||
|
+ android:layout_height="wrap_content"
|
||||||
|
+ android:text="@string/recents_clear_all"
|
||||||
|
+ android:theme="@style/ThemeControlHighlightWorkspaceColor"
|
||||||
|
+ android:drawableStart="@drawable/ic_clear_all_recents"
|
||||||
|
+ />
|
||||||
|
+
|
||||||
|
+ <Space
|
||||||
|
+ android:layout_width="0dp"
|
||||||
|
+ android:layout_height="1dp"
|
||||||
|
+ android:layout_weight="1" />
|
||||||
|
+
|
||||||
|
<Button
|
||||||
|
android:id="@+id/action_share"
|
||||||
|
style="@style/OverviewActionButton"
|
||||||
|
@@ -63,4 +78,4 @@
|
||||||
|
android:visibility="gone" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
-</com.android.quickstep.views.OverviewActionsView>
|
||||||
|
\ No newline at end of file
|
||||||
|
+</com.android.quickstep.views.OverviewActionsView>
|
||||||
|
diff --git a/quickstep/res/layout/overview_clear_all_button.xml b/quickstep/res/layout/overview_clear_all_button.xml
|
||||||
|
deleted file mode 100644
|
||||||
|
index fc06ba057..000000000
|
||||||
|
--- a/quickstep/res/layout/overview_clear_all_button.xml
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,27 +0,0 @@
|
||||||
|
-<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
-<!--
|
||||||
|
- Copyright (C) 2018 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.
|
||||||
|
--->
|
||||||
|
-<com.android.quickstep.views.ClearAllButton
|
||||||
|
- xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
- style="@android:style/Widget.DeviceDefault.Button.Borderless"
|
||||||
|
- android:id="@+id/clear_all"
|
||||||
|
- android:layout_width="wrap_content"
|
||||||
|
- android:layout_height="wrap_content"
|
||||||
|
- android:text="@string/recents_clear_all"
|
||||||
|
- android:textColor="?attr/workspaceTextColor"
|
||||||
|
- android:textSize="14sp"
|
||||||
|
- android:translationY="@dimen/task_thumbnail_half_top_margin"
|
||||||
|
- />
|
||||||
|
\ No newline at end of file
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
From 80d66b7f255176e7cf761ce9c62c436cb729df71 Mon Sep 17 00:00:00 2001
|
From 7a633a53d8e20e2d976597a332bf5ba855ec1f75 Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Thu, 5 Sep 2019 02:08:22 +0000
|
Date: Thu, 5 Sep 2019 02:08:22 +0000
|
||||||
Subject: [PATCH 1/2] vendor_lineage: Log privapp-permissions whitelist
|
Subject: [PATCH] vendor_lineage: Log privapp-permissions whitelist violations
|
||||||
violations instead
|
instead
|
||||||
|
|
||||||
Change-Id: I49dba61f332253e291a65e79ca70d9a07d45bb07
|
Change-Id: I49dba61f332253e291a65e79ca70d9a07d45bb07
|
||||||
---
|
---
|
||||||
@ -10,12 +10,12 @@ Change-Id: I49dba61f332253e291a65e79ca70d9a07d45bb07
|
|||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/config/common.mk b/config/common.mk
|
diff --git a/config/common.mk b/config/common.mk
|
||||||
index 7048c9cb..9dc5c710 100644
|
index 2fe9cb01..7d971bba 100644
|
||||||
--- a/config/common.mk
|
--- a/config/common.mk
|
||||||
+++ b/config/common.mk
|
+++ b/config/common.mk
|
||||||
@@ -74,9 +74,9 @@ PRODUCT_COPY_FILES += \
|
@@ -70,9 +70,9 @@ PRODUCT_COPY_FILES += \
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
vendor/lineage/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/org.lineageos.android.xml
|
vendor/lineage/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml
|
||||||
|
|
||||||
-# Enforce privapp-permissions whitelist
|
-# Enforce privapp-permissions whitelist
|
||||||
+# Log privapp-permissions whitelist violations
|
+# Log privapp-permissions whitelist violations
|
||||||
@ -23,8 +23,8 @@ index 7048c9cb..9dc5c710 100644
|
|||||||
- ro.control_privapp_permissions=enforce
|
- ro.control_privapp_permissions=enforce
|
||||||
+ ro.control_privapp_permissions=log
|
+ ro.control_privapp_permissions=log
|
||||||
|
|
||||||
ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true)
|
# Include AOSP audio files
|
||||||
# Lineage SDK
|
include vendor/lineage/config/aosp_audio.mk
|
||||||
--
|
--
|
||||||
2.25.1
|
2.17.1
|
||||||
|
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
From 9218670153d5aa40fd05f51d89240fc7859293a2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Mon, 14 Mar 2022 03:44:59 +0000
|
|
||||||
Subject: [PATCH 2/2] Revert "overlay: Default to night mode"
|
|
||||||
|
|
||||||
This reverts commit 4d4e39a845d54e37b20728f1448ae6e3fde4b97d.
|
|
||||||
|
|
||||||
Change-Id: I036bdd576e536392cf41e3c536d5ca2eb04e5a0f
|
|
||||||
---
|
|
||||||
.../common/frameworks/base/core/res/res/values/config.xml | 8 --------
|
|
||||||
1 file changed, 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/overlay/common/frameworks/base/core/res/res/values/config.xml b/overlay/common/frameworks/base/core/res/res/values/config.xml
|
|
||||||
index 94687fe1..579b98f7 100644
|
|
||||||
--- a/overlay/common/frameworks/base/core/res/res/values/config.xml
|
|
||||||
+++ b/overlay/common/frameworks/base/core/res/res/values/config.xml
|
|
||||||
@@ -146,14 +146,6 @@
|
|
||||||
<!-- Whether this device is supporting the camera toggle -->
|
|
||||||
<bool name="config_supportsCamToggle">true</bool>
|
|
||||||
|
|
||||||
- <!-- Control the default night mode to use when there is no other mode override set.
|
|
||||||
- One of the following values (see UiModeManager.java):
|
|
||||||
- 0 - MODE_NIGHT_AUTO
|
|
||||||
- 1 - MODE_NIGHT_NO
|
|
||||||
- 2 - MODE_NIGHT_YES
|
|
||||||
- -->
|
|
||||||
- <integer name="config_defaultNightMode">2</integer>
|
|
||||||
-
|
|
||||||
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
|
|
||||||
in hardware. -->
|
|
||||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
|||||||
|
From 54ae0f29ba89e7dc79b69540f78cdabdd943a0d3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Tue, 30 Nov 2021 12:58:00 +0000
|
||||||
|
Subject: [PATCH] SearchLauncher: Adapt to Trebuchet
|
||||||
|
|
||||||
|
---
|
||||||
|
apps/SearchLauncher/Android.mk | 4 ++--
|
||||||
|
apps/SearchLauncher/AndroidManifest.xml | 4 +++-
|
||||||
|
2 files changed, 5 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/apps/SearchLauncher/Android.mk b/apps/SearchLauncher/Android.mk
|
||||||
|
index 0b7f7d4..91da3c8 100644
|
||||||
|
--- a/apps/SearchLauncher/Android.mk
|
||||||
|
+++ b/apps/SearchLauncher/Android.mk
|
||||||
|
@@ -23,7 +23,7 @@ LOCAL_USE_AAPT2 := true
|
||||||
|
LOCAL_AAPT2_ONLY := true
|
||||||
|
|
||||||
|
# Relative path for AOSP Launcher3 directory
|
||||||
|
-LAUNCHER_PATH := ../../../../packages/apps/Launcher3
|
||||||
|
+LAUNCHER_PATH := ../../../../packages/apps/Trebuchet
|
||||||
|
|
||||||
|
LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
|
||||||
|
LOCAL_STATIC_JAVA_LIBRARIES := lib_launcherClient
|
||||||
|
@@ -60,7 +60,7 @@ LOCAL_USE_AAPT2 := true
|
||||||
|
LOCAL_AAPT2_ONLY := true
|
||||||
|
|
||||||
|
# Relative path for AOSP Launcher3 directory
|
||||||
|
-LAUNCHER_PATH := ../../../../packages/apps/Launcher3
|
||||||
|
+LAUNCHER_PATH := ../../../../packages/apps/Trebuchet
|
||||||
|
|
||||||
|
LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
|
||||||
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||||
|
diff --git a/apps/SearchLauncher/AndroidManifest.xml b/apps/SearchLauncher/AndroidManifest.xml
|
||||||
|
index 6f48d23..f8ca8e3 100644
|
||||||
|
--- a/apps/SearchLauncher/AndroidManifest.xml
|
||||||
|
+++ b/apps/SearchLauncher/AndroidManifest.xml
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
-->
|
||||||
|
<manifest
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
+ xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
package="com.android.launcher3">
|
||||||
|
<uses-sdk android:targetSdkVersion="29" android:minSdkVersion="25"/>
|
||||||
|
<!--
|
||||||
|
@@ -36,7 +37,8 @@
|
||||||
|
android:theme="@style/AppTheme"
|
||||||
|
android:largeHeap="@bool/config_largeHeap"
|
||||||
|
android:restoreAnyVersion="true"
|
||||||
|
- android:supportsRtl="true" >
|
||||||
|
+ android:supportsRtl="true"
|
||||||
|
+ tools:replace="android:icon" >
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Main launcher activity. When extending only change the name, and keep all the
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,27 +1,27 @@
|
|||||||
From 3b91dda8987fcc5f4ccb33cff692f58d39b2f06d Mon Sep 17 00:00:00 2001
|
From f451664bce7527eb460615dfba0a5e4ad14a1847 Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Sun, 20 Jun 2021 09:08:43 +0000
|
Date: Sun, 20 Jun 2021 09:08:43 +0000
|
||||||
Subject: [PATCH 1/2] build: Integrate prop modifications (1/2)
|
Subject: [PATCH] build: Integrate prop modifications (1/2)
|
||||||
|
|
||||||
Change-Id: I24f54937e3e542b7c29ea86d24e3f523583a0c61
|
Change-Id: I24f54937e3e542b7c29ea86d24e3f523583a0c61
|
||||||
---
|
---
|
||||||
tools/buildinfo.sh | 7 +++++--
|
tools/buildinfo.sh | 9 +++++++--
|
||||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
|
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
|
||||||
index e68162a6fe..a7d9f5bdcd 100755
|
index 954a01fb2..b3705cb6b 100755
|
||||||
--- a/tools/buildinfo.sh
|
--- a/tools/buildinfo.sh
|
||||||
+++ b/tools/buildinfo.sh
|
+++ b/tools/buildinfo.sh
|
||||||
@@ -9,7 +9,7 @@ if [ "$BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT" = "true" ] ; then
|
@@ -4,7 +4,7 @@ echo "# begin build properties"
|
||||||
else
|
echo "# autogenerated by buildinfo.sh"
|
||||||
echo "ro.build.id?=$BUILD_ID"
|
|
||||||
fi
|
echo "ro.build.id=$BUILD_ID"
|
||||||
-echo "ro.build.display.id?=$BUILD_DISPLAY_ID"
|
-echo "ro.build.display.id=$BUILD_DISPLAY_ID"
|
||||||
+echo "ro.build.display.id?=$BUILD_ID"
|
+echo "ro.build.display.id=$BUILD_ID"
|
||||||
echo "ro.build.version.incremental=$BUILD_NUMBER"
|
echo "ro.build.version.incremental=$BUILD_NUMBER"
|
||||||
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
|
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
|
||||||
echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
|
echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
|
||||||
@@ -23,7 +23,7 @@ echo "ro.build.version.release_or_preview_display=$PLATFORM_DISPLAY_VERSION"
|
@@ -16,7 +16,7 @@ echo "ro.build.version.release_or_codename=$PLATFORM_VERSION"
|
||||||
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
||||||
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
|
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
|
||||||
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
|
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
|
||||||
@ -30,15 +30,17 @@ index e68162a6fe..a7d9f5bdcd 100755
|
|||||||
echo "ro.build.date.utc=`$DATE +%s`"
|
echo "ro.build.date.utc=`$DATE +%s`"
|
||||||
echo "ro.build.type=$TARGET_BUILD_TYPE"
|
echo "ro.build.type=$TARGET_BUILD_TYPE"
|
||||||
echo "ro.build.user=$BUILD_USERNAME"
|
echo "ro.build.user=$BUILD_USERNAME"
|
||||||
@@ -57,5 +57,8 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
|
@@ -54,5 +54,10 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "ro.lineage.device=$LINEAGE_DEVICE"
|
echo "ro.lineage.device=$LINEAGE_DEVICE"
|
||||||
+echo "ro.lineage.version=LineageOS 21 Self-built CGMod"
|
+echo "ro.lineage.version=LineageOS 18.1 Self-built CGMod"
|
||||||
+echo "ro.lineage.display.version=LineageOS 21 Self-built CGMod"
|
+echo "ro.lineage.display.version=LineageOS 18.1 Self-built CGMod"
|
||||||
+echo "ro.modversion=LineageOS 21 Self-built CGMod"
|
+echo "ro.modversion=LineageOS 18.1 Self-built CGMod"
|
||||||
|
+
|
||||||
|
+echo "lockscreen.rot_override=true"
|
||||||
|
|
||||||
echo "# end build properties"
|
echo "# end build properties"
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
From 45dd8686e204f58063348a9ba5caeb2249ae85a5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 16 Oct 2021 00:39:15 +0000
|
|
||||||
Subject: [PATCH 2/2] build: Remove Stk (1/2)
|
|
||||||
|
|
||||||
Change-Id: I24ef17c74c3137a11b463cde96c74d0edc853edd
|
|
||||||
---
|
|
||||||
target/product/generic_system.mk | 1 -
|
|
||||||
1 file changed, 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/target/product/generic_system.mk b/target/product/generic_system.mk
|
|
||||||
index 7aff62c39f..b5bf7b3a57 100644
|
|
||||||
--- a/target/product/generic_system.mk
|
|
||||||
+++ b/target/product/generic_system.mk
|
|
||||||
@@ -33,7 +33,6 @@ PRODUCT_PACKAGES += \
|
|
||||||
LiveWallpapersPicker \
|
|
||||||
PartnerBookmarksProvider \
|
|
||||||
preinstalled-packages-platform-generic-system.xml \
|
|
||||||
- Stk \
|
|
||||||
Tag \
|
|
||||||
|
|
||||||
ifeq ($(RELEASE_AVATAR_PICKER_APP),true)
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,159 +0,0 @@
|
|||||||
From ed95d24fc0033ae71a55d5177699ffdf51e9ee29 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Mon, 22 Apr 2024 23:34:04 +0800
|
|
||||||
Subject: [PATCH 01/22] Add MotoHelloUINavbarOverlay (1/2)
|
|
||||||
|
|
||||||
Redrawn after extracted SVGs, resized and adjusted stroke width
|
|
||||||
|
|
||||||
Change-Id: Idd8deb529ab39444737676d7bdba1c52555d6661
|
|
||||||
---
|
|
||||||
packages/overlays/Android.bp | 1 +
|
|
||||||
.../MotoHelloUINavbarOverlay/Android.bp | 28 +++++++++++++++++++
|
|
||||||
.../AndroidManifest.xml | 22 +++++++++++++++
|
|
||||||
.../res/drawable/ic_sysbar_back.xml | 12 ++++++++
|
|
||||||
.../res/drawable/ic_sysbar_home.xml | 11 ++++++++
|
|
||||||
.../res/drawable/ic_sysbar_recent.xml | 19 +++++++++++++
|
|
||||||
6 files changed, 93 insertions(+)
|
|
||||||
create mode 100644 packages/overlays/MotoHelloUINavbarOverlay/Android.bp
|
|
||||||
create mode 100644 packages/overlays/MotoHelloUINavbarOverlay/AndroidManifest.xml
|
|
||||||
create mode 100644 packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_back.xml
|
|
||||||
create mode 100644 packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_home.xml
|
|
||||||
create mode 100644 packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_recent.xml
|
|
||||||
|
|
||||||
diff --git a/packages/overlays/Android.bp b/packages/overlays/Android.bp
|
|
||||||
index 5e001fba6aa1..8913b58807e6 100644
|
|
||||||
--- a/packages/overlays/Android.bp
|
|
||||||
+++ b/packages/overlays/Android.bp
|
|
||||||
@@ -28,6 +28,7 @@ phony {
|
|
||||||
"DisplayCutoutEmulationTallOverlay",
|
|
||||||
"DisplayCutoutEmulationWaterfallOverlay",
|
|
||||||
"FontNotoSerifSourceOverlay",
|
|
||||||
+ "MotoHelloUINavbarOverlay",
|
|
||||||
"NavigationBarMode3ButtonOverlay",
|
|
||||||
"NavigationBarModeGesturalOverlay",
|
|
||||||
"NavigationBarModeGesturalOverlayNarrowBack",
|
|
||||||
diff --git a/packages/overlays/MotoHelloUINavbarOverlay/Android.bp b/packages/overlays/MotoHelloUINavbarOverlay/Android.bp
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..06515997990a
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/overlays/MotoHelloUINavbarOverlay/Android.bp
|
|
||||||
@@ -0,0 +1,28 @@
|
|
||||||
+//
|
|
||||||
+// Copyright 2021, 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.
|
|
||||||
+//
|
|
||||||
+package {
|
|
||||||
+ // See: http://go/android-license-faq
|
|
||||||
+ // A large-scale-change added 'default_applicable_licenses' to import
|
|
||||||
+ // all of the 'license_kinds' from "frameworks_base_license"
|
|
||||||
+ // to get the below license kinds:
|
|
||||||
+ // SPDX-license-identifier-Apache-2.0
|
|
||||||
+ default_applicable_licenses: ["frameworks_base_license"],
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+runtime_resource_overlay {
|
|
||||||
+ name: "MotoHelloUINavbarOverlay",
|
|
||||||
+ product_specific: true,
|
|
||||||
+}
|
|
||||||
diff --git a/packages/overlays/MotoHelloUINavbarOverlay/AndroidManifest.xml b/packages/overlays/MotoHelloUINavbarOverlay/AndroidManifest.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..25646b2c4603
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/overlays/MotoHelloUINavbarOverlay/AndroidManifest.xml
|
|
||||||
@@ -0,0 +1,22 @@
|
|
||||||
+<!--
|
|
||||||
+ ~ Copyright (C) 2021 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.
|
|
||||||
+ -->
|
|
||||||
+
|
|
||||||
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
+ package="com.android.systemui.navbar.motohelloui"
|
|
||||||
+ android:versionCode="1"
|
|
||||||
+ android:versionName="1.0">
|
|
||||||
+ <overlay android:targetPackage="com.android.systemui" android:priority="1337" android:isStatic="true"/>
|
|
||||||
+</manifest>
|
|
||||||
diff --git a/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_back.xml b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_back.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..2fe4ba43b89b
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_back.xml
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
+ android:height="24dp"
|
|
||||||
+ android:width="24dp"
|
|
||||||
+ android:autoMirrored="true"
|
|
||||||
+ android:viewportWidth="24.0"
|
|
||||||
+ android:viewportHeight="24.0">
|
|
||||||
+ <path
|
|
||||||
+ android:pathData="M 15.5 5.875 L 8.5 12 L 15.5 18.125"
|
|
||||||
+ android:strokeColor="#FFFFFFFF"
|
|
||||||
+ android:strokeWidth="1.75" />
|
|
||||||
+</vector>
|
|
||||||
diff --git a/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_home.xml b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_home.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..14110ab58bd7
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_home.xml
|
|
||||||
@@ -0,0 +1,11 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
+ android:height="24dp"
|
|
||||||
+ android:width="24dp"
|
|
||||||
+ android:viewportWidth="24.0"
|
|
||||||
+ android:viewportHeight="24.0">
|
|
||||||
+ <path
|
|
||||||
+ android:pathData="M 5.875 12 a 6.125 6.125 90 1 0 12.25 0 a 6.125 6.125 90 1 0 -12.25 0"
|
|
||||||
+ android:strokeColor="#FFFFFFFF"
|
|
||||||
+ android:strokeWidth="1.75" />
|
|
||||||
+</vector>
|
|
||||||
diff --git a/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_recent.xml b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_recent.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..7436752d5b0a
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/overlays/MotoHelloUINavbarOverlay/res/drawable/ic_sysbar_recent.xml
|
|
||||||
@@ -0,0 +1,19 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
+ android:height="24dp"
|
|
||||||
+ android:width="24dp"
|
|
||||||
+ android:viewportWidth="24.0"
|
|
||||||
+ android:viewportHeight="24.0">
|
|
||||||
+ <path
|
|
||||||
+ android:pathData="M 5.56 5.56 V 18.44"
|
|
||||||
+ android:strokeColor="#FFFFFFFF"
|
|
||||||
+ android:strokeWidth="1.53" />
|
|
||||||
+ <path
|
|
||||||
+ android:pathData="M 12 6.48 H 9.24 V 17.52 H 14.76 V 6.48 H 12"
|
|
||||||
+ android:strokeColor="#FFFFFFFF"
|
|
||||||
+ android:strokeWidth="1.53" />
|
|
||||||
+ <path
|
|
||||||
+ android:pathData="M 18.44 5.56 V 18.44"
|
|
||||||
+ android:strokeColor="#FFFFFFFF"
|
|
||||||
+ android:strokeWidth="1.53" />
|
|
||||||
+</vector>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
|||||||
|
From 2743f5130c127f18977c83c7fa2401a0776ec478 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Fri, 9 Mar 2018 15:41:26 +0800
|
||||||
|
Subject: [PATCH 01/18] UI: Disable left (seascape) navigation bar optionally
|
||||||
|
|
||||||
|
Toggle this behaviour with property "persist.ui.seascape.disable"
|
||||||
|
|
||||||
|
Change-Id: Ieb58efa4b59feeb0c4ac70e497f4c59aa04210d6
|
||||||
|
---
|
||||||
|
.../systemui/statusbar/phone/ReverseLinearLayout.java | 6 ++++++
|
||||||
|
services/core/java/com/android/server/wm/DisplayPolicy.java | 5 +++--
|
||||||
|
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||||
|
index d3ec187ef20..01d87cd12f7 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||||
|
@@ -16,6 +16,7 @@ package com.android.systemui.statusbar.phone;
|
||||||
|
|
||||||
|
import android.annotation.Nullable;
|
||||||
|
import android.content.Context;
|
||||||
|
+import android.os.SystemProperties;
|
||||||
|
import android.util.AttributeSet;
|
||||||
|
import android.view.Gravity;
|
||||||
|
import android.view.View;
|
||||||
|
@@ -86,6 +87,11 @@ public class ReverseLinearLayout extends LinearLayout {
|
||||||
|
boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL;
|
||||||
|
boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder;
|
||||||
|
|
||||||
|
+ boolean isSeascapeDisabled = SystemProperties.getBoolean("persist.ui.seascape.disable", false);
|
||||||
|
+ if (isSeascapeDisabled) {
|
||||||
|
+ isLayoutReverse = isLayoutRtl ^ true;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (mIsLayoutReverse != isLayoutReverse) {
|
||||||
|
// reversity changed, swap the order of all views.
|
||||||
|
int childCount = getChildCount();
|
||||||
|
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
index 97e4a9595da..18119560cd1 100644
|
||||||
|
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
@@ -3413,9 +3413,10 @@ public class DisplayPolicy {
|
||||||
|
@NavigationBarPosition
|
||||||
|
int navigationBarPosition(int displayWidth, int displayHeight, int displayRotation) {
|
||||||
|
if (navigationBarCanMove() && displayWidth > displayHeight) {
|
||||||
|
- if (displayRotation == Surface.ROTATION_270) {
|
||||||
|
+ boolean isSeascapeDisabled = SystemProperties.getBoolean("persist.ui.seascape.disable", false);
|
||||||
|
+ if (displayRotation == Surface.ROTATION_270 && !isSeascapeDisabled) {
|
||||||
|
return NAV_BAR_LEFT;
|
||||||
|
- } else if (displayRotation == Surface.ROTATION_90) {
|
||||||
|
+ } else {
|
||||||
|
return NAV_BAR_RIGHT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
From 522bbc14ea6cd6d17bd93fd3139b77d22362090c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hikari-no-Tenshi <kyryljan.serhij@gmail.com>
|
|
||||||
Date: Thu, 30 Jan 2020 22:20:54 +0200
|
|
||||||
Subject: [PATCH 02/22] Disable Bluetooth by default
|
|
||||||
|
|
||||||
Change-Id: Iea5d24f977928bf01cd7a46b98c75c0a4bd6a23c
|
|
||||||
---
|
|
||||||
packages/SettingsProvider/res/values/defaults.xml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
|
|
||||||
index 17d9f1b87fac..75686e96e201 100644
|
|
||||||
--- a/packages/SettingsProvider/res/values/defaults.xml
|
|
||||||
+++ b/packages/SettingsProvider/res/values/defaults.xml
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
<fraction name="def_window_transition_scale">100%</fraction>
|
|
||||||
<bool name="def_haptic_feedback">true</bool>
|
|
||||||
|
|
||||||
- <bool name="def_bluetooth_on">true</bool>
|
|
||||||
+ <bool name="def_bluetooth_on">false</bool>
|
|
||||||
<bool name="def_wifi_display_on">false</bool>
|
|
||||||
<bool name="def_install_non_market_apps">false</bool>
|
|
||||||
<!-- 0 == off, 3 == on -->
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
From 7d5902f123cc883437cf198fcc1d40c6773129a9 Mon Sep 17 00:00:00 2001
|
From 46a9bb999137ed1a0722f119970524cbce496183 Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Sun, 26 Apr 2020 08:56:13 +0000
|
Date: Sun, 26 Apr 2020 08:56:13 +0000
|
||||||
Subject: [PATCH 11/43] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
Subject: [PATCH 02/18] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||||
|
|
||||||
Enables multiple snap targets under landscape for phone UI
|
Enables multiple snap targets under landscape for phone UI
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ Change-Id: I36e08f1e277dca0b0f9f99418671026e61b01496
|
|||||||
|
|
||||||
diff --git a/core/res/res/values-land/config.xml b/core/res/res/values-land/config.xml
|
diff --git a/core/res/res/values-land/config.xml b/core/res/res/values-land/config.xml
|
||||||
deleted file mode 100644
|
deleted file mode 100644
|
||||||
index 7308dc5882c1..000000000000
|
index 7308dc5882c..00000000000
|
||||||
--- a/core/res/res/values-land/config.xml
|
--- a/core/res/res/values-land/config.xml
|
||||||
+++ /dev/null
|
+++ /dev/null
|
||||||
@@ -1,19 +0,0 @@
|
@@ -1,19 +0,0 @@
|
||||||
@ -40,7 +40,7 @@ index 7308dc5882c1..000000000000
|
|||||||
-</resources>
|
-</resources>
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff --git a/core/res/res/values-sw600dp/config.xml b/core/res/res/values-sw600dp/config.xml
|
diff --git a/core/res/res/values-sw600dp/config.xml b/core/res/res/values-sw600dp/config.xml
|
||||||
index 34b6a54be493..3921c9edfeac 100644
|
index 34b6a54be49..3921c9edfea 100644
|
||||||
--- a/core/res/res/values-sw600dp/config.xml
|
--- a/core/res/res/values-sw600dp/config.xml
|
||||||
+++ b/core/res/res/values-sw600dp/config.xml
|
+++ b/core/res/res/values-sw600dp/config.xml
|
||||||
@@ -3,16 +3,16 @@
|
@@ -3,16 +3,16 @@
|
||||||
@ -78,10 +78,10 @@ index 34b6a54be493..3921c9edfeac 100644
|
|||||||
Only applies if the device display is not square. -->
|
Only applies if the device display is not square. -->
|
||||||
<bool name="config_navBarCanMove">false</bool>
|
<bool name="config_navBarCanMove">false</bool>
|
||||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||||
index 129c7160fe63..2302cd3911d9 100644
|
index f761d28e68d..b1ee670fc6a 100644
|
||||||
--- a/core/res/res/values/config.xml
|
--- a/core/res/res/values/config.xml
|
||||||
+++ b/core/res/res/values/config.xml
|
+++ b/core/res/res/values/config.xml
|
||||||
@@ -4273,7 +4273,7 @@
|
@@ -3313,7 +3313,7 @@
|
||||||
1 - 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
|
1 - 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
|
||||||
2 - 1 snap target: 1:1
|
2 - 1 snap target: 1:1
|
||||||
-->
|
-->
|
||||||
@ -91,5 +91,5 @@ index 129c7160fe63..2302cd3911d9 100644
|
|||||||
<!-- The maximum aspect ratio (longerSide/shorterSide) that is treated as close-to-square. The
|
<!-- The maximum aspect ratio (longerSide/shorterSide) that is treated as close-to-square. The
|
||||||
orientation requests from apps would be ignored if the display is close-to-square. -->
|
orientation requests from apps would be ignored if the display is close-to-square. -->
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
From 24806592ddfc97002514f203c55e29338d52644e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Mon, 27 Sep 2021 16:30:00 +0000
|
|
||||||
Subject: [PATCH 03/22] Disable cursor drag by default for editable TextViews
|
|
||||||
|
|
||||||
Requested by @TadiT7
|
|
||||||
|
|
||||||
Change-Id: Id54e38ee418174af8cde4113c849bc292f5fc96d
|
|
||||||
---
|
|
||||||
core/java/android/widget/WidgetFlags.java | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/core/java/android/widget/WidgetFlags.java b/core/java/android/widget/WidgetFlags.java
|
|
||||||
index fb40ee5ec843..c0c6fb6e9431 100644
|
|
||||||
--- a/core/java/android/widget/WidgetFlags.java
|
|
||||||
+++ b/core/java/android/widget/WidgetFlags.java
|
|
||||||
@@ -38,7 +38,7 @@ public final class WidgetFlags {
|
|
||||||
/**
|
|
||||||
* Default value for the flag {@link #ENABLE_CURSOR_DRAG_FROM_ANYWHERE}.
|
|
||||||
*/
|
|
||||||
- public static final boolean ENABLE_CURSOR_DRAG_FROM_ANYWHERE_DEFAULT = true;
|
|
||||||
+ public static final boolean ENABLE_CURSOR_DRAG_FROM_ANYWHERE_DEFAULT = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Threshold for the direction of a swipe gesture in order for it to be handled as a cursor drag
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
From dcbba0a8db63f78730b01606462a92653ef18ae3 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 03/18] UI: Increase default status bar height
|
||||||
|
|
||||||
|
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||||
|
---
|
||||||
|
core/res/res/values/dimens.xml | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
||||||
|
index d165930d3c9..eb537474b97 100644
|
||||||
|
--- a/core/res/res/values/dimens.xml
|
||||||
|
+++ b/core/res/res/values/dimens.xml
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
<dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen>
|
||||||
|
<!-- Height of the status bar in portrait. The height should be
|
||||||
|
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||||
|
- <dimen name="status_bar_height_portrait">24dp</dimen>
|
||||||
|
+ <dimen name="status_bar_height_portrait">28dp</dimen>
|
||||||
|
<!-- Height of the status bar in landscape. The height should be
|
||||||
|
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||||
|
<dimen name="status_bar_height_landscape">@dimen/status_bar_height_portrait</dimen>
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
From fd4ee96f17bee1e0c639b9f5a66d877637eb442d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sun, 3 Jul 2022 00:08:42 +0000
|
|
||||||
Subject: [PATCH 04/22] Disable "RESTRICTED bucket" toast
|
|
||||||
|
|
||||||
Change-Id: I20a328d3c77962f3a6095bfca42d0b165a093ce8
|
|
||||||
---
|
|
||||||
.../server/usage/AppStandbyController.java | 20 +------------------
|
|
||||||
1 file changed, 1 insertion(+), 19 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/apex/jobscheduler/service/java/com/android/server/usage/AppStandbyController.java b/apex/jobscheduler/service/java/com/android/server/usage/AppStandbyController.java
|
|
||||||
index 19bc7160e16a..567420a9c8f6 100644
|
|
||||||
--- a/apex/jobscheduler/service/java/com/android/server/usage/AppStandbyController.java
|
|
||||||
+++ b/apex/jobscheduler/service/java/com/android/server/usage/AppStandbyController.java
|
|
||||||
@@ -1848,25 +1848,7 @@ public class AppStandbyController
|
|
||||||
.noteRestrictionAttempt(packageName, userId, elapsedRealtime, reason);
|
|
||||||
|
|
||||||
if (isForcedByUser) {
|
|
||||||
- // Only user force can bypass the delay restriction. If the user forced the
|
|
||||||
- // app into the RESTRICTED bucket, then a toast confirming the action
|
|
||||||
- // shouldn't be surprising.
|
|
||||||
- // Exclude REASON_SUB_FORCED_USER_FLAG_INTERACTION since the RESTRICTED bucket
|
|
||||||
- // isn't directly visible in that flow.
|
|
||||||
- if (Build.IS_DEBUGGABLE
|
|
||||||
- && (reason & REASON_SUB_MASK)
|
|
||||||
- != REASON_SUB_FORCED_USER_FLAG_INTERACTION) {
|
|
||||||
- Toast.makeText(mContext,
|
|
||||||
- // Since AppStandbyController sits low in the lock hierarchy,
|
|
||||||
- // make sure not to call out with the lock held.
|
|
||||||
- mHandler.getLooper(),
|
|
||||||
- mContext.getResources().getString(
|
|
||||||
- R.string.as_app_forced_to_restricted_bucket, packageName),
|
|
||||||
- Toast.LENGTH_SHORT)
|
|
||||||
- .show();
|
|
||||||
- } else {
|
|
||||||
- Slog.i(TAG, packageName + " restricted by user");
|
|
||||||
- }
|
|
||||||
+ Slog.i(TAG, packageName + " restricted by user");
|
|
||||||
} else {
|
|
||||||
final long timeUntilRestrictPossibleMs = app.lastUsedByUserElapsedTime
|
|
||||||
+ mInjector.getAutoRestrictedBucketDelayMs() - elapsedRealtime;
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
|||||||
|
From 39e612fc6c8c818da613564cb284d6881b53603e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Wed, 7 Oct 2020 14:00:35 +0000
|
||||||
|
Subject: [PATCH 04/18] UI: Always render windows into cutouts
|
||||||
|
|
||||||
|
Eliminates black/white letterboxing
|
||||||
|
Quick and dirty way to do the latter - wait for proper fix from Google
|
||||||
|
|
||||||
|
Change-Id: I4661c7979bfa7de453329fcddbaeefc2009e2da3
|
||||||
|
---
|
||||||
|
services/core/java/com/android/server/wm/DisplayPolicy.java | 5 +----
|
||||||
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
index 18119560cd1..6f18d102019 100644
|
||||||
|
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||||
|
@@ -1702,7 +1702,6 @@ public class DisplayPolicy {
|
||||||
|
void simulateLayoutDisplay(DisplayFrames displayFrames, InsetsState insetsState,
|
||||||
|
SparseArray<Rect> barContentFrames) {
|
||||||
|
displayFrames.onBeginLayout();
|
||||||
|
- updateInsetsStateForDisplayCutout(displayFrames, insetsState);
|
||||||
|
insetsState.setDisplayFrame(displayFrames.mUnrestricted);
|
||||||
|
final WindowFrames simulatedWindowFrames = new WindowFrames();
|
||||||
|
if (mNavigationBar != null) {
|
||||||
|
@@ -1731,8 +1730,6 @@ public class DisplayPolicy {
|
||||||
|
*/
|
||||||
|
public void beginLayoutLw(DisplayFrames displayFrames, int uiMode) {
|
||||||
|
displayFrames.onBeginLayout();
|
||||||
|
- updateInsetsStateForDisplayCutout(displayFrames,
|
||||||
|
- mDisplayContent.getInsetsStateController().getRawInsetsState());
|
||||||
|
mSystemGestures.screenWidth = displayFrames.mUnrestricted.width();
|
||||||
|
mSystemGestures.screenHeight = displayFrames.mUnrestricted.height();
|
||||||
|
|
||||||
|
@@ -2593,7 +2590,7 @@ public class DisplayPolicy {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- final int cutoutMode = attrs.layoutInDisplayCutoutMode;
|
||||||
|
+ final int cutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
|
||||||
|
final boolean attachedInParent = attached != null && !layoutInScreen;
|
||||||
|
final boolean requestedFullscreen = (fl & FLAG_FULLSCREEN) != 0
|
||||||
|
|| (requestedSysUiFl & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
From 4aaaad704b3cedf07ace864b8fd03d7780f55903 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 1 Jun 2024 17:56:42 +0800
|
|
||||||
Subject: [PATCH 05/22] Disable wake on gamepad L/R keys
|
|
||||||
|
|
||||||
Change-Id: I16cf69f07f205619a75111831de808748ee5795b
|
|
||||||
---
|
|
||||||
.../com/android/server/policy/PhoneWindowManager.java | 8 ++++++++
|
|
||||||
1 file changed, 8 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
|
|
||||||
index 231357e96306..f15c034107fc 100644
|
|
||||||
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
|
|
||||||
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
|
|
||||||
@@ -5945,6 +5945,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|
||||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TERTIARY:
|
|
||||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TAIL:
|
|
||||||
return mStylusButtonsEnabled;
|
|
||||||
+
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_L1:
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_R1:
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_L2:
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_R2:
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_THUMBL:
|
|
||||||
+ case KeyEvent.KEYCODE_BUTTON_THUMBR:
|
|
||||||
+ return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
From 9a8d7eada09d1940b3e12dcbbb95b1e6cfdafb18 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vachounet <vachounet@live.fr>
|
||||||
|
Date: Wed, 14 Oct 2020 11:43:10 +0200
|
||||||
|
Subject: [PATCH 05/18] UI: Remove black background from power menu
|
||||||
|
|
||||||
|
Change-Id: I87092d57ea457e6d6783c87b8a64b4e69dec2d8a
|
||||||
|
---
|
||||||
|
.../android/systemui/globalactions/GlobalActionsDialog.java | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
index f8f94b0bff6..04d35341c41 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
@@ -2696,7 +2696,7 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
||||||
|
initializeWalletView();
|
||||||
|
if (mBackgroundDrawable == null) {
|
||||||
|
mBackgroundDrawable = new ScrimDrawable();
|
||||||
|
- mScrimAlpha = 1.0f;
|
||||||
|
+ mScrimAlpha = 0.45f;
|
||||||
|
}
|
||||||
|
getWindow().setBackgroundDrawable(mBackgroundDrawable);
|
||||||
|
}
|
||||||
|
@@ -2733,7 +2733,6 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
||||||
|
if (!(mBackgroundDrawable instanceof ScrimDrawable)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
- ((ScrimDrawable) mBackgroundDrawable).setColor(Color.BLACK, animate);
|
||||||
|
View decorView = getWindow().getDecorView();
|
||||||
|
if (colors.supportsDarkText()) {
|
||||||
|
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR |
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,181 +0,0 @@
|
|||||||
From 4f4c07ae5cef82b0ede5656b19e730d7476a4a20 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Thu, 2 Sep 2021 16:15:19 +0000
|
|
||||||
Subject: [PATCH 06/22] Keyguard: Adjust clock style
|
|
||||||
|
|
||||||
Thinner font, less padding and unintrusive colors
|
|
||||||
|
|
||||||
Change-Id: I21e5d5bf37d724e75ebce4cd89349e0cc4dfc910
|
|
||||||
---
|
|
||||||
.../customization/res/layout/clock_default_large.xml | 1 +
|
|
||||||
.../customization/res/layout/clock_default_small.xml | 2 +-
|
|
||||||
packages/SystemUI/customization/res/values/colors.xml | 5 +++++
|
|
||||||
packages/SystemUI/customization/res/values/dimens.xml | 4 ++--
|
|
||||||
.../android/systemui/shared/clocks/DefaultClockController.kt | 4 ++--
|
|
||||||
.../SystemUI/res-keyguard/layout/keyguard_clock_switch.xml | 2 +-
|
|
||||||
.../SystemUI/res-keyguard/layout/keyguard_slice_view.xml | 2 +-
|
|
||||||
packages/SystemUI/res-keyguard/values/dimens.xml | 4 ++--
|
|
||||||
packages/SystemUI/res-keyguard/values/styles.xml | 2 --
|
|
||||||
packages/SystemUI/res/layout/keyguard_status_bar.xml | 2 +-
|
|
||||||
packages/SystemUI/res/values/styles.xml | 4 ++--
|
|
||||||
11 files changed, 18 insertions(+), 14 deletions(-)
|
|
||||||
create mode 100644 packages/SystemUI/customization/res/values/colors.xml
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/customization/res/layout/clock_default_large.xml b/packages/SystemUI/customization/res/layout/clock_default_large.xml
|
|
||||||
index 0139d50dcfba..9f5ca7b89213 100644
|
|
||||||
--- a/packages/SystemUI/customization/res/layout/clock_default_large.xml
|
|
||||||
+++ b/packages/SystemUI/customization/res/layout/clock_default_large.xml
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:elegantTextHeight="false"
|
|
||||||
+ android:fontFeatureSettings="tnum"
|
|
||||||
chargeAnimationDelay="200"
|
|
||||||
dozeWeight="200"
|
|
||||||
lockScreenWeight="400" />
|
|
||||||
diff --git a/packages/SystemUI/customization/res/layout/clock_default_small.xml b/packages/SystemUI/customization/res/layout/clock_default_small.xml
|
|
||||||
index ff6d7f9e2240..b63ffce20671 100644
|
|
||||||
--- a/packages/SystemUI/customization/res/layout/clock_default_small.xml
|
|
||||||
+++ b/packages/SystemUI/customization/res/layout/clock_default_small.xml
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
android:elegantTextHeight="false"
|
|
||||||
android:ellipsize="none"
|
|
||||||
android:singleLine="true"
|
|
||||||
- android:fontFeatureSettings="pnum"
|
|
||||||
+ android:fontFeatureSettings="tnum"
|
|
||||||
chargeAnimationDelay="350"
|
|
||||||
dozeWeight="200"
|
|
||||||
lockScreenWeight="400" />
|
|
||||||
diff --git a/packages/SystemUI/customization/res/values/colors.xml b/packages/SystemUI/customization/res/values/colors.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..f80af4376ff1
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/packages/SystemUI/customization/res/values/colors.xml
|
|
||||||
@@ -0,0 +1,5 @@
|
|
||||||
+<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
+<resources>
|
|
||||||
+ <color name="clock_default_color_dark">@*android:color/primary_text_material_dark</color>
|
|
||||||
+ <color name="clock_default_color_light">@*android:color/primary_text_material_light</color>
|
|
||||||
+</resources>
|
|
||||||
diff --git a/packages/SystemUI/customization/res/values/dimens.xml b/packages/SystemUI/customization/res/values/dimens.xml
|
|
||||||
index c574d1fc674b..0a2c81f1cb38 100644
|
|
||||||
--- a/packages/SystemUI/customization/res/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/customization/res/values/dimens.xml
|
|
||||||
@@ -32,5 +32,5 @@
|
|
||||||
<!-- additional offset for clock switch area items -->
|
|
||||||
<dimen name="small_clock_height">114dp</dimen>
|
|
||||||
<dimen name="small_clock_padding_top">28dp</dimen>
|
|
||||||
- <dimen name="clock_padding_start">28dp</dimen>
|
|
||||||
-</resources>
|
|
||||||
\ No newline at end of file
|
|
||||||
+ <dimen name="clock_padding_start">22dp</dimen>
|
|
||||||
+</resources>
|
|
||||||
diff --git a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt
|
|
||||||
index 54c7a0823963..024c727dec84 100644
|
|
||||||
--- a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt
|
|
||||||
+++ b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt
|
|
||||||
@@ -170,9 +170,9 @@ class DefaultClockController(
|
|
||||||
if (seedColor != null) {
|
|
||||||
seedColor!!
|
|
||||||
} else if (isRegionDark) {
|
|
||||||
- resources.getColor(android.R.color.system_accent1_100)
|
|
||||||
+ resources.getColor(R.color.clock_default_color_dark)
|
|
||||||
} else {
|
|
||||||
- resources.getColor(android.R.color.system_accent2_600)
|
|
||||||
+ resources.getColor(R.color.clock_default_color_light)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (currentColor == color) {
|
|
||||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
|
||||||
index fc9c917c152b..6a5ed0daef4a 100644
|
|
||||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
|
||||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
|
||||||
@@ -27,7 +27,7 @@
|
|
||||||
android:layout_gravity="center_horizontal|top">
|
|
||||||
<com.android.keyguard.KeyguardClockFrame
|
|
||||||
android:id="@+id/lockscreen_clock_view"
|
|
||||||
- android:layout_width="wrap_content"
|
|
||||||
+ android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/small_clock_height"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
|
||||||
index 7c5dbc247428..64657547621f 100644
|
|
||||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
|
||||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
android:id="@+id/row"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
- android:orientation="horizontal"
|
|
||||||
+ android:orientation="vertical"
|
|
||||||
android:gravity="start"
|
|
||||||
/>
|
|
||||||
</com.android.keyguard.KeyguardSliceView>
|
|
||||||
diff --git a/packages/SystemUI/res-keyguard/values/dimens.xml b/packages/SystemUI/res-keyguard/values/dimens.xml
|
|
||||||
index 186bd7cc48c5..363730d1f1ab 100644
|
|
||||||
--- a/packages/SystemUI/res-keyguard/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res-keyguard/values/dimens.xml
|
|
||||||
@@ -107,9 +107,9 @@
|
|
||||||
<dimen name="num_pad_key_margin_end">12dp</dimen>
|
|
||||||
|
|
||||||
<!-- additional offset for clock switch area items -->
|
|
||||||
- <dimen name="below_clock_padding_start">32dp</dimen>
|
|
||||||
+ <dimen name="below_clock_padding_start">28dp</dimen>
|
|
||||||
<dimen name="below_clock_padding_end">16dp</dimen>
|
|
||||||
- <dimen name="below_clock_padding_start_icons">28dp</dimen>
|
|
||||||
+ <dimen name="below_clock_padding_start_icons">22dp</dimen>
|
|
||||||
|
|
||||||
<!-- Proportion of the screen height to use to set the maximum height of the bouncer to when
|
|
||||||
the device is in the DEVICE_POSTURE_HALF_OPENED posture, for the PIN/pattern entry. 0 will
|
|
||||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
index c43e394cb97a..d73a3034c253 100644
|
|
||||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
@@ -139,8 +139,6 @@
|
|
||||||
<item name="android:ellipsize">end</item>
|
|
||||||
<item name="android:maxLines">2</item>
|
|
||||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
|
||||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.Keyguard.Secondary">
|
|
||||||
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
index 4cb7591a3502..6108ce24f4fa 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
@@ -76,7 +76,7 @@
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:textDirection="locale"
|
|
||||||
- android:textAppearance="@style/TextAppearance.StatusBar.Clock"
|
|
||||||
+ android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:textColor="?attr/wallpaperTextColorSecondary"
|
|
||||||
android:singleLine="true"
|
|
||||||
systemui:showMissingSim="true"
|
|
||||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
|
||||||
index ae15bfad0849..cb5c97383677 100644
|
|
||||||
--- a/packages/SystemUI/res/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/styles.xml
|
|
||||||
@@ -354,7 +354,7 @@
|
|
||||||
<item name="darkIconTheme">@style/DualToneDarkTheme</item>
|
|
||||||
<item name="wallpaperTextColor">@*android:color/primary_text_material_dark</item>
|
|
||||||
<item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_dark</item>
|
|
||||||
- <item name="wallpaperTextColorAccent">@color/material_dynamic_primary90</item>
|
|
||||||
+ <item name="wallpaperTextColorAccent">@*android:color/primary_text_material_dark</item>
|
|
||||||
<item name="android:colorError">@*android:color/error_color_material_dark</item>
|
|
||||||
<item name="*android:lockPatternStyle">@style/LockPatternViewStyle</item>
|
|
||||||
<item name="lockPatternStyle">@style/LockPatternContainerStyle</item>
|
|
||||||
@@ -372,7 +372,7 @@
|
|
||||||
<style name="Theme.SystemUI.LightWallpaper">
|
|
||||||
<item name="wallpaperTextColor">@*android:color/primary_text_material_light</item>
|
|
||||||
<item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_light</item>
|
|
||||||
- <item name="wallpaperTextColorAccent">@color/material_dynamic_secondary40</item>
|
|
||||||
+ <item name="wallpaperTextColorAccent">@*android:color/primary_text_material_light</item>
|
|
||||||
<item name="android:colorError">@*android:color/error_color_material_light</item>
|
|
||||||
<item name="shadowRadius">0</item>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,88 @@
|
|||||||
|
From 508d9e0843d9519344d76cd32e38148ee8975833 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Mon, 26 Oct 2020 14:06:56 +0000
|
||||||
|
Subject: [PATCH 06/18] UI: Reconfigure power menu items
|
||||||
|
|
||||||
|
- Show only the important items (GTFO Emergency)
|
||||||
|
- Make 4 columns
|
||||||
|
- Always include screenshot
|
||||||
|
|
||||||
|
Change-Id: I32cca6e2c6bb64d891efee959127edf7c0802cbc
|
||||||
|
---
|
||||||
|
core/res/res/values/config.xml | 5 +----
|
||||||
|
packages/SystemUI/res/values-land/config.xml | 19 ++++++++-----------
|
||||||
|
packages/SystemUI/res/values/config.xml | 2 +-
|
||||||
|
3 files changed, 10 insertions(+), 16 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||||
|
index b1ee670fc6a..5efb4156466 100644
|
||||||
|
--- a/core/res/res/values/config.xml
|
||||||
|
+++ b/core/res/res/values/config.xml
|
||||||
|
@@ -2779,13 +2779,10 @@
|
||||||
|
"logout" = Logout the current user
|
||||||
|
-->
|
||||||
|
<string-array translatable="false" name="config_globalActionsList">
|
||||||
|
- <item>emergency</item>
|
||||||
|
- <item>lockdown</item>
|
||||||
|
<item>power</item>
|
||||||
|
<item>restart</item>
|
||||||
|
- <item>logout</item>
|
||||||
|
<item>screenshot</item>
|
||||||
|
- <item>bugreport</item>
|
||||||
|
+ <item>airplane</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
||||||
|
diff --git a/packages/SystemUI/res/values-land/config.xml b/packages/SystemUI/res/values-land/config.xml
|
||||||
|
index 2f7fbaff4ed..8b7ae652846 100644
|
||||||
|
--- a/packages/SystemUI/res/values-land/config.xml
|
||||||
|
+++ b/packages/SystemUI/res/values-land/config.xml
|
||||||
|
@@ -3,16 +3,16 @@
|
||||||
|
/*
|
||||||
|
** Copyright 2011, 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
|
||||||
|
+** 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
|
||||||
|
+** 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
|
||||||
|
+** 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.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
@@ -34,7 +34,4 @@
|
||||||
|
|
||||||
|
<!-- Max number of columns for quick controls area -->
|
||||||
|
<integer name="controls_max_columns">4</integer>
|
||||||
|
-
|
||||||
|
- <!-- Max number of columns for power menu -->
|
||||||
|
- <integer name="power_menu_max_columns">4</integer>
|
||||||
|
</resources>
|
||||||
|
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||||
|
index d86f3fa277f..fd9ec3166fb 100644
|
||||||
|
--- a/packages/SystemUI/res/values/config.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/config.xml
|
||||||
|
@@ -572,7 +572,7 @@
|
||||||
|
<integer name="controls_max_columns">2</integer>
|
||||||
|
|
||||||
|
<!-- Max number of columns for power menu -->
|
||||||
|
- <integer name="power_menu_max_columns">3</integer>
|
||||||
|
+ <integer name="power_menu_max_columns">4</integer>
|
||||||
|
|
||||||
|
<!-- If the dp width of the available space is <= this value, potentially adjust the number
|
||||||
|
of columns-->
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,48 +0,0 @@
|
|||||||
From 1c07e4e2f1f2290a2b5b5695c1af4732eab18404 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
|
||||||
Subject: [PATCH 07/22] Keyguard: Hide padlock unless UDFPS is in use
|
|
||||||
|
|
||||||
Fair enough Google, but don't give me that otherwise
|
|
||||||
|
|
||||||
Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
|
||||||
---
|
|
||||||
.../keyguard/LockIconViewController.java | 17 +++--------------
|
|
||||||
1 file changed, 3 insertions(+), 14 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
|
||||||
index 8e9815085e31..de25bec2f6b1 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
|
||||||
@@ -362,25 +362,14 @@ public class LockIconViewController implements Dumpable {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
- boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon && !mShowLockIcon
|
|
||||||
+ boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon
|
|
||||||
&& !mShowAodUnlockedIcon && !mShowAodLockIcon;
|
|
||||||
- mShowLockIcon = !mCanDismissLockScreen && isLockScreen()
|
|
||||||
- && (!mUdfpsEnrolled || !mRunningFPS);
|
|
||||||
- mShowUnlockIcon = mCanDismissLockScreen && isLockScreen();
|
|
||||||
+ mShowUnlockIcon = mCanDismissLockScreen && isLockScreen() && mUdfpsEnrolled;
|
|
||||||
mShowAodUnlockedIcon = mIsDozing && mUdfpsEnrolled && !mRunningFPS && mCanDismissLockScreen;
|
|
||||||
mShowAodLockIcon = mIsDozing && mUdfpsEnrolled && !mRunningFPS && !mCanDismissLockScreen;
|
|
||||||
|
|
||||||
final CharSequence prevContentDescription = mView.getContentDescription();
|
|
||||||
- if (mShowLockIcon) {
|
|
||||||
- if (wasShowingFpIcon) {
|
|
||||||
- // fp icon was shown by UdfpsView, and now we still want to animate the transition
|
|
||||||
- // in this drawable
|
|
||||||
- mView.updateIcon(ICON_FINGERPRINT, false);
|
|
||||||
- }
|
|
||||||
- mView.updateIcon(ICON_LOCK, false);
|
|
||||||
- mView.setContentDescription(mLockedLabel);
|
|
||||||
- mView.setVisibility(View.VISIBLE);
|
|
||||||
- } else if (mShowUnlockIcon) {
|
|
||||||
+ if (mShowUnlockIcon) {
|
|
||||||
if (wasShowingFpIcon) {
|
|
||||||
// fp icon was shown by UdfpsView, and now we still want to animate the transition
|
|
||||||
// in this drawable
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
From 2253b5c60f551017965f7d6131ce777ac56713ce Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 15 May 2021 10:15:12 +0000
|
||||||
|
Subject: [PATCH 07/18] UI: Tap outside to dismiss power menu
|
||||||
|
|
||||||
|
Change-Id: Id713b84a2edb3facc184394963f98291abe6ae2c
|
||||||
|
---
|
||||||
|
.../systemui/globalactions/GlobalActionsDialog.java | 10 ++++++++++
|
||||||
|
1 file changed, 10 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
index 04d35341c41..4552792b3f5 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
|
||||||
|
@@ -2699,6 +2699,16 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
||||||
|
mScrimAlpha = 0.45f;
|
||||||
|
}
|
||||||
|
getWindow().setBackgroundDrawable(mBackgroundDrawable);
|
||||||
|
+
|
||||||
|
+ ViewGroup root = findViewById(com.android.systemui.R.id.global_actions_grid_root);
|
||||||
|
+ if (root != null) {
|
||||||
|
+ root.setOnClickListener(new View.OnClickListener() {
|
||||||
|
+ @Override
|
||||||
|
+ public void onClick(View v) {
|
||||||
|
+ dismiss();
|
||||||
|
+ }
|
||||||
|
+ });
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
private void fixNavBarClipping() {
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
From 23f1f86aff2ac8d25b796133b61e5540660b04e7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Wed, 1 Sep 2021 14:41:53 +0000
|
|
||||||
Subject: [PATCH 08/22] Keyguard: Default to small clock (1/3)
|
|
||||||
|
|
||||||
It looks alright actually, but as always breaks under landscape
|
|
||||||
|
|
||||||
Change-Id: I434d033ecae597ed2a7b2ed71e96ba1a963e9cc3
|
|
||||||
---
|
|
||||||
core/res/res/values/config.xml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
|
||||||
index 2302cd3911d9..a0e8062df4d0 100644
|
|
||||||
--- a/core/res/res/values/config.xml
|
|
||||||
+++ b/core/res/res/values/config.xml
|
|
||||||
@@ -1514,7 +1514,7 @@
|
|
||||||
<!-- Provides default value for double line clock in lock screen setting:
|
|
||||||
0 - Don't show double line clock
|
|
||||||
1 - Show double line clock in lock screen (default) -->
|
|
||||||
- <integer name="config_doublelineClockDefault">1</integer>
|
|
||||||
+ <integer name="config_doublelineClockDefault">0</integer>
|
|
||||||
|
|
||||||
<!-- If true, enables verification of the lockscreen credential in the factory reset protection
|
|
||||||
flow. This should be true if gatekeeper / weaver credentials can still be checked after a
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
From c93d690ca8a08ada6a73ab0916d042e5f31671ad Mon Sep 17 00:00:00 2001
|
From 557c1fd05415a15beb4c1d6f6c021dc66a28957d Mon Sep 17 00:00:00 2001
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
Date: Tue, 29 Jun 2021 22:57:01 +0000
|
Date: Tue, 29 Jun 2021 22:57:01 +0000
|
||||||
Subject: [PATCH 19/22] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
Subject: [PATCH 08/18] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
||||||
|
|
||||||
I decide what's good enough for a wallpaper!
|
I decide what's good enough for a wallpaper!
|
||||||
|
|
||||||
@ -11,18 +11,18 @@ Change-Id: I5ccd85b3df12e53746a4ac6cbc37ba8d11f6c336
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/core/java/android/app/WallpaperColors.java b/core/java/android/app/WallpaperColors.java
|
diff --git a/core/java/android/app/WallpaperColors.java b/core/java/android/app/WallpaperColors.java
|
||||||
index 5f5a7dfe24c6..1adce321012b 100644
|
index e4818b27434..67208f0ebed 100644
|
||||||
--- a/core/java/android/app/WallpaperColors.java
|
--- a/core/java/android/app/WallpaperColors.java
|
||||||
+++ b/core/java/android/app/WallpaperColors.java
|
+++ b/core/java/android/app/WallpaperColors.java
|
||||||
@@ -593,7 +593,7 @@ public final class WallpaperColors implements Parcelable {
|
@@ -413,7 +413,7 @@ public final class WallpaperColors implements Parcelable {
|
||||||
|
|
||||||
int hints = 0;
|
int hints = 0;
|
||||||
double meanLuminance = totalLuminance / pixels.length;
|
double meanLuminance = totalLuminance / pixels.length;
|
||||||
- if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE && darkPixels <= maxDarkPixels) {
|
- if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE && darkPixels < maxDarkPixels) {
|
||||||
+ if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE) {
|
+ if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE) {
|
||||||
hints |= HINT_SUPPORTS_DARK_TEXT;
|
hints |= HINT_SUPPORTS_DARK_TEXT;
|
||||||
}
|
}
|
||||||
if (meanLuminance < DARK_THEME_MEAN_LUMINANCE) {
|
if (meanLuminance < DARK_THEME_MEAN_LUMINANCE) {
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
@ -1,130 +0,0 @@
|
|||||||
From 5e641f0f51ddffd5d7dd40f5ac080cce950a4515 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 2 Nov 2019 08:31:36 +0000
|
|
||||||
Subject: [PATCH 09/22] Keyguard: Refine indication text
|
|
||||||
|
|
||||||
Change-Id: Ib771c35610f712a1de34736e817bcfe616ac37d8
|
|
||||||
---
|
|
||||||
.../SystemUI/res-keyguard/values/styles.xml | 2 -
|
|
||||||
.../res/layout/keyguard_bottom_area.xml | 1 +
|
|
||||||
packages/SystemUI/res/values/dimens.xml | 2 +-
|
|
||||||
.../KeyguardIndicationController.java | 37 ++++---------------
|
|
||||||
.../phone/KeyguardIndicationTextView.java | 2 +-
|
|
||||||
5 files changed, 10 insertions(+), 34 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
index d73a3034c253..0394ab69b901 100644
|
|
||||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
|
||||||
@@ -154,8 +154,6 @@
|
|
||||||
<item name="android:maxLines">1</item>
|
|
||||||
<item name="android:gravity">center</item>
|
|
||||||
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
|
||||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
|
||||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.Keyguard.BottomArea.Button">
|
|
||||||
diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
|
||||||
index e602d6c8848d..7cc54e7209b8 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
|
||||||
@@ -35,6 +35,7 @@
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center"
|
|
||||||
+ android:minHeight="48dp"
|
|
||||||
android:paddingStart="@dimen/keyguard_indication_text_padding"
|
|
||||||
android:paddingEnd="@dimen/keyguard_indication_text_padding"
|
|
||||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
|
||||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
index 602a51bb0a36..4db3a593b9ff 100644
|
|
||||||
--- a/packages/SystemUI/res/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
@@ -914,7 +914,7 @@
|
|
||||||
|
|
||||||
<dimen name="keyguard_translate_distance_on_swipe_up">-200dp</dimen>
|
|
||||||
|
|
||||||
- <dimen name="keyguard_indication_margin_bottom">32dp</dimen>
|
|
||||||
+ <dimen name="keyguard_indication_margin_bottom">16dp</dimen>
|
|
||||||
<dimen name="lock_icon_margin_bottom">74dp</dimen>
|
|
||||||
<dimen name="ambient_indication_margin_bottom">71dp</dimen>
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
|
||||||
index 1ec86aea49d8..966243436b7f 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
|
||||||
@@ -456,7 +456,6 @@ public class KeyguardIndicationController {
|
|
||||||
updateLockScreenDisclosureMsg();
|
|
||||||
updateLockScreenOwnerInfo();
|
|
||||||
updateLockScreenBatteryMsg(animate);
|
|
||||||
- updateLockScreenUserLockedMsg(userId);
|
|
||||||
updateLockScreenTrustMsg(userId, getTrustGrantedIndication(), getTrustManagedIndication());
|
|
||||||
updateLockScreenAlignmentMsg();
|
|
||||||
updateLockScreenLogoutView();
|
|
||||||
@@ -601,24 +600,6 @@ public class KeyguardIndicationController {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- private void updateLockScreenUserLockedMsg(int userId) {
|
|
||||||
- boolean userUnlocked = mKeyguardUpdateMonitor.isUserUnlocked(userId);
|
|
||||||
- boolean encryptedOrLockdown = mKeyguardUpdateMonitor.isEncryptedOrLockdown(userId);
|
|
||||||
- mKeyguardLogger.logUpdateLockScreenUserLockedMsg(userId, userUnlocked, encryptedOrLockdown);
|
|
||||||
- if (!userUnlocked || encryptedOrLockdown) {
|
|
||||||
- mRotateTextViewController.updateIndication(
|
|
||||||
- INDICATION_TYPE_USER_LOCKED,
|
|
||||||
- new KeyguardIndication.Builder()
|
|
||||||
- .setMessage(mContext.getResources().getText(
|
|
||||||
- com.android.internal.R.string.lockscreen_storage_locked))
|
|
||||||
- .setTextColor(mInitialTextColorState)
|
|
||||||
- .build(),
|
|
||||||
- false);
|
|
||||||
- } else {
|
|
||||||
- mRotateTextViewController.hideIndication(INDICATION_TYPE_USER_LOCKED);
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
private void updateBiometricMessage() {
|
|
||||||
if (mDozing) {
|
|
||||||
updateDeviceEntryIndication(false);
|
|
||||||
@@ -711,17 +692,13 @@ public class KeyguardIndicationController {
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateLockScreenPersistentUnlockMsg() {
|
|
||||||
- if (!TextUtils.isEmpty(mPersistentUnlockMessage)) {
|
|
||||||
- mRotateTextViewController.updateIndication(
|
|
||||||
- INDICATION_TYPE_PERSISTENT_UNLOCK_MESSAGE,
|
|
||||||
- new KeyguardIndication.Builder()
|
|
||||||
- .setMessage(mPersistentUnlockMessage)
|
|
||||||
- .setTextColor(mInitialTextColorState)
|
|
||||||
- .build(),
|
|
||||||
- true);
|
|
||||||
- } else {
|
|
||||||
- mRotateTextViewController.hideIndication(INDICATION_TYPE_PERSISTENT_UNLOCK_MESSAGE);
|
|
||||||
- }
|
|
||||||
+ mRotateTextViewController.updateIndication(
|
|
||||||
+ INDICATION_TYPE_PERSISTENT_UNLOCK_MESSAGE,
|
|
||||||
+ new KeyguardIndication.Builder()
|
|
||||||
+ .setMessage(mContext.getResources().getString(R.string.keyguard_unlock))
|
|
||||||
+ .setTextColor(mInitialTextColorState)
|
|
||||||
+ .build(),
|
|
||||||
+ false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateLockScreenLogoutView() {
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
|
||||||
index c6690c91c1f8..d6c8af74d71a 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
|
||||||
@@ -46,7 +46,7 @@ public class KeyguardIndicationTextView extends TextView {
|
|
||||||
@StyleRes
|
|
||||||
private static int sButtonStyleId = R.style.TextAppearance_Keyguard_BottomArea_Button;
|
|
||||||
|
|
||||||
- private boolean mAnimationsEnabled = true;
|
|
||||||
+ private boolean mAnimationsEnabled = false;
|
|
||||||
private CharSequence mMessage;
|
|
||||||
private KeyguardIndication mKeyguardIndicationInfo;
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,107 @@
|
|||||||
|
From e894e06a986225263ec0828595edc5f22f01d59b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Tue, 29 Jun 2021 23:01:07 +0000
|
||||||
|
Subject: [PATCH 09/18] UI: Force dark QS scrim
|
||||||
|
|
||||||
|
Side effect from using light wallpapers
|
||||||
|
|
||||||
|
Change-Id: I241dfd7cf8d8bfce1503e7872c5359c380fdbfed
|
||||||
|
---
|
||||||
|
.../systemui/qs/QuickStatusBarHeader.java | 5 -----
|
||||||
|
.../stack/NotificationStackScrollLayout.java | 2 +-
|
||||||
|
.../statusbar/phone/ScrimController.java | 21 ++++++-------------
|
||||||
|
3 files changed, 7 insertions(+), 21 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||||
|
index 94fd996d085..f82ec46c1ea 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||||
|
@@ -411,11 +411,6 @@ public class QuickStatusBarHeader extends RelativeLayout implements
|
||||||
|
protected void onConfigurationChanged(Configuration newConfig) {
|
||||||
|
super.onConfigurationChanged(newConfig);
|
||||||
|
updateResources();
|
||||||
|
-
|
||||||
|
- // Update color schemes in landscape to use wallpaperTextColor
|
||||||
|
- boolean shouldUseWallpaperTextColor =
|
||||||
|
- newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE;
|
||||||
|
- mClockView.useWallpaperTextColor(shouldUseWallpaperTextColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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 a4a58194a46..05199cec01a 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
|
||||||
|
@@ -541,7 +541,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
||||||
|
|
||||||
|
private SysuiColorExtractor.OnColorsChangedListener mOnColorsChangedListener =
|
||||||
|
(colorExtractor, which) -> {
|
||||||
|
- final boolean useDarkText = mColorExtractor.getNeutralColors().supportsDarkText();
|
||||||
|
+ final boolean useDarkText = false;
|
||||||
|
updateDecorViews(useDarkText);
|
||||||
|
};
|
||||||
|
|
||||||
|
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 686b8712723..96702a831cd 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||||
|
@@ -35,9 +35,7 @@ import android.view.animation.DecelerateInterpolator;
|
||||||
|
import android.view.animation.Interpolator;
|
||||||
|
|
||||||
|
import com.android.internal.annotations.VisibleForTesting;
|
||||||
|
-import com.android.internal.colorextraction.ColorExtractor;
|
||||||
|
import com.android.internal.colorextraction.ColorExtractor.GradientColors;
|
||||||
|
-import com.android.internal.colorextraction.ColorExtractor.OnColorsChangedListener;
|
||||||
|
import com.android.internal.graphics.ColorUtils;
|
||||||
|
import com.android.internal.util.function.TriConsumer;
|
||||||
|
import com.android.keyguard.KeyguardUpdateMonitor;
|
||||||
|
@@ -69,8 +67,7 @@ import javax.inject.Singleton;
|
||||||
|
* security method gets shown).
|
||||||
|
*/
|
||||||
|
@Singleton
|
||||||
|
-public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnColorsChangedListener,
|
||||||
|
- Dumpable {
|
||||||
|
+public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dumpable {
|
||||||
|
|
||||||
|
static final String TAG = "ScrimController";
|
||||||
|
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||||
|
@@ -149,7 +146,6 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||||
|
private final KeyguardVisibilityCallback mKeyguardVisibilityCallback;
|
||||||
|
private final Handler mHandler;
|
||||||
|
|
||||||
|
- private final SysuiColorExtractor mColorExtractor;
|
||||||
|
private GradientColors mColors;
|
||||||
|
private boolean mNeedsDrawableColorUpdate;
|
||||||
|
|
||||||
|
@@ -226,9 +222,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
- mColorExtractor = sysuiColorExtractor;
|
||||||
|
- mColorExtractor.addOnColorsChangedListener(this);
|
||||||
|
- mColors = mColorExtractor.getNeutralColors();
|
||||||
|
+ mColors = new GradientColors();
|
||||||
|
+ mColors.setMainColor(-14671580);
|
||||||
|
+ mColors.setSecondaryColor(-14671580);
|
||||||
|
+ mColors.setColorPalette(new int[] {-14671580});
|
||||||
|
+ mColors.setSupportsDarkText(false);
|
||||||
|
mNeedsDrawableColorUpdate = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -941,13 +939,6 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||||
|
// Don't care in the base class.
|
||||||
|
}
|
||||||
|
|
||||||
|
- @Override
|
||||||
|
- public void onColorsChanged(ColorExtractor colorExtractor, int which) {
|
||||||
|
- mColors = mColorExtractor.getNeutralColors();
|
||||||
|
- mNeedsDrawableColorUpdate = true;
|
||||||
|
- scheduleUpdate();
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
@Override
|
||||||
|
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||||
|
pw.println(" ScrimController: ");
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
From 5ad738126de00c6c36b6a00ad0cc0afa5546fe56 Mon Sep 17 00:00:00 2001
|
||||||
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Thu, 27 Dec 2018 16:38:19 +0800
|
||||||
|
Subject: [PATCH 10/18] Keyguard: Show shortcuts by default
|
||||||
|
|
||||||
|
Change-Id: I5655e0be26cec61214735719dffcda810286cd41
|
||||||
|
---
|
||||||
|
packages/SystemUI/res/values/config.xml | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||||
|
index fd9ec3166fb..2fb057cb635 100644
|
||||||
|
--- a/packages/SystemUI/res/values/config.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/config.xml
|
||||||
|
@@ -69,10 +69,10 @@
|
||||||
|
<integer translatable="false" name="config_search_panel_view_vibration_duration">20</integer>
|
||||||
|
|
||||||
|
<!-- Show mic or phone affordance on Keyguard -->
|
||||||
|
- <bool name="config_keyguardShowLeftAffordance">false</bool>
|
||||||
|
+ <bool name="config_keyguardShowLeftAffordance">true</bool>
|
||||||
|
|
||||||
|
<!-- Show camera affordance on Keyguard -->
|
||||||
|
- <bool name="config_keyguardShowCameraAffordance">false</bool>
|
||||||
|
+ <bool name="config_keyguardShowCameraAffordance">true</bool>
|
||||||
|
|
||||||
|
<!-- The length of the vibration when the notification pops open. -->
|
||||||
|
<integer name="one_finger_pop_duration_ms">10</integer>
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,216 +0,0 @@
|
|||||||
From 912c05a46cee1fa20ac795eea86c10ed8c6c485f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 20 Mar 2021 10:35:14 +0000
|
|
||||||
Subject: [PATCH 10/22] Keyguard/UI: Fix status bar / quick settings margins
|
|
||||||
and paddings
|
|
||||||
|
|
||||||
Last revised on 2024/04/04, targeting U QPR2
|
|
||||||
|
|
||||||
The way I think SB/QS margins/paddings should work:
|
|
||||||
- Devices with left notch: [notch_definition][status_bar_padding_start][content]...[content][status_bar_padding_end][rounded_corner_content_padding]
|
|
||||||
- Devices with center or no notch: [rounded_corner_content_padding][status_bar_padding_start][content]...[content][status_bar_padding_end][rounded_corner_content_padding]
|
|
||||||
Key point being:
|
|
||||||
- SB (including keyguard) and QS should always act uniformly
|
|
||||||
- Notch definition should only be the notch itself, without additional padding
|
|
||||||
- Instead, these paddings should be covered by status_bar_padding_{start|end}
|
|
||||||
As a result, below changes have been made:
|
|
||||||
- Change keyguard_carrier_text_margin into a padding and link to status_bar_padding_start
|
|
||||||
- Add status_bar_padding_{start|end} to quick settings header
|
|
||||||
- Remove unnecessary margins and paddings if any
|
|
||||||
|
|
||||||
Change-Id: Ic91fa398813e1907297bb0892c444d96405950e7
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/layout/keyguard_status_bar.xml | 2 +-
|
|
||||||
packages/SystemUI/res/layout/operator_name.xml | 3 ++-
|
|
||||||
packages/SystemUI/res/values-sw600dp/dimens.xml | 7 ++-----
|
|
||||||
packages/SystemUI/res/values/dimens.xml | 6 +++---
|
|
||||||
packages/SystemUI/res/xml/qqs_header.xml | 4 ++--
|
|
||||||
.../android/systemui/shade/ShadeHeaderController.kt | 10 +++++++---
|
|
||||||
.../systemui/statusbar/OperatorNameViewController.java | 2 +-
|
|
||||||
.../statusbar/phone/KeyguardStatusBarView.java | 7 -------
|
|
||||||
8 files changed, 18 insertions(+), 23 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
index 6108ce24f4fa..2bf5036e686c 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
|
||||||
@@ -71,7 +71,7 @@
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:paddingTop="@dimen/status_bar_padding_top"
|
|
||||||
- android:layout_marginStart="@dimen/keyguard_carrier_text_margin"
|
|
||||||
+ android:paddingStart="@dimen/keyguard_carrier_text_margin"
|
|
||||||
android:layout_toStartOf="@id/system_icons_container"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
diff --git a/packages/SystemUI/res/layout/operator_name.xml b/packages/SystemUI/res/layout/operator_name.xml
|
|
||||||
index 015e30a5d050..8ae4faee8325 100644
|
|
||||||
--- a/packages/SystemUI/res/layout/operator_name.xml
|
|
||||||
+++ b/packages/SystemUI/res/layout/operator_name.xml
|
|
||||||
@@ -28,5 +28,6 @@
|
|
||||||
android:gravity="center_vertical|start"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:singleLine="true"
|
|
||||||
- android:paddingEnd="5dp" />
|
|
||||||
+ android:paddingEnd="5dp"
|
|
||||||
+ android:visibility="gone" />
|
|
||||||
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
|
|
||||||
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
|
||||||
index 1e54fc9e1445..6c1cb6ce43cb 100644
|
|
||||||
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
|
||||||
@@ -21,7 +21,7 @@
|
|
||||||
<dimen name="status_bar_header_height_keyguard">@dimen/status_bar_height</dimen>
|
|
||||||
|
|
||||||
<!-- padding for container with status icons and battery -->
|
|
||||||
- <dimen name="status_bar_icons_padding_end">4dp</dimen>
|
|
||||||
+ <dimen name="status_bar_icons_padding_end">0dp</dimen>
|
|
||||||
<!-- start padding is smaller to account for status icon margins coming from drawable itself -->
|
|
||||||
<dimen name="status_bar_icons_padding_start">3dp</dimen>
|
|
||||||
<dimen name="status_bar_icons_padding_bottom">2dp</dimen>
|
|
||||||
@@ -37,9 +37,6 @@
|
|
||||||
<!-- The width of user avatar when on Keyguard -->
|
|
||||||
<dimen name="multi_user_avatar_keyguard_size">30dp</dimen>
|
|
||||||
|
|
||||||
- <!-- Margin on the left side of the carrier text on Keyguard -->
|
|
||||||
- <dimen name="keyguard_carrier_text_margin">24dp</dimen>
|
|
||||||
-
|
|
||||||
<!-- Screen pinning request width -->
|
|
||||||
<dimen name="screen_pinning_request_width">400dp</dimen>
|
|
||||||
<!-- Screen pinning request bottom button circle widths -->
|
|
||||||
@@ -81,7 +78,7 @@
|
|
||||||
<dimen name="large_screen_shade_header_height">42dp</dimen>
|
|
||||||
<!-- start padding is smaller to account for status icon margins coming from drawable itself -->
|
|
||||||
<dimen name="hover_system_icons_container_padding_start">3dp</dimen>
|
|
||||||
- <dimen name="hover_system_icons_container_padding_end">4dp</dimen>
|
|
||||||
+ <dimen name="hover_system_icons_container_padding_end">0dp</dimen>
|
|
||||||
<dimen name="hover_system_icons_container_padding_top">2dp</dimen>
|
|
||||||
<dimen name="hover_system_icons_container_padding_bottom">2dp</dimen>
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
index 4db3a593b9ff..de6834c2cfac 100644
|
|
||||||
--- a/packages/SystemUI/res/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
@@ -177,7 +177,7 @@
|
|
||||||
<dimen name="status_bar_clock_size">14sp</dimen>
|
|
||||||
|
|
||||||
<!-- The starting padding for the clock in the status bar. -->
|
|
||||||
- <dimen name="status_bar_clock_starting_padding">4dp</dimen>
|
|
||||||
+ <dimen name="status_bar_clock_starting_padding">0dp</dimen>
|
|
||||||
|
|
||||||
<!-- The end padding for the clock in the status bar. -->
|
|
||||||
<dimen name="status_bar_clock_end_padding">0dp</dimen>
|
|
||||||
@@ -391,7 +391,7 @@
|
|
||||||
<!-- padding start is a bit smaller than end to account for status icon margin-->
|
|
||||||
<dimen name="status_bar_icons_padding_start">3dp</dimen>
|
|
||||||
|
|
||||||
- <dimen name="status_bar_icons_padding_end">4dp</dimen>
|
|
||||||
+ <dimen name="status_bar_icons_padding_end">0dp</dimen>
|
|
||||||
<dimen name="status_bar_icons_padding_bottom">0dp</dimen>
|
|
||||||
<dimen name="status_bar_icons_padding_top">0dp</dimen>
|
|
||||||
|
|
||||||
@@ -865,7 +865,7 @@
|
|
||||||
<dimen name="kg_framed_avatar_size">32dp</dimen>
|
|
||||||
|
|
||||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
|
||||||
- <dimen name="keyguard_carrier_text_margin">16dp</dimen>
|
|
||||||
+ <dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
|
||||||
|
|
||||||
<!-- Additional translation (downwards) for appearing notifications when going to the full shade
|
|
||||||
from Keyguard. -->
|
|
||||||
diff --git a/packages/SystemUI/res/xml/qqs_header.xml b/packages/SystemUI/res/xml/qqs_header.xml
|
|
||||||
index 50a388d0fa64..81d30c210770 100644
|
|
||||||
--- a/packages/SystemUI/res/xml/qqs_header.xml
|
|
||||||
+++ b/packages/SystemUI/res/xml/qqs_header.xml
|
|
||||||
@@ -44,7 +44,7 @@
|
|
||||||
<Layout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="@dimen/new_qs_header_non_clickable_element_height"
|
|
||||||
- android:layout_marginStart="8dp"
|
|
||||||
+ android:layout_marginStart="2dp"
|
|
||||||
app:layout_constrainedWidth="true"
|
|
||||||
app:layout_constraintStart_toEndOf="@id/clock"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/barrier"
|
|
||||||
@@ -94,4 +94,4 @@
|
|
||||||
app:layout_constraintHorizontal_bias="1"
|
|
||||||
/>
|
|
||||||
</Constraint>
|
|
||||||
-</ConstraintSet>
|
|
||||||
\ No newline at end of file
|
|
||||||
+</ConstraintSet>
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt b/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
|
||||||
index d26ef5e73152..1da47bffdf7f 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt
|
|
||||||
@@ -145,6 +145,8 @@ constructor(
|
|
||||||
|
|
||||||
private var roundedCorners = 0
|
|
||||||
private var cutout: DisplayCutout? = null
|
|
||||||
+ private var statusBarPaddingStart = 0
|
|
||||||
+ private var statusBarPaddingEnd = 0
|
|
||||||
private var lastInsets: WindowInsets? = null
|
|
||||||
private var nextAlarmIntent: PendingIntent? = null
|
|
||||||
private var textColorPrimary = Color.TRANSPARENT
|
|
||||||
@@ -428,14 +430,17 @@ constructor(
|
|
||||||
val cutoutLeft = sbInsets.left
|
|
||||||
val cutoutRight = sbInsets.right
|
|
||||||
val hasCornerCutout: Boolean = insetsProvider.currentRotationHasCornerCutout()
|
|
||||||
+ roundedCorners = resources.getDimensionPixelSize(R.dimen.rounded_corner_content_padding)
|
|
||||||
+ statusBarPaddingStart = resources.getDimensionPixelSize(R.dimen.status_bar_padding_start)
|
|
||||||
+ statusBarPaddingEnd = resources.getDimensionPixelSize(R.dimen.status_bar_padding_end)
|
|
||||||
updateQQSPaddings()
|
|
||||||
// Set these guides as the left/right limits for content that lives in the top row, using
|
|
||||||
// cutoutLeft and cutoutRight
|
|
||||||
var changes =
|
|
||||||
combinedShadeHeadersConstraintManager.edgesGuidelinesConstraints(
|
|
||||||
- if (view.isLayoutRtl) cutoutRight else cutoutLeft,
|
|
||||||
+ (if (view.isLayoutRtl) cutoutRight else cutoutLeft) + statusBarPaddingStart,
|
|
||||||
header.paddingStart,
|
|
||||||
- if (view.isLayoutRtl) cutoutLeft else cutoutRight,
|
|
||||||
+ (if (view.isLayoutRtl) cutoutLeft else cutoutRight) + statusBarPaddingEnd,
|
|
||||||
header.paddingEnd
|
|
||||||
)
|
|
||||||
|
|
||||||
@@ -559,7 +564,6 @@ constructor(
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun updateResources() {
|
|
||||||
- roundedCorners = resources.getDimensionPixelSize(R.dimen.rounded_corner_content_padding)
|
|
||||||
val padding = resources.getDimensionPixelSize(R.dimen.qs_panel_padding)
|
|
||||||
header.setPadding(padding, header.paddingTop, padding, header.paddingBottom)
|
|
||||||
updateQQSPaddings()
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/OperatorNameViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/OperatorNameViewController.java
|
|
||||||
index 8afc72f08656..fe66c21ae568 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/OperatorNameViewController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/OperatorNameViewController.java
|
|
||||||
@@ -86,7 +86,7 @@ public class OperatorNameViewController extends ViewController<OperatorNameView>
|
|
||||||
boolean showOperatorName =
|
|
||||||
mCarrierConfigTracker
|
|
||||||
.getShowOperatorNameInStatusBarConfig(defaultSubInfo.getSubId())
|
|
||||||
- && (mTunerService.getValue(KEY_SHOW_OPERATOR_NAME, 1) != 0);
|
|
||||||
+ && (mTunerService.getValue(KEY_SHOW_OPERATOR_NAME, 0) != 0);
|
|
||||||
mView.update(showOperatorName, mTelephonyManager.isDataCapable(), getDefaultSubInfo());
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
index be1d9e8ef870..3c25d5d83afc 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
@@ -183,14 +183,7 @@ public class KeyguardStatusBarView extends RelativeLayout {
|
|
||||||
mCarrierLabel.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
|
||||||
getResources().getDimensionPixelSize(
|
|
||||||
com.android.internal.R.dimen.text_size_small_material));
|
|
||||||
- lp = (MarginLayoutParams) mCarrierLabel.getLayoutParams();
|
|
||||||
|
|
||||||
- int marginStart = calculateMargin(
|
|
||||||
- getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin),
|
|
||||||
- mPadding.left);
|
|
||||||
- lp.setMarginStart(marginStart);
|
|
||||||
-
|
|
||||||
- mCarrierLabel.setLayoutParams(lp);
|
|
||||||
updateKeyguardStatusBarHeight();
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,260 @@
|
|||||||
|
From 205d654cd20275c36b5d0826bfe8648ab80118ea Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 2 Nov 2019 07:52:36 +0000
|
||||||
|
Subject: [PATCH 11/18] Keyguard: Revert date and clock to Lollipop style
|
||||||
|
|
||||||
|
Also ported dynamic date format based on alarm presence from Oreo
|
||||||
|
|
||||||
|
Change-Id: I0f61c641ffb2a3e1e6b4da738792ee4ac1d77434
|
||||||
|
---
|
||||||
|
.../layout/keyguard_clock_switch.xml | 3 ---
|
||||||
|
.../layout/keyguard_status_view.xml | 1 -
|
||||||
|
.../res-keyguard/values-h560dp/dimens.xml | 2 +-
|
||||||
|
.../res-keyguard/values-h650dp/dimens.xml | 2 +-
|
||||||
|
.../SystemUI/res-keyguard/values/dimens.xml | 6 ++---
|
||||||
|
.../SystemUI/res-keyguard/values/strings.xml | 4 ++--
|
||||||
|
.../SystemUI/res-keyguard/values/styles.xml | 18 ++++-----------
|
||||||
|
.../res/layout/keyguard_status_bar.xml | 2 +-
|
||||||
|
.../android/keyguard/KeyguardSliceView.java | 2 +-
|
||||||
|
.../keyguard/KeyguardSliceProvider.java | 22 +++++++++++--------
|
||||||
|
10 files changed, 26 insertions(+), 36 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||||
|
index bf2963cd0b7..5fb06f38bd4 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||||
|
@@ -36,8 +36,6 @@
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
- android:paddingBottom="@dimen/title_clock_padding"
|
||||||
|
- android:letterSpacing="0.02"
|
||||||
|
android:textColor="?attr/wallpaperTextColor"
|
||||||
|
android:singleLine="true"
|
||||||
|
style="@style/widget_big"
|
||||||
|
@@ -51,7 +49,6 @@
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
- android:letterSpacing="0.03"
|
||||||
|
android:textColor="?attr/wallpaperTextColor"
|
||||||
|
android:singleLine="true"
|
||||||
|
style="@style/widget_title_bold"
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||||
|
index 10cd3cba713..9845a02399b 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||||
|
@@ -67,7 +67,6 @@
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:textColor="?attr/wallpaperTextColorSecondary"
|
||||||
|
android:textSize="@dimen/widget_label_font_size"
|
||||||
|
- android:letterSpacing="0.05"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:singleLine="true" />
|
||||||
|
<com.android.systemui.statusbar.phone.NotificationIconContainer
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml b/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||||
|
index 669f8fb642d..345b3d9c707 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||||
|
@@ -16,5 +16,5 @@
|
||||||
|
-->
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||||
|
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||||
|
</resources>
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml b/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||||
|
index 669f8fb642d..345b3d9c707 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||||
|
@@ -16,5 +16,5 @@
|
||||||
|
-->
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||||
|
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||||
|
</resources>
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/values/dimens.xml b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||||
|
index f9389ce24d9..cf3a8d79712 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||||
|
@@ -42,13 +42,13 @@
|
||||||
|
<dimen name="eca_overlap">-10dip</dimen>
|
||||||
|
|
||||||
|
<!-- Slice header -->
|
||||||
|
- <dimen name="widget_title_font_size">24dp</dimen>
|
||||||
|
+ <dimen name="widget_title_font_size">16dp</dimen>
|
||||||
|
<dimen name="header_subtitle_padding">12dp</dimen>
|
||||||
|
<dimen name="header_icon_size">16dp</dimen>
|
||||||
|
<!-- Slice subtitle -->
|
||||||
|
- <dimen name="widget_label_font_size">18dp</dimen>
|
||||||
|
+ <dimen name="widget_label_font_size">16dp</dimen>
|
||||||
|
<!-- Clock without header -->
|
||||||
|
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||||
|
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||||
|
<dimen name="bottom_text_spacing_digital">0dp</dimen>
|
||||||
|
<dimen name="title_clock_padding">4dp</dimen>
|
||||||
|
<!-- Clock with header -->
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/values/strings.xml b/packages/SystemUI/res-keyguard/values/strings.xml
|
||||||
|
index 4b6621379b4..3f7b909bf8e 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/values/strings.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/values/strings.xml
|
||||||
|
@@ -115,9 +115,9 @@
|
||||||
|
<string name="keyguard_carrier_name_with_sim_locked_template" translatable="false"><xliff:g id="carrier">%s</xliff:g> (<xliff:g id="message">%s</xliff:g>)</string>
|
||||||
|
|
||||||
|
<!-- Time format strings for fall-back clock widget -->
|
||||||
|
- <string name="keyguard_widget_12_hours_format" translatable="false">h:mm</string>
|
||||||
|
+ <string name="keyguard_widget_12_hours_format" translatable="false">hh:mm</string>
|
||||||
|
<!-- Time format strings for fall-back clock widget -->
|
||||||
|
- <string name="keyguard_widget_24_hours_format" translatable="false">kk:mm</string>
|
||||||
|
+ <string name="keyguard_widget_24_hours_format" translatable="false">HH:mm</string>
|
||||||
|
<!-- The character used in keyguard_widget_12_hours_format and keyguard_widget_24_hours_format
|
||||||
|
to represent a ":". -->
|
||||||
|
<string name="keyguard_fancy_colon" translatable="false"></string>
|
||||||
|
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||||
|
index 401f3e3e068..6ad077aaa5a 100644
|
||||||
|
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||||
|
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||||
|
@@ -65,29 +65,23 @@
|
||||||
|
<style name="widget_big">
|
||||||
|
<item name="android:textSize">@dimen/widget_big_font_size</item>
|
||||||
|
<item name="android:paddingBottom">@dimen/bottom_text_spacing_digital</item>
|
||||||
|
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||||
|
+ <item name="android:fontFamily">sans-serif-thin</item>
|
||||||
|
<item name="android:fontFeatureSettings">@*android:string/config_headlineFontFeatureSettings</item>
|
||||||
|
<item name="android:ellipsize">none</item>
|
||||||
|
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||||
|
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||||
|
</style>
|
||||||
|
<style name="widget_title_bold">
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
|
<item name="android:textSize">@dimen/widget_title_font_size</item>
|
||||||
|
<item name="android:paddingBottom">@dimen/widget_vertical_padding_clock</item>
|
||||||
|
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||||
|
+ <item name="android:fontFamily">sans-serif</item>
|
||||||
|
<item name="android:ellipsize">none</item>
|
||||||
|
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||||
|
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||||
|
</style>
|
||||||
|
<style name="widget_small_bold">
|
||||||
|
<item name="android:textStyle">bold</item>
|
||||||
|
<item name="android:textSize">@dimen/widget_small_font_size</item>
|
||||||
|
<item name="android:paddingBottom">@dimen/bottom_text_spacing_digital</item>
|
||||||
|
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||||
|
+ <item name="android:fontFamily">sans-serif</item>
|
||||||
|
<item name="android:ellipsize">none</item>
|
||||||
|
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||||
|
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="BouncerSecurityContainer">
|
||||||
|
@@ -119,9 +113,7 @@
|
||||||
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:ellipsize">end</item>
|
||||||
|
<item name="android:maxLines">2</item>
|
||||||
|
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||||
|
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||||
|
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||||
|
+ <item name="android:fontFamily">sans-serif</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="TextAppearance.Keyguard.Secondary">
|
||||||
|
@@ -135,8 +127,6 @@
|
||||||
|
<item name="android:textSize">14sp</item>
|
||||||
|
<item name="android:maxLines">1</item>
|
||||||
|
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||||
|
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||||
|
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
||||||
|
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
index 2b22cc196db..58343800c2e 100644
|
||||||
|
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
@@ -73,7 +73,7 @@
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:textDirection="locale"
|
||||||
|
- android:textAppearance="@style/TextAppearance.StatusBar.Clock"
|
||||||
|
+ android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="?attr/wallpaperTextColorSecondary"
|
||||||
|
android:singleLine="true"
|
||||||
|
systemui:showMissingSim="true"
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
||||||
|
index f639c880c97..5c42937eb6a 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
||||||
|
@@ -502,7 +502,7 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe
|
||||||
|
for (int i = 0; i < childCount; i++) {
|
||||||
|
View child = getChildAt(i);
|
||||||
|
if (child instanceof KeyguardSliceTextView) {
|
||||||
|
- ((KeyguardSliceTextView) child).setMaxWidth(width / 3);
|
||||||
|
+ ((KeyguardSliceTextView) child).setMaxWidth(width);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||||
|
index 3a37c0fd463..70b7e5354e2 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||||
|
@@ -95,7 +95,7 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||||
|
* Only show alarms that will ring within N hours.
|
||||||
|
*/
|
||||||
|
@VisibleForTesting
|
||||||
|
- static final int ALARM_VISIBILITY_HOURS = 12;
|
||||||
|
+ static final int ALARM_VISIBILITY_HOURS = 24;
|
||||||
|
|
||||||
|
private static final Object sInstanceLock = new Object();
|
||||||
|
private static KeyguardSliceProvider sInstance;
|
||||||
|
@@ -304,7 +304,10 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||||
|
if (oldInstance != null) {
|
||||||
|
oldInstance.onDestroy();
|
||||||
|
}
|
||||||
|
- mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
|
||||||
|
+ boolean isNextAlarmPresent = withinNHoursLocked(mNextAlarmInfo, ALARM_VISIBILITY_HOURS);
|
||||||
|
+ mDatePattern = getContext().getString(isNextAlarmPresent
|
||||||
|
+ ? R.string.abbrev_wday_month_day_no_year_alarm
|
||||||
|
+ : R.string.abbrev_wday_month_day_no_year);
|
||||||
|
mPendingIntent = PendingIntent.getActivity(getContext(), 0,
|
||||||
|
new Intent(getContext(), KeyguardSliceProvider.class), 0);
|
||||||
|
mMediaManager.addCallback(this);
|
||||||
|
@@ -355,14 +358,17 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||||
|
synchronized (this) {
|
||||||
|
if (withinNHoursLocked(mNextAlarmInfo, ALARM_VISIBILITY_HOURS)) {
|
||||||
|
String pattern = android.text.format.DateFormat.is24HourFormat(getContext(),
|
||||||
|
- ActivityManager.getCurrentUser()) ? "HH:mm" : "h:mm";
|
||||||
|
+ ActivityManager.getCurrentUser()) ? "E HH:mm" : "E hh:mm";
|
||||||
|
mNextAlarm = android.text.format.DateFormat.format(pattern,
|
||||||
|
mNextAlarmInfo.getTriggerTime()).toString();
|
||||||
|
+ mDatePattern = getContext().getString(R.string.abbrev_wday_month_day_no_year_alarm);
|
||||||
|
} else {
|
||||||
|
mNextAlarm = "";
|
||||||
|
+ mDatePattern = getContext().getString(R.string.abbrev_wday_month_day_no_year);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
notifyChange();
|
||||||
|
+ updateClockLocked();
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean withinNHoursLocked(AlarmManager.AlarmClockInfo alarmClockInfo, int hours) {
|
||||||
|
@@ -411,12 +417,10 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getFormattedDateLocked() {
|
||||||
|
- if (mDateFormat == null) {
|
||||||
|
- final Locale l = Locale.getDefault();
|
||||||
|
- DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l);
|
||||||
|
- format.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||||
|
- mDateFormat = format;
|
||||||
|
- }
|
||||||
|
+ final Locale l = Locale.getDefault();
|
||||||
|
+ DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l);
|
||||||
|
+ format.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||||
|
+ mDateFormat = format;
|
||||||
|
mCurrentTime.setTime(System.currentTimeMillis());
|
||||||
|
return mDateFormat.format(mCurrentTime);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
From f852829bcf852d5ae7f8040b22bed24d00b0fabb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Tue, 31 May 2022 00:00:08 +0000
|
|
||||||
Subject: [PATCH 11/22] Revert "SystemUI: Add left padding for keyguard slices"
|
|
||||||
|
|
||||||
This reverts commit 4a7a4426944e28e70a3eca6a696ff6c7599fb896.
|
|
||||||
---
|
|
||||||
.../src/com/android/keyguard/KeyguardSliceView.java | 9 +++------
|
|
||||||
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
|
||||||
index 062ff3828a60..7b5325d4eaa6 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
|
|
||||||
@@ -48,7 +48,6 @@ import com.android.app.animation.Interpolators;
|
|
||||||
import com.android.internal.annotations.VisibleForTesting;
|
|
||||||
import com.android.internal.graphics.ColorUtils;
|
|
||||||
import com.android.settingslib.Utils;
|
|
||||||
-import com.android.systemui.keyguard.KeyguardSliceProvider;
|
|
||||||
import com.android.systemui.res.R;
|
|
||||||
import com.android.systemui.util.wakelock.KeepAwakeAnimationListener;
|
|
||||||
|
|
||||||
@@ -446,15 +445,13 @@ public class KeyguardSliceView extends LinearLayout {
|
|
||||||
|
|
||||||
private void updatePadding() {
|
|
||||||
boolean hasText = !TextUtils.isEmpty(getText());
|
|
||||||
- boolean isDate = Uri.parse(KeyguardSliceProvider.KEYGUARD_DATE_URI).equals(getTag());
|
|
||||||
int padding = (int) getContext().getResources()
|
|
||||||
.getDimension(R.dimen.widget_horizontal_padding) / 2;
|
|
||||||
- int iconPadding = (int) mContext.getResources()
|
|
||||||
- .getDimension(R.dimen.widget_icon_padding);
|
|
||||||
// orientation is vertical, so add padding to top & bottom
|
|
||||||
- setPadding(!isDate ? iconPadding : 0, padding, 0, hasText ? padding : 0);
|
|
||||||
+ setPadding(0, padding, 0, hasText ? padding : 0);
|
|
||||||
|
|
||||||
- setCompoundDrawablePadding(iconPadding);
|
|
||||||
+ setCompoundDrawablePadding((int) mContext.getResources()
|
|
||||||
+ .getDimension(R.dimen.widget_icon_padding));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,54 @@
|
|||||||
|
From 535b165f24d4166c515d2ad61ec65874d786fef5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 2 Nov 2019 11:11:07 +0000
|
||||||
|
Subject: [PATCH 12/18] Keyguard: Fix clock position
|
||||||
|
|
||||||
|
New method - way easier than what was done on Pie
|
||||||
|
Still not perfect:
|
||||||
|
- Notification padding has to be taken care of in some other way - directly altering stackScrollerPadding causes visual glitches
|
||||||
|
|
||||||
|
Change-Id: Ia5cebd04c2cb4b324c04019afdf045d5489cf2b8
|
||||||
|
---
|
||||||
|
.../statusbar/phone/KeyguardClockPositionAlgorithm.java | 8 ++++----
|
||||||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||||
|
index a3f14ba28dc..d1982ae5ad2 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||||
|
@@ -177,7 +177,8 @@ public class KeyguardClockPositionAlgorithm {
|
||||||
|
}
|
||||||
|
|
||||||
|
private int getMaxClockY() {
|
||||||
|
- return mHeight / 2 - mKeyguardStatusHeight - mClockNotificationsMargin;
|
||||||
|
+ // Align the center of the clock at 1/3 of the screen
|
||||||
|
+ return mHeight / 3 - mKeyguardStatusHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
private int getPreferredClockY() {
|
||||||
|
@@ -214,12 +215,11 @@ public class KeyguardClockPositionAlgorithm {
|
||||||
|
}
|
||||||
|
|
||||||
|
private int getClockY(float panelExpansion) {
|
||||||
|
- // Dark: Align the bottom edge of the clock at about half of the screen:
|
||||||
|
float clockYDark = (mHasCustomClock ? getPreferredClockY() : getMaxClockY())
|
||||||
|
+ burnInPreventionOffsetY();
|
||||||
|
clockYDark = MathUtils.max(0, clockYDark);
|
||||||
|
|
||||||
|
- float clockYRegular = getExpandedPreferredClockY();
|
||||||
|
+ float clockYRegular = getMaxClockY();
|
||||||
|
float clockYBouncer = -mKeyguardStatusHeight;
|
||||||
|
|
||||||
|
// Move clock up while collapsing the shade
|
||||||
|
@@ -240,7 +240,7 @@ public class KeyguardClockPositionAlgorithm {
|
||||||
|
* @return Alpha from 0 to 1.
|
||||||
|
*/
|
||||||
|
private float getClockAlpha(int y) {
|
||||||
|
- float alphaKeyguard = Math.max(0, y / Math.max(1f, getClockY(1f)));
|
||||||
|
+ float alphaKeyguard = Math.max(0, y / Math.max(1f, getMaxClockY()));
|
||||||
|
alphaKeyguard = Interpolators.ACCELERATE.getInterpolation(alphaKeyguard);
|
||||||
|
return MathUtils.lerp(alphaKeyguard, 1f, mDarkAmount);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
From 68142f99e88fbbf08b0acb9d4c544e7827dab2ef Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sun, 30 Jun 2024 14:45:48 +0800
|
|
||||||
Subject: [PATCH 12/22] Revert "SystemUI: Match keyguard carrier text font with
|
|
||||||
system"
|
|
||||||
|
|
||||||
This reverts commit 0abcf0db0b50d270a849b6179083008c25325cc1.
|
|
||||||
---
|
|
||||||
.../android/systemui/statusbar/phone/KeyguardStatusBarView.java | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
index 3c25d5d83afc..3f0a8a387e19 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
|
||||||
@@ -419,7 +419,7 @@ public class KeyguardStatusBarView extends RelativeLayout {
|
|
||||||
/** Should only be called from {@link KeyguardStatusBarViewController}. */
|
|
||||||
void onOverlayChanged() {
|
|
||||||
int theme = Utils.getThemeAttr(mContext, com.android.internal.R.attr.textAppearanceSmall);
|
|
||||||
- mCarrierLabel.setTextAppearance(R.style.TextAppearance_StatusBar_Clock);
|
|
||||||
+ mCarrierLabel.setTextAppearance(theme);
|
|
||||||
mBatteryView.updatePercentView();
|
|
||||||
|
|
||||||
TextView userSwitcherName = mUserSwitcherContainer.findViewById(R.id.current_user_name);
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
|||||||
|
From 525d4852c431af17570f778b4294876393a6c615 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
||||||
|
Subject: [PATCH 13/18] Keyguard: Hide padlock
|
||||||
|
|
||||||
|
It's just fking ugly.
|
||||||
|
Please Google, stop your UI designers.
|
||||||
|
|
||||||
|
Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
||||||
|
---
|
||||||
|
packages/SystemUI/res/values/dimens.xml | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
index e414861b0cd..19341fdb415 100644
|
||||||
|
--- a/packages/SystemUI/res/values/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
@@ -823,8 +823,8 @@
|
||||||
|
<dimen name="keyguard_affordance_width">56dp</dimen>
|
||||||
|
|
||||||
|
<!-- The width/height of the unlock icon view on keyguard. -->
|
||||||
|
- <dimen name="keyguard_lock_height">42dp</dimen>
|
||||||
|
- <dimen name="keyguard_lock_width">42dp</dimen>
|
||||||
|
+ <dimen name="keyguard_lock_height">0dp</dimen>
|
||||||
|
+ <dimen name="keyguard_lock_width">0dp</dimen>
|
||||||
|
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,191 +0,0 @@
|
|||||||
From 0e17ec8d32322817c528c6baee31dfd1b8cf9fb9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sun, 5 Sep 2021 01:20:12 +0000
|
|
||||||
Subject: [PATCH 13/22] Revert "Update RAT icons to match Silk design"
|
|
||||||
|
|
||||||
This reverts commit 084c13c8216f6a899cd3eda04fc1d7acff3d1248.
|
|
||||||
---
|
|
||||||
.../res/drawable/ic_3g_mobiledata.xml | 19 ++++++++-------
|
|
||||||
.../res/drawable/ic_4g_mobiledata.xml | 19 ++++++++-------
|
|
||||||
.../res/drawable/ic_5g_mobiledata.xml | 20 ++++++++--------
|
|
||||||
.../res/drawable/ic_carrier_wifi.xml | 15 +++++++-----
|
|
||||||
.../res/drawable/ic_lte_mobiledata.xml | 23 +++++++++++--------
|
|
||||||
.../res/drawable/stat_sys_roaming_large.xml | 10 ++++----
|
|
||||||
6 files changed, 59 insertions(+), 47 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SettingsLib/res/drawable/ic_3g_mobiledata.xml b/packages/SettingsLib/res/drawable/ic_3g_mobiledata.xml
|
|
||||||
index 413a3873f438..0c942bdf993c 100644
|
|
||||||
--- a/packages/SettingsLib/res/drawable/ic_3g_mobiledata.xml
|
|
||||||
+++ b/packages/SettingsLib/res/drawable/ic_3g_mobiledata.xml
|
|
||||||
@@ -14,14 +14,17 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="21dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="21.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
+ android:width="12.35dp"
|
|
||||||
+ android:height="15dp"
|
|
||||||
+ android:viewportWidth="14"
|
|
||||||
+ android:viewportHeight="17">
|
|
||||||
+
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M1.9,7.88h0.77c0.5,0,0.88-0.15,1.15-0.46s0.4-0.72,0.4-1.25c0-1.17-0.45-1.75-1.35-1.75c-0.43,0-0.77,0.16-1.02,0.47 S1.49,5.62,1.49,6.13h-1.2c0-0.8,0.24-1.46,0.73-1.97s1.11-0.78,1.86-0.78c0.78,0,1.41,0.25,1.87,0.73S5.43,5.31,5.43,6.2 c0,0.46-0.12,0.89-0.36,1.29S4.52,8.18,4.14,8.37c0.94,0.35,1.41,1.12,1.41,2.33c0,0.89-0.25,1.6-0.74,2.12 c-0.49,0.53-1.14,0.79-1.94,0.79c-0.79,0-1.43-0.25-1.91-0.75c-0.49-0.5-0.73-1.17-0.73-2.01h1.21c0,0.53,0.13,0.95,0.38,1.26 c0.26,0.31,0.6,0.47,1.05,0.47c0.45,0,0.81-0.15,1.08-0.46s0.4-0.77,0.4-1.39c0-1.21-0.57-1.81-1.72-1.81H1.9V7.88z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M5.29,13.22c-0.57,0 -1.09,-0.11 -1.57,-0.34c-0.47,-0.22 -0.85,-0.54 -1.16,-0.95C2.25,11.52 2.07,11.01 2,10.42l1.47,-0.34c0.07,0.51 0.27,0.92 0.59,1.23c0.32,0.31 0.73,0.46 1.23,0.46c0.52,0 0.94,-0.15 1.26,-0.46c0.33,-0.31 0.49,-0.71 0.49,-1.22c0,-0.51 -0.18,-0.92 -0.53,-1.22c-0.35,-0.31 -0.8,-0.46 -1.36,-0.46H4.37V7.06h0.73c0.47,0 0.86,-0.13 1.18,-0.38c0.32,-0.26 0.48,-0.63 0.48,-1.11c0,-0.42 -0.14,-0.77 -0.41,-1.04C6.08,4.27 5.7,4.14 5.21,4.14c-0.43,0 -0.79,0.13 -1.08,0.38C3.85,4.76 3.67,5.08 3.6,5.48L2.17,5.3C2.23,4.81 2.4,4.38 2.67,4c0.27,-0.38 0.62,-0.69 1.05,-0.91c0.44,-0.22 0.94,-0.34 1.5,-0.34c0.62,0 1.15,0.12 1.6,0.35c0.45,0.23 0.79,0.55 1.04,0.95C8.1,4.46 8.23,4.9 8.23,5.4C8.23,6 8.1,6.48 7.84,6.81C7.58,7.14 7.29,7.4 6.97,7.6v0.08c0.46,0.2 0.84,0.5 1.13,0.91c0.3,0.4 0.45,0.93 0.45,1.58c0,0.58 -0.14,1.1 -0.42,1.55c-0.27,0.46 -0.65,0.82 -1.15,1.09C6.5,13.09 5.93,13.22 5.29,13.22z"/>
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M13.77,12.24l-0.22,0.27c-0.63,0.73-1.55,1.1-2.76,1.1c-1.08,0-1.92-0.36-2.53-1.07c-0.61-0.71-0.93-1.72-0.94-3.02V7.56 c0-1.39,0.28-2.44,0.84-3.13s1.39-1.04,2.51-1.04c0.95,0,1.69,0.26,2.23,0.79s0.83,1.28,0.89,2.26h-1.25 C12.47,5.82,12.3,5.33,12,4.98s-0.74-0.52-1.34-0.52c-0.72,0-1.24,0.23-1.57,0.7S8.59,6.37,8.58,7.4v2.03c0,1,0.19,1.77,0.57,2.31 c0.38,0.54,0.93,0.8,1.65,0.8c0.67,0,1.19-0.16,1.54-0.49l0.18-0.17V9.59H10.7V8.52h3.07V12.24z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M14.44,13.22c-0.88,0 -1.66,-0.21 -2.34,-0.64c-0.67,-0.44 -1.2,-1.05 -1.6,-1.83c-0.38,-0.79 -0.57,-1.71 -0.57,-2.76c0,-1.05 0.21,-1.96 0.62,-2.74c0.41,-0.79 0.97,-1.4 1.67,-1.83c0.7,-0.44 1.5,-0.66 2.39,-0.66c1.09,0 2.01,0.25 2.74,0.76c0.75,0.5 1.22,1.21 1.41,2.11L17.3,6.01c-0.17,-0.56 -0.48,-1 -0.94,-1.32c-0.45,-0.33 -1.03,-0.49 -1.75,-0.49c-0.57,0 -1.09,0.14 -1.57,0.43c-0.48,0.29 -0.85,0.71 -1.13,1.27s-0.42,1.25 -0.42,2.07c0,0.81 0.14,1.5 0.41,2.07c0.28,0.56 0.65,0.98 1.11,1.27c0.47,0.29 0.98,0.43 1.54,0.43c0.57,0 1.06,-0.11 1.47,-0.34c0.42,-0.23 0.75,-0.55 0.99,-0.94c0.25,-0.4 0.41,-0.85 0.46,-1.36h-2.88V7.79h4.37c0,0.87 0,1.74 0,2.6c0,0.87 0,1.74 0,2.6h-1.41v-1.4h-0.08c-0.28,0.49 -0.67,0.88 -1.18,1.18C15.78,13.07 15.17,13.22 14.44,13.22z"/>
|
|
||||||
+ android:pathData="M 0 0 H 14 V 17 H 0 V 0 Z" />
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SettingsLib/res/drawable/ic_4g_mobiledata.xml b/packages/SettingsLib/res/drawable/ic_4g_mobiledata.xml
|
|
||||||
index 1de7d78ff5f2..535f3589ea6b 100644
|
|
||||||
--- a/packages/SettingsLib/res/drawable/ic_4g_mobiledata.xml
|
|
||||||
+++ b/packages/SettingsLib/res/drawable/ic_4g_mobiledata.xml
|
|
||||||
@@ -14,14 +14,17 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="22dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="22.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
+ android:width="12.35dp"
|
|
||||||
+ android:height="15dp"
|
|
||||||
+ android:viewportWidth="14"
|
|
||||||
+ android:viewportHeight="17">
|
|
||||||
+
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M5.07,10.13h1.11v1.03H5.07v2.31H3.86v-2.31H0.1v-0.75l3.7-6.9h1.27V10.13z M1.44,10.13h2.42V5.4L1.44,10.13z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M2,10.98V9.81l4.28,-6.83h1.6v6.59h1.19v1.41H7.88V13H6.4v-2.02H2zM3.68,9.57H6.4V5.33H6.31L3.68,9.57z"/>
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M13.9,12.24l-0.22,0.27c-0.63,0.73-1.55,1.1-2.76,1.1c-1.08,0-1.92-0.36-2.53-1.07c-0.61-0.71-0.93-1.72-0.94-3.02V7.56 c0-1.39,0.28-2.44,0.84-3.13s1.39-1.04,2.51-1.04c0.95,0,1.69,0.26,2.23,0.79s0.83,1.28,0.89,2.26h-1.25 c-0.05-0.62-0.22-1.1-0.52-1.45s-0.74-0.52-1.34-0.52c-0.72,0-1.24,0.23-1.57,0.7S8.72,6.37,8.71,7.4v2.03 c0,1,0.19,1.77,0.57,2.31c0.38,0.54,0.93,0.8,1.65,0.8c0.67,0,1.19-0.16,1.54-0.49l0.18-0.17V9.59h-1.82V8.52h3.07V12.24z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M15,13.22c-0.88,0 -1.66,-0.21 -2.34,-0.64c-0.67,-0.44 -1.2,-1.05 -1.6,-1.83c-0.38,-0.79 -0.57,-1.71 -0.57,-2.76c0,-1.05 0.21,-1.96 0.62,-2.74c0.41,-0.79 0.97,-1.4 1.67,-1.83c0.7,-0.44 1.5,-0.66 2.39,-0.66c1.09,0 2.01,0.25 2.74,0.76c0.75,0.5 1.22,1.21 1.41,2.11l-1.47,0.39c-0.17,-0.56 -0.48,-1 -0.94,-1.32c-0.45,-0.33 -1.03,-0.49 -1.75,-0.49c-0.57,0 -1.09,0.14 -1.57,0.43c-0.48,0.29 -0.85,0.71 -1.13,1.27c-0.28,0.56 -0.42,1.25 -0.42,2.07c0,0.81 0.14,1.5 0.41,2.07c0.28,0.56 0.65,0.98 1.11,1.27c0.47,0.29 0.98,0.43 1.54,0.43c0.57,0 1.06,-0.11 1.47,-0.34c0.42,-0.23 0.75,-0.55 0.99,-0.94c0.25,-0.4 0.41,-0.85 0.46,-1.36h-2.88V7.79h4.37c0,0.87 0,1.74 0,2.6c0,0.87 0,1.74 0,2.6h-1.41v-1.4h-0.08c-0.28,0.49 -0.67,0.88 -1.18,1.18C16.34,13.07 15.73,13.22 15,13.22z"/>
|
|
||||||
+ android:pathData="M 0 0 H 14 V 17 H 0 V 0 Z" />
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SettingsLib/res/drawable/ic_5g_mobiledata.xml b/packages/SettingsLib/res/drawable/ic_5g_mobiledata.xml
|
|
||||||
index d961c6c2266f..2aa6e57f6f82 100644
|
|
||||||
--- a/packages/SettingsLib/res/drawable/ic_5g_mobiledata.xml
|
|
||||||
+++ b/packages/SettingsLib/res/drawable/ic_5g_mobiledata.xml
|
|
||||||
@@ -14,14 +14,14 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="21dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="21.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
- <path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M5.3,13.22c-0.57,0 -1.1,-0.11 -1.58,-0.34c-0.48,-0.22 -0.87,-0.55 -1.18,-0.98C2.24,11.47 2.06,10.93 2,10.3l1.48,-0.2c0.07,0.5 0.25,0.92 0.56,1.25c0.32,0.32 0.74,0.48 1.26,0.48c0.57,0 1.02,-0.18 1.34,-0.55c0.33,-0.37 0.49,-0.87 0.49,-1.48c0,-0.61 -0.16,-1.09 -0.49,-1.46C6.32,7.96 5.88,7.78 5.32,7.78C5,7.78 4.7,7.85 4.42,8C4.15,8.14 3.93,8.33 3.76,8.56L2.28,7.92l0.6,-4.94h5.26v1.36H4.1L3.72,7.02l0.08,0.03C4,6.87 4.25,6.73 4.55,6.62c0.3,-0.12 0.63,-0.18 1.01,-0.18c0.6,0 1.13,0.14 1.6,0.41C7.62,7.11 7.98,7.5 8.24,8c0.27,0.5 0.41,1.1 0.41,1.79c0,0.66 -0.14,1.26 -0.43,1.78c-0.28,0.51 -0.67,0.92 -1.18,1.22C6.55,13.08 5.97,13.22 5.3,13.22z"/>
|
|
||||||
- <path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M14.51,13.22c-0.88,0 -1.66,-0.21 -2.34,-0.64c-0.67,-0.44 -1.2,-1.05 -1.6,-1.83C10.19,9.95 10,9.03 10,7.99c0,-1.05 0.21,-1.96 0.62,-2.74c0.41,-0.79 0.97,-1.4 1.67,-1.83c0.7,-0.44 1.5,-0.66 2.39,-0.66c1.09,0 2.01,0.25 2.74,0.76c0.75,0.5 1.22,1.21 1.41,2.11l-1.47,0.39c-0.17,-0.56 -0.48,-1 -0.94,-1.32c-0.45,-0.33 -1.03,-0.49 -1.75,-0.49c-0.57,0 -1.09,0.14 -1.57,0.43c-0.48,0.29 -0.85,0.71 -1.13,1.27s-0.42,1.25 -0.42,2.07c0,0.81 0.14,1.5 0.41,2.07c0.28,0.56 0.65,0.98 1.11,1.27c0.47,0.29 0.98,0.43 1.54,0.43c0.57,0 1.06,-0.11 1.47,-0.34c0.42,-0.23 0.75,-0.55 0.99,-0.94c0.25,-0.4 0.41,-0.85 0.46,-1.36h-2.88V7.79h4.37c0,0.87 0,1.74 0,2.6c0,0.87 0,1.74 0,2.6H17.6v-1.4h-0.08c-0.28,0.49 -0.67,0.88 -1.18,1.18C15.85,13.07 15.24,13.22 14.51,13.22z"/>
|
|
||||||
+ android:width="14dp"
|
|
||||||
+ android:height="17dp"
|
|
||||||
+ android:viewportWidth="14"
|
|
||||||
+ android:viewportHeight="17">
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FF000000"
|
|
||||||
+ android:pathData="M13.9,12.24l-0.22,0.27c-0.63,0.73 -1.55,1.1 -2.76,1.1c-1.08,0 -1.92,-0.36 -2.53,-1.07s-0.93,-1.72 -0.94,-3.02V7.56c0,-1.39 0.28,-2.44 0.84,-3.13s1.39,-1.04 2.51,-1.04c0.95,0 1.69,0.26 2.23,0.79s0.83,1.28 0.89,2.26h-1.25c-0.05,-0.62 -0.22,-1.1 -0.52,-1.45s-0.74,-0.52 -1.34,-0.52c-0.72,0 -1.24,0.23 -1.57,0.7S8.72,6.37 8.71,7.4v2.03c0,1 0.19,1.77 0.57,2.31c0.38,0.54 0.93,0.8 1.65,0.8c0.67,0 1.19,-0.16 1.54,-0.49l0.18,-0.17V9.59h-1.82V8.52h3.07V12.24z"/>
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FF000000"
|
|
||||||
+ android:pathData="M1.15,8.47l0.43,-4.96h4.33v1.17H2.6L2.37,7.39C2.78,7.1 3.22,6.96 3.69,6.96c0.77,0 1.38,0.3 1.83,0.9s0.66,1.41 0.66,2.43c0,1.03 -0.24,1.84 -0.72,2.43S4.32,13.6 3.48,13.6c-0.75,0 -1.36,-0.24 -1.83,-0.73s-0.74,-1.16 -0.81,-2.02h1.13c0.07,0.57 0.23,1 0.49,1.29c0.26,0.29 0.59,0.43 1.01,0.43c0.47,0 0.84,-0.2 1.1,-0.61c0.26,-0.41 0.4,-0.96 0.4,-1.65c0,-0.65 -0.14,-1.18 -0.43,-1.59S3.88,8.09 3.4,8.09c-0.4,0 -0.72,0.1 -0.96,0.31L2.11,8.73L1.15,8.47z"/>
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SettingsLib/res/drawable/ic_carrier_wifi.xml b/packages/SettingsLib/res/drawable/ic_carrier_wifi.xml
|
|
||||||
index 22bcf7b8c8a3..ed9d85e3cbe4 100644
|
|
||||||
--- a/packages/SettingsLib/res/drawable/ic_carrier_wifi.xml
|
|
||||||
+++ b/packages/SettingsLib/res/drawable/ic_carrier_wifi.xml
|
|
||||||
@@ -14,14 +14,17 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="24dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="24.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
+ android:width="38dp"
|
|
||||||
+ android:height="24dp"
|
|
||||||
+ android:viewportWidth="38.0"
|
|
||||||
+ android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M4.59,13L2,2.98h1.69l1.5,6.48l0.17,0.88h0.08l0.21,-0.88l1.89,-6.48h1.54l1.83,6.48l0.21,0.87h0.08l0.15,-0.87l1.51,-6.48h1.68L12.01,13H10.4L8.58,6.36L8.36,5.4H8.27L8.05,6.36L6.16,13H4.59z"/>
|
|
||||||
+ android:pathData="M9.45,14.48h1.8c-0.05,0.98 -0.24,1.82 -0.6,2.53c-0.35,0.7 -0.85,1.24 -1.51,1.62c-0.66,0.38 -1.48,0.57 -2.47,0.57c-0.71,0 -1.35,-0.14 -1.92,-0.42c-0.57,-0.28 -1.06,-0.68 -1.47,-1.2c-0.4,-0.53 -0.71,-1.16 -0.93,-1.89c-0.21,-0.74 -0.32,-1.56 -0.32,-2.48v-2.63c0,-0.91 0.11,-1.74 0.32,-2.47c0.22,-0.74 0.54,-1.36 0.95,-1.88C3.71,5.69 4.21,5.29 4.8,5.01c0.6,-0.28 1.28,-0.42 2.03,-0.42c0.92,0 1.71,0.19 2.34,0.56c0.64,0.36 1.14,0.9 1.48,1.61c0.35,0.7 0.55,1.57 0.59,2.59h-1.8C9.41,8.59 9.29,7.98 9.1,7.52C8.91,7.04 8.63,6.69 8.26,6.47C7.9,6.24 7.42,6.13 6.84,6.13c-0.52,0 -0.97,0.1 -1.36,0.31C5.1,6.65 4.79,6.95 4.54,7.34C4.3,7.72 4.12,8.19 3.99,8.74c-0.12,0.54 -0.18,1.15 -0.18,1.82v2.65c0,0.62 0.05,1.21 0.15,1.75c0.1,0.54 0.27,1.02 0.49,1.43c0.23,0.4 0.52,0.72 0.89,0.95c0.36,0.23 0.81,0.34 1.33,0.34c0.66,0 1.18,-0.11 1.56,-0.32c0.38,-0.21 0.67,-0.56 0.85,-1.03C9.27,15.85 9.39,15.23 9.45,14.48z"/>
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M15.77,9.85V8.56h2.46V6.1h1.3v2.46H22v1.29h-2.46v2.46h-1.3V9.85H15.77z"/>
|
|
||||||
+ android:pathData="M24.87,4.78l-1.74,9.72l-0.2,1.64l-0.29,-1.44l-2.21,-9.92l-0.2,0l-1.06,0l-0.22,0l-2.28,9.92l-0.28,1.4l-0.18,-1.59l-1.78,-9.73l-1.79,0l2.83,14.22l0.34,0l0.92,0l0.35,0l2.48,-10.36l0.14,-0.84l0.15,0.84l2.36,10.36l0.36,0l0.92,0l0.34,0l2.82,-14.22z"/>
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FF000000"
|
|
||||||
+ android:pathData="M35.72,6.32l0,-1.54l-5.61,0l-0.34,0l-1.45,0l0,14.22l1.79,0l0,-6.28l4.8,0l0,-1.54l-4.8,0l0,-4.86z"/>
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SettingsLib/res/drawable/ic_lte_mobiledata.xml b/packages/SettingsLib/res/drawable/ic_lte_mobiledata.xml
|
|
||||||
index 739e29d886c2..e6b4fb698242 100644
|
|
||||||
--- a/packages/SettingsLib/res/drawable/ic_lte_mobiledata.xml
|
|
||||||
+++ b/packages/SettingsLib/res/drawable/ic_lte_mobiledata.xml
|
|
||||||
@@ -14,17 +14,20 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="26dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="26.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
+ android:width="15.88dp"
|
|
||||||
+ android:height="15dp"
|
|
||||||
+ android:viewportWidth="18"
|
|
||||||
+ android:viewportHeight="17">
|
|
||||||
+
|
|
||||||
+ <path
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M1.34,12.4h3.9v1.07H0.08V3.52h1.26V12.4z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M2,13V2.98h1.53v8.57H8.3V13H2z"/>
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M11.1,4.6H8.48v8.88H7.23V4.6H4.62V3.52h6.48V4.6z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M11.24,13V4.43H8.19V2.98h7.63v1.46h-3.05V13H11.24z"/>
|
|
||||||
+ android:fillColor="#FFFFFFFF"
|
|
||||||
+ android:pathData="M17.34,8.88h-3.52v3.53h4.1v1.07h-5.35V3.52h5.28V4.6h-4.03V7.8h3.52V8.88z" />
|
|
||||||
<path
|
|
||||||
- android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M17.41,13V2.98h6.36v1.46h-4.83v2.65h4.4v1.46h-4.4v3.01h4.83V13H17.41z"/>
|
|
||||||
+ android:pathData="M 0 0 H 18 V 17 H 0 V 0 Z" />
|
|
||||||
</vector>
|
|
||||||
diff --git a/packages/SystemUI/res/drawable/stat_sys_roaming_large.xml b/packages/SystemUI/res/drawable/stat_sys_roaming_large.xml
|
|
||||||
index 48faeb22416f..1511659ea42f 100644
|
|
||||||
--- a/packages/SystemUI/res/drawable/stat_sys_roaming_large.xml
|
|
||||||
+++ b/packages/SystemUI/res/drawable/stat_sys_roaming_large.xml
|
|
||||||
@@ -14,11 +14,11 @@
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
- android:width="16dp"
|
|
||||||
- android:height="16dp"
|
|
||||||
- android:viewportWidth="16.0"
|
|
||||||
- android:viewportHeight="16.0">
|
|
||||||
+ android:width="@dimen/signal_icon_size"
|
|
||||||
+ android:height="@dimen/signal_icon_size"
|
|
||||||
+ android:viewportWidth="24.0"
|
|
||||||
+ android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
- android:pathData="M4.5,13.02V3h3.93c0.97,0 1.75,0.27 2.34,0.81c0.6,0.53 0.9,1.28 0.9,2.25c0,0.63 -0.19,1.2 -0.56,1.74c-0.37,0.53 -0.95,0.91 -1.74,1.12l2.45,4.02v0.08h-1.69L7.75,9.09H6.03v3.93H4.5zM8.46,4.44H6.03v3.23h2.44c0.49,0 0.9,-0.14 1.2,-0.41c0.31,-0.28 0.46,-0.69 0.46,-1.22s-0.15,-0.93 -0.45,-1.2C9.38,4.58 8.98,4.44 8.46,4.44z"/>
|
|
||||||
+ android:pathData="M14.21,12.81c0.36,-0.16 0.69,-0.36 0.97,-0.61c0.41,-0.38 0.72,-0.83 0.94,-1.37c0.21,-0.54 0.32,-1.14 0.32,-1.79c0,-0.92 -0.16,-1.7 -0.49,-2.33c-0.32,-0.64 -0.79,-1.12 -1.43,-1.45c-0.62,-0.33 -1.4,-0.49 -2.32,-0.49H8.23V19h1.8v-5.76h2.5L15.06,19h1.92v-0.12L14.21,12.81zM10.03,11.71V6.32h2.18c0.59,0 1.06,0.11 1.42,0.34c0.36,0.22 0.62,0.54 0.78,0.95c0.16,0.41 0.24,0.89 0.24,1.44c0,0.49 -0.09,0.93 -0.27,1.34c-0.18,0.4 -0.46,0.73 -0.82,0.97c-0.36,0.23 -0.82,0.35 -1.37,0.35H10.03z"/>
|
|
||||||
</vector>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
|||||||
|
From 62e1f218db18a9bcacba85c479a2c40625e958f6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 2 Nov 2019 08:31:36 +0000
|
||||||
|
Subject: [PATCH 14/18] Keyguard: Refine indication text
|
||||||
|
|
||||||
|
- Always show "Swipe up to unlock" hint
|
||||||
|
- Put the text in-line with bottom shortcuts
|
||||||
|
- Don't show charging state alongside other hints
|
||||||
|
|
||||||
|
Change-Id: Ib771c35610f712a1de34736e817bcfe616ac37d8
|
||||||
|
---
|
||||||
|
packages/SystemUI/res/values-sw600dp-land/dimens.xml | 2 +-
|
||||||
|
packages/SystemUI/res/values-sw600dp/dimens.xml | 2 +-
|
||||||
|
packages/SystemUI/res/values/dimens.xml | 2 +-
|
||||||
|
.../statusbar/KeyguardIndicationController.java | 12 ++----------
|
||||||
|
4 files changed, 5 insertions(+), 13 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/values-sw600dp-land/dimens.xml b/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||||
|
index f2df4b9023b..7719a0ae0ba 100644
|
||||||
|
--- a/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
<resources>
|
||||||
|
<dimen name="keyguard_clock_notifications_margin">36dp</dimen>
|
||||||
|
|
||||||
|
- <dimen name="keyguard_indication_margin_bottom">80dp</dimen>
|
||||||
|
+ <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||||
|
|
||||||
|
<!-- Screen pinning request width (just a little bit bigger than the three buttons here -->
|
||||||
|
<dimen name="screen_pinning_request_width">490dp</dimen>
|
||||||
|
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
index aa574c7d9f6..d06906bab08 100644
|
||||||
|
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
@@ -71,7 +71,7 @@
|
||||||
|
phone hints. -->
|
||||||
|
<dimen name="edge_tap_area_width">80dp</dimen>
|
||||||
|
|
||||||
|
- <dimen name="keyguard_indication_margin_bottom">90dp</dimen>
|
||||||
|
+ <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||||
|
|
||||||
|
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||||
|
<dimen name="system_icons_keyguard_padding_end">2dp</dimen>
|
||||||
|
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
index 19341fdb415..7190def8786 100644
|
||||||
|
--- a/packages/SystemUI/res/values/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
@@ -827,7 +827,7 @@
|
||||||
|
<dimen name="keyguard_lock_width">0dp</dimen>
|
||||||
|
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||||
|
|
||||||
|
- <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||||
|
+ <dimen name="keyguard_indication_margin_bottom">20dp</dimen>
|
||||||
|
|
||||||
|
<!-- The text size for battery level -->
|
||||||
|
<dimen name="battery_level_text_size">12sp</dimen>
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||||
|
index dd6a0f053f9..1c67f914105 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||||
|
@@ -447,15 +447,7 @@ public class KeyguardIndicationController implements StateListener,
|
||||||
|
isError = mTransientTextIsError;
|
||||||
|
} else if (!TextUtils.isEmpty(trustGrantedIndication)
|
||||||
|
&& mKeyguardUpdateMonitor.getUserHasTrust(userId)) {
|
||||||
|
- if (powerIndication != null) {
|
||||||
|
- String indication = mContext.getResources().getString(
|
||||||
|
- R.string.keyguard_indication_trust_unlocked_plugged_in,
|
||||||
|
- trustGrantedIndication, powerIndication);
|
||||||
|
- mTextView.switchIndication(indication);
|
||||||
|
- hideIndication = !mBatteryPresent;
|
||||||
|
- } else {
|
||||||
|
- mTextView.switchIndication(trustGrantedIndication);
|
||||||
|
- }
|
||||||
|
+ mTextView.switchIndication(trustGrantedIndication);
|
||||||
|
} else if (!TextUtils.isEmpty(mAlignmentIndication)) {
|
||||||
|
mTextView.switchIndication(mAlignmentIndication);
|
||||||
|
isError = true;
|
||||||
|
@@ -475,7 +467,7 @@ public class KeyguardIndicationController implements StateListener,
|
||||||
|
&& !mKeyguardUpdateMonitor.getUserHasTrust(userId)) {
|
||||||
|
mTextView.switchIndication(trustManagedIndication);
|
||||||
|
} else {
|
||||||
|
- mTextView.switchIndication(mRestingIndication);
|
||||||
|
+ mTextView.switchIndication(R.string.keyguard_unlock);
|
||||||
|
}
|
||||||
|
mTextView.setTextColor(isError ? Utils.getColorError(mContext)
|
||||||
|
: mInitialTextColorState);
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
From 89e51c6b02e2d555e64ceb9dab1ec96bdbb9ca5e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Thu, 29 Sep 2022 11:27:57 +0000
|
|
||||||
Subject: [PATCH 14/22] Revert "Use the default top clock margin on h800
|
|
||||||
devices"
|
|
||||||
|
|
||||||
This reverts commits 50ba380f4d8d1c2523e0f76295ca556038796bfd
|
|
||||||
and 2a254b4d479029aec46f79a0ed14ffab6d0424bc.
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values-h800dp/dimens.xml | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values-h800dp/dimens.xml b/packages/SystemUI/res/values-h800dp/dimens.xml
|
|
||||||
index 829ef98956c5..8ee3cc1944f2 100644
|
|
||||||
--- a/packages/SystemUI/res/values-h800dp/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values-h800dp/dimens.xml
|
|
||||||
@@ -15,6 +15,9 @@
|
|
||||||
-->
|
|
||||||
|
|
||||||
<resources>
|
|
||||||
+ <!-- Minimum margin between clock and top of screen or ambient indication -->
|
|
||||||
+ <dimen name="keyguard_clock_top_margin">38dp</dimen>
|
|
||||||
+
|
|
||||||
<!-- Margin above the ambient indication container -->
|
|
||||||
<dimen name="ambient_indication_container_margin_top">20dp</dimen>
|
|
||||||
</resources>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,133 @@
|
|||||||
|
From 00720384d76b0a650014db49705df71e055b18ec Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sat, 20 Mar 2021 10:35:14 +0000
|
||||||
|
Subject: [PATCH 15/18] Keyguard/UI: Fix status bar margins and paddings
|
||||||
|
|
||||||
|
- Change keyguard_carrier_text_margin into a padding
|
||||||
|
- Link keyguard paddings to status_bar_padding_{start|end}
|
||||||
|
- Add status_bar_padding_{start|end} to quick settings header
|
||||||
|
|
||||||
|
Change-Id: Ic91fa398813e1907297bb0892c444d96405950e7
|
||||||
|
---
|
||||||
|
packages/SystemUI/res/layout/keyguard_status_bar.xml | 2 +-
|
||||||
|
.../layout/quick_status_bar_header_system_icons.xml | 6 ++++--
|
||||||
|
packages/SystemUI/res/values-sw600dp/dimens.xml | 6 ------
|
||||||
|
packages/SystemUI/res/values/dimens.xml | 4 ++--
|
||||||
|
.../statusbar/phone/KeyguardStatusBarView.java | 11 -----------
|
||||||
|
5 files changed, 7 insertions(+), 22 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
index 58343800c2e..3782df2539e 100644
|
||||||
|
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||||
|
@@ -68,7 +68,7 @@
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:paddingTop="@dimen/status_bar_padding_top"
|
||||||
|
- android:layout_marginStart="@dimen/keyguard_carrier_text_margin"
|
||||||
|
+ android:paddingStart="@dimen/keyguard_carrier_text_margin"
|
||||||
|
android:layout_toStartOf="@id/system_icons_container"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
diff --git a/packages/SystemUI/res/layout/quick_status_bar_header_system_icons.xml b/packages/SystemUI/res/layout/quick_status_bar_header_system_icons.xml
|
||||||
|
index 3c748018187..74bcbf2685e 100644
|
||||||
|
--- a/packages/SystemUI/res/layout/quick_status_bar_header_system_icons.xml
|
||||||
|
+++ b/packages/SystemUI/res/layout/quick_status_bar_header_system_icons.xml
|
||||||
|
@@ -32,7 +32,8 @@
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
- android:gravity="center_vertical|start" >
|
||||||
|
+ android:gravity="center_vertical|start"
|
||||||
|
+ android:paddingStart="@dimen/status_bar_padding_start" >
|
||||||
|
|
||||||
|
<com.android.systemui.statusbar.policy.Clock
|
||||||
|
android:id="@+id/clock"
|
||||||
|
@@ -59,7 +60,8 @@
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
- android:gravity="center_vertical|end" >
|
||||||
|
+ android:gravity="center_vertical|end"
|
||||||
|
+ android:paddingEnd="@dimen/status_bar_padding_end" >
|
||||||
|
|
||||||
|
<include layout="@layout/ongoing_privacy_chip" />
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
index d06906bab08..75fd4abba84 100644
|
||||||
|
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||||
|
@@ -60,9 +60,6 @@
|
||||||
|
<!-- end margin for multi user switch in collapsed quick settings -->
|
||||||
|
<dimen name="multi_user_switch_keyguard_margin">6dp</dimen>
|
||||||
|
|
||||||
|
- <!-- Margin on the left side of the carrier text on Keyguard -->
|
||||||
|
- <dimen name="keyguard_carrier_text_margin">24dp</dimen>
|
||||||
|
-
|
||||||
|
<!-- The width/height of the phone/camera/unlock icon on keyguard. -->
|
||||||
|
<dimen name="keyguard_affordance_height">80dp</dimen>
|
||||||
|
<dimen name="keyguard_affordance_width">120dp</dimen>
|
||||||
|
@@ -73,9 +70,6 @@
|
||||||
|
|
||||||
|
<dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||||
|
|
||||||
|
- <!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||||
|
- <dimen name="system_icons_keyguard_padding_end">2dp</dimen>
|
||||||
|
-
|
||||||
|
<!-- Screen pinning request width -->
|
||||||
|
<dimen name="screen_pinning_request_width">400dp</dimen>
|
||||||
|
<!-- Screen pinning request bottom button circle widths -->
|
||||||
|
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
index 7190def8786..9172bfa823e 100644
|
||||||
|
--- a/packages/SystemUI/res/values/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
@@ -784,7 +784,7 @@
|
||||||
|
<dimen name="kg_framed_avatar_size">54dp</dimen>
|
||||||
|
|
||||||
|
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||||
|
- <dimen name="keyguard_carrier_text_margin">16dp</dimen>
|
||||||
|
+ <dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
||||||
|
|
||||||
|
<!-- Margin on the left side of the battery % in the header. -->
|
||||||
|
<dimen name="header_battery_margin_expanded">6dp</dimen>
|
||||||
|
@@ -793,7 +793,7 @@
|
||||||
|
<dimen name="header_battery_margin_keyguard">6dp</dimen>
|
||||||
|
|
||||||
|
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||||
|
- <dimen name="system_icons_keyguard_padding_end">4dp</dimen>
|
||||||
|
+ <dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
|
||||||
|
|
||||||
|
<!-- Additional translation (downwards) for appearing notifications when going to the full shade
|
||||||
|
from Keyguard. -->
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||||
|
index 9baac56410a..c75cab3d469 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||||
|
@@ -238,7 +238,6 @@ public class KeyguardStatusBarView extends RelativeLayout
|
||||||
|
Pair<Integer, Integer> cornerCutoutMargins =
|
||||||
|
StatusBarWindowView.cornerCutoutMargins(mDisplayCutout, getDisplay());
|
||||||
|
updatePadding(cornerCutoutMargins);
|
||||||
|
- updateCarrierLabelParams();
|
||||||
|
if (mDisplayCutout == null || cornerCutoutMargins != null) {
|
||||||
|
return updateLayoutParamsNoCutout();
|
||||||
|
} else {
|
||||||
|
@@ -255,16 +254,6 @@ public class KeyguardStatusBarView extends RelativeLayout
|
||||||
|
setPadding(mPadding.first, waterfallTop, mPadding.second, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
- private void updateCarrierLabelParams() {
|
||||||
|
- int marginStart = calculateMargin(
|
||||||
|
- getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin),
|
||||||
|
- mPadding.first);
|
||||||
|
- MarginLayoutParams lp = (MarginLayoutParams) mCarrierLabel.getLayoutParams();
|
||||||
|
- lp.setMarginStart(marginStart);
|
||||||
|
-
|
||||||
|
- mCarrierLabel.setLayoutParams(lp);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
private boolean updateLayoutParamsNoCutout() {
|
||||||
|
if (mLayoutState == LAYOUT_NO_CUTOUT) {
|
||||||
|
return false;
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,102 +0,0 @@
|
|||||||
From e2c6da83998abfe3bde32543732df0f7124cc400 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Wed, 7 Oct 2020 14:00:35 +0000
|
|
||||||
Subject: [PATCH 15/22] UI: Always render into cutouts
|
|
||||||
|
|
||||||
Eliminates black/white letterboxing in apps, keyguard and QS
|
|
||||||
|
|
||||||
Change-Id: I4661c7979bfa7de453329fcddbaeefc2009e2da3
|
|
||||||
---
|
|
||||||
core/java/android/view/InsetsState.java | 19 +------------------
|
|
||||||
.../shade/QuickSettingsController.java | 11 +++++++----
|
|
||||||
.../com/android/server/wm/DisplayPolicy.java | 1 +
|
|
||||||
3 files changed, 9 insertions(+), 22 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/core/java/android/view/InsetsState.java b/core/java/android/view/InsetsState.java
|
|
||||||
index 21eec67bfe10..092e14bf8590 100644
|
|
||||||
--- a/core/java/android/view/InsetsState.java
|
|
||||||
+++ b/core/java/android/view/InsetsState.java
|
|
||||||
@@ -480,24 +480,7 @@ public class InsetsState implements Parcelable {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void getDisplayCutoutSafe(Rect outBounds) {
|
|
||||||
- outBounds.set(
|
|
||||||
- WindowLayout.MIN_X, WindowLayout.MIN_Y, WindowLayout.MAX_X, WindowLayout.MAX_Y);
|
|
||||||
- final DisplayCutout cutout = mDisplayCutout.get();
|
|
||||||
- final Rect displayFrame = mDisplayFrame;
|
|
||||||
- if (!cutout.isEmpty()) {
|
|
||||||
- if (cutout.getSafeInsetLeft() > 0) {
|
|
||||||
- outBounds.left = displayFrame.left + cutout.getSafeInsetLeft();
|
|
||||||
- }
|
|
||||||
- if (cutout.getSafeInsetTop() > 0) {
|
|
||||||
- outBounds.top = displayFrame.top + cutout.getSafeInsetTop();
|
|
||||||
- }
|
|
||||||
- if (cutout.getSafeInsetRight() > 0) {
|
|
||||||
- outBounds.right = displayFrame.right - cutout.getSafeInsetRight();
|
|
||||||
- }
|
|
||||||
- if (cutout.getSafeInsetBottom() > 0) {
|
|
||||||
- outBounds.bottom = displayFrame.bottom - cutout.getSafeInsetBottom();
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
+ outBounds.set(mDisplayFrame);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoundedCorners(RoundedCorners roundedCorners) {
|
|
||||||
diff --git a/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java b/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java
|
|
||||||
index aa4818409265..a0314e0cdbfb 100644
|
|
||||||
--- a/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java
|
|
||||||
+++ b/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java
|
|
||||||
@@ -289,6 +289,8 @@ public class QuickSettingsController implements Dumpable {
|
|
||||||
private int mOneFingerQuickSettingsIntercept;
|
|
||||||
private final ContentObserver mOneFingerQuickSettingsInterceptObserver;
|
|
||||||
|
|
||||||
+ private WindowManager mWindowManager;
|
|
||||||
+
|
|
||||||
private final Region mInterceptRegion = new Region();
|
|
||||||
/** The end bounds of a clipping animation. */
|
|
||||||
private final Rect mClippingAnimationEndBounds = new Rect();
|
|
||||||
@@ -408,6 +410,8 @@ public class QuickSettingsController implements Dumpable {
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
+ mWindowManager = mPanelView.getContext().getSystemService(WindowManager.class);
|
|
||||||
+
|
|
||||||
dumpManager.registerDumpable(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -554,8 +558,7 @@ public class QuickSettingsController implements Dumpable {
|
|
||||||
* on ACTION_DOWN, and safely queried repeatedly thereafter during ACTION_MOVE events.
|
|
||||||
*/
|
|
||||||
public void updateGestureInsetsCache() {
|
|
||||||
- WindowManager wm = this.mPanelView.getContext().getSystemService(WindowManager.class);
|
|
||||||
- WindowMetrics windowMetrics = wm.getCurrentWindowMetrics();
|
|
||||||
+ WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics();
|
|
||||||
mCachedGestureInsets = windowMetrics.getWindowInsets().getInsets(
|
|
||||||
WindowInsets.Type.systemGestures());
|
|
||||||
mCachedWindowWidth = windowMetrics.getBounds().width();
|
|
||||||
@@ -1537,8 +1540,8 @@ public class QuickSettingsController implements Dumpable {
|
|
||||||
|
|
||||||
private int calculateRightClippingBound() {
|
|
||||||
if (mIsFullWidth) {
|
|
||||||
- return mPanelView.getRight()
|
|
||||||
- + mDisplayRightInset;
|
|
||||||
+ // right bounds should also always reach the edge of the screen - getCurrentWindowMetrics ignores insets
|
|
||||||
+ return mWindowManager.getCurrentWindowMetrics().getBounds().right;
|
|
||||||
} else {
|
|
||||||
return mNotificationStackScrollLayoutController.getRight()
|
|
||||||
+ mDisplayLeftInset;
|
|
||||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
|
||||||
index b6e614b55041..4b9a120ac038 100644
|
|
||||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
|
||||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
|
||||||
@@ -1426,6 +1426,7 @@ public class DisplayPolicy {
|
|
||||||
displayFrames = win.getDisplayFrames(displayFrames);
|
|
||||||
|
|
||||||
final WindowManager.LayoutParams attrs = win.mAttrs.forRotation(displayFrames.mRotation);
|
|
||||||
+ attrs.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
|
|
||||||
sTmpClientFrames.attachedFrame = attached != null ? attached.getFrame() : null;
|
|
||||||
|
|
||||||
// If this window has different LayoutParams for rotations, we cannot trust its requested
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
From 0d94e66575aa5c5eda8a4a93b8747fd335db5dce Mon Sep 17 00:00:00 2001
|
||||||
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Fri, 22 Mar 2019 00:41:20 +0800
|
||||||
|
Subject: [PATCH 16/18] Disable FP lockouts
|
||||||
|
|
||||||
|
Both timed and permanent lockouts - GET THE FUCK OUT
|
||||||
|
Android 10 seems to have unified biometrics procedures - only disable lockouts for FP for now
|
||||||
|
|
||||||
|
Change-Id: I2d4b091f3546d4d7903bfb4d5585629212dc9915
|
||||||
|
---
|
||||||
|
.../fingerprint/FingerprintService.java | 19 +------------------
|
||||||
|
1 file changed, 1 insertion(+), 18 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java b/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||||
|
index def1a873590..e8362580510 100644
|
||||||
|
--- a/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||||
|
+++ b/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||||
|
@@ -173,15 +173,7 @@ public class FingerprintService extends BiometricServiceBase {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int handleFailedAttempt() {
|
||||||
|
- final int currentUser = ActivityManager.getCurrentUser();
|
||||||
|
- mFailedAttempts.put(currentUser, mFailedAttempts.get(currentUser, 0) + 1);
|
||||||
|
- mTimedLockoutCleared.put(ActivityManager.getCurrentUser(), false);
|
||||||
|
-
|
||||||
|
- if (getLockoutMode() != AuthenticationClient.LOCKOUT_NONE) {
|
||||||
|
- scheduleLockoutResetForUser(currentUser);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- return super.handleFailedAttempt();
|
||||||
|
+ return AuthenticationClient.LOCKOUT_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean isDetectOnly() {
|
||||||
|
@@ -983,15 +975,6 @@ public class FingerprintService extends BiometricServiceBase {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLockoutMode() {
|
||||||
|
- final int currentUser = ActivityManager.getCurrentUser();
|
||||||
|
- final int failedAttempts = mFailedAttempts.get(currentUser, 0);
|
||||||
|
- if (failedAttempts >= MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT) {
|
||||||
|
- return AuthenticationClient.LOCKOUT_PERMANENT;
|
||||||
|
- } else if (failedAttempts > 0
|
||||||
|
- && !mTimedLockoutCleared.get(currentUser, false)
|
||||||
|
- && (failedAttempts % MAX_FAILED_ATTEMPTS_LOCKOUT_TIMED == 0)) {
|
||||||
|
- return AuthenticationClient.LOCKOUT_TIMED;
|
||||||
|
- }
|
||||||
|
return AuthenticationClient.LOCKOUT_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
From d597b3f8df5f0ca5414028863f376aedeced1cfe Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Wed, 1 Sep 2021 14:10:50 +0000
|
|
||||||
Subject: [PATCH 16/22] UI: Kill rounded corners in notification scrim
|
|
||||||
|
|
||||||
Rounded corners in S is nicely implemented, but this is one occasion where it looks out of place
|
|
||||||
|
|
||||||
Change-Id: I09ed59e0e658ebd512a9d02a8ef3edfe2c9888da
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values/dimens.xml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
index de6834c2cfac..3d7adc1feb22 100644
|
|
||||||
--- a/packages/SystemUI/res/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
@@ -801,7 +801,7 @@
|
|
||||||
<!-- The amount to translate lockscreen elements on the GONE->AOD transition -->
|
|
||||||
<dimen name="keyguard_enter_from_top_translation_y">-100dp</dimen>
|
|
||||||
|
|
||||||
- <dimen name="notification_scrim_corner_radius">32dp</dimen>
|
|
||||||
+ <dimen name="notification_scrim_corner_radius">0dp</dimen>
|
|
||||||
|
|
||||||
<!-- The minimum amount the user needs to swipe to go to the camera / phone. -->
|
|
||||||
<dimen name="keyguard_min_swipe_amount">110dp</dimen>
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,387 @@
|
|||||||
|
From 8670dcd137ae5b202cb97e83e60f8ba672395a82 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 20 Jun 2021 03:39:32 +0000
|
||||||
|
Subject: [PATCH 17/18] Add MiuiNavbarOverlay
|
||||||
|
|
||||||
|
Change-Id: I0e6791abc3c9521d7dc612df2fec2b041affe7e9
|
||||||
|
---
|
||||||
|
packages/overlays/Android.mk | 1 +
|
||||||
|
.../overlays/MiuiNavbarOverlay/Android.mk | 27 ++++++++++++++++++
|
||||||
|
.../MiuiNavbarOverlay/AndroidManifest.xml | 21 ++++++++++++++
|
||||||
|
.../res/drawable-440dpi-v4/ic_sysbar_back.png | Bin 0 -> 2756 bytes
|
||||||
|
.../ic_sysbar_back_darkmode.png | Bin 0 -> 2547 bytes
|
||||||
|
.../drawable-440dpi-v4/ic_sysbar_docked.png | Bin 0 -> 3642 bytes
|
||||||
|
.../ic_sysbar_docked_darkmode.png | Bin 0 -> 2810 bytes
|
||||||
|
.../res/drawable-440dpi-v4/ic_sysbar_home.png | Bin 0 -> 1362 bytes
|
||||||
|
.../ic_sysbar_home_darkmode.png | Bin 0 -> 980 bytes
|
||||||
|
.../drawable-440dpi-v4/ic_sysbar_recent.png | Bin 0 -> 278 bytes
|
||||||
|
.../ic_sysbar_recent_darkmode.png | Bin 0 -> 205 bytes
|
||||||
|
11 files changed, 49 insertions(+)
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png
|
||||||
|
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/Android.mk b/packages/overlays/Android.mk
|
||||||
|
index 999ab080246..de3afebac43 100644
|
||||||
|
--- a/packages/overlays/Android.mk
|
||||||
|
+++ b/packages/overlays/Android.mk
|
||||||
|
@@ -72,6 +72,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||||
|
IconShapeTaperedRectOverlay \
|
||||||
|
IconShapeTeardropOverlay \
|
||||||
|
IconShapeVesselOverlay \
|
||||||
|
+ MiuiNavbarOverlay \
|
||||||
|
NavigationBarMode3ButtonOverlay \
|
||||||
|
NavigationBarModeGesturalOverlay \
|
||||||
|
NavigationBarModeGesturalOverlayNarrowBack \
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/Android.mk b/packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||||
|
new file mode 100644
|
||||||
|
index 00000000000..3a577ef5920
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||||
|
@@ -0,0 +1,27 @@
|
||||||
|
+#
|
||||||
|
+# Copyright (C) 2020, 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.
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+LOCAL_PATH:= $(call my-dir)
|
||||||
|
+include $(CLEAR_VARS)
|
||||||
|
+
|
||||||
|
+LOCAL_PRODUCT_MODULE := true
|
||||||
|
+
|
||||||
|
+LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
||||||
|
+
|
||||||
|
+LOCAL_PACKAGE_NAME := MiuiNavbarOverlay
|
||||||
|
+LOCAL_SDK_VERSION := current
|
||||||
|
+
|
||||||
|
+include $(BUILD_RRO_PACKAGE)
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml b/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||||
|
new file mode 100644
|
||||||
|
index 00000000000..3956effddfb
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||||
|
@@ -0,0 +1,21 @@
|
||||||
|
+<!--
|
||||||
|
+ ~ Copyright (C) 2020 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.
|
||||||
|
+ -->
|
||||||
|
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
+ package="com.miui.systemui.navbar.overlay"
|
||||||
|
+ android:versionCode="1"
|
||||||
|
+ android:versionName="1.0">
|
||||||
|
+ <overlay android:targetPackage="com.android.systemui" android:priority="1337" android:isStatic="true"/>
|
||||||
|
+</manifest>
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..be2b145b4c698679bfdfdc3e5834ad12a56724c0
|
||||||
|
GIT binary patch
|
||||||
|
literal 2756
|
||||||
|
zcmcgu3s4hx8V?1-3OZnL5L?tGprz_2n-D@036KXu)CfXOJj=t)?k3rRWWy$qfRADd
|
||||||
|
zhu~RzrHmZ`k!wBAa-g0-rC<@UbSw%?@2-FjLbWI3sc4FiE8=+@UZak6oX*Yd%<lg8
|
||||||
|
z|Nnj8_xql+C5ap3=6k*A#b7YztKyYO^xNUO0Ve${b@zQjzvi0be`{edy!~9a8{=SQ
|
||||||
|
z0E02-I-%KO-J;$gK}jPA!ALF6u^Y`an!$*Swwn<&6Ssm|Tu+#!?7J;(Y>>dD?38dd
|
||||||
|
ztTrof0}-E3;mP?MHE4b&D#qB+QDCH9LMt%hRs^&gvrHC=UCN%+E1}n}Z7v&}gjh4B
|
||||||
|
zY?;d-xJ8`^Do6?k!#P3-<q7y;gqXt<!eYK)HOPl~5nMQe%L{{Go&*+3!o=Y8#ip%M
|
||||||
|
zm`;+UTsv)x{*tl{R;yXU<=SjEjxCHsQhF{=EEaQNK9|pjXar=*Gg%QkWU>U$Xi(x7
|
||||||
|
zlp@Slf;53Hjfj@au}axA(<v8>=2^8S%XFCNfN|}JnaktAE|(^O7&?nH=TKRb#xazO
|
||||||
|
zXW>TNWVO&(-YnK^Ag!duK>mX2+2iL7(4keUXKlQci_ti1!eWihrQMhg$V<@{O`aL&
|
||||||
|
zCgBz`heGk#T$*OE%Nw&qLE(s%q%<U%HIt~s8OoqS;Yy4M3{4?S7-_S-^Nb9xM69@!
|
||||||
|
z&4>9g1PdUZSi=)Z;4q0mv<jvd@Dx-{VuUX5c_<&&z+wr^e-1~N42D>dS0gc0q9Z9I
|
||||||
|
zLVHUX5k1Z|oAhjOHii-fnMG2xNt##Kv->KAB9S6>L>7HuNs5z$s#t}PCl(4JK8H6+
|
||||||
|
zRIQe%OcpC*LUEN+%BCa3AqY&Oi@?J$Ow5Nc1V$i!xIhPKg(wU~XoZ+CLZFL41n7*s
|
||||||
|
zl0<V{`Ja);Xn7tSCgcf3;dFTT0*D_WKq0M&r-igAj_`Ftfmj4%Gx7-(LH8e$^{e%`
|
||||||
|
zy3$oRl6b;Gr!;T6Z<6us=~Wg1PS%P9L0vr{Wuva-<1~Y*ZQ>;ncs&oM<ZT9=R{DyH
|
||||||
|
zn1WeIoz;d=xJ*w+>vf8b`%C;SNbalIzh3@c#{R`3{gu?GBa0dklOCsMDwpkYhU=O>
|
||||||
|
zQ+eUOn6k;UXC~DQoF0F!<?P(0KV~O4ZlYCF^j!XUap^q<!=qTGlxgghcLpzI2I7Hd
|
||||||
|
zop&1=Rb{C=O13WFv&cEW&Z{wW;e<Q&?MZ<+BoVl;U0-vbb#Cc)|K)p_8jp83c{$Qs
|
||||||
|
zf#$i|iq9(c4X9IU6PsEtnf9^*eRi@sPh4r$f7vp`odAP8ZY+*k++U>^ZVLS7lRN7l
|
||||||
|
zGj9J74={mtxg3rG{8<h+`H2sG=lME{3bz&bt`6~VFWeRs6aad7&uwP}ZTX)=m&8A2
|
||||||
|
z<bEDn+B8vnHu!AKy$90a>eHA0^M}}$j0Nn&!DSa(^KN}#w`^tkw+ViJesRq{pPnhb
|
||||||
|
zetNmiJ2qydzrX+F*1FBVSA4B?vU;l?=0D88{Gim=ZOI}|s)%}cdtiN9T3S#2#PE$v
|
||||||
|
z718cb|70_~Q{Hs`<9eWKq`PVjExG8r^3<tQ%iQ<7J^n7e=TLQ9gAX_dsM2>==4BGZ
|
||||||
|
zu@9BzC*uzicE4Tlr0%{ayKp?GGHU1ezBRVdAIpHh4&2tewg0R3&kcRSg@f;(a14JD
|
||||||
|
z;%IJe?&)Lu%KdusfwggQ`!y@ee+~z}x_$Fz9tFJ-BydIo?Z=XjrXSa=w5UAB#>O(j
|
||||||
|
z<zV58Lu-NG6&Ghf2f7AA97RP%U4w&z2~#JMC6U?J&UgKj%FCVaAir0*&`d!05%AN`
|
||||||
|
z6Xp9r+EfCo{X*H>87s@zrIZ0)Md!+|UcGuW!Vv?gBUb@TCNq6?`MS0h3s!SDyZZY2
|
||||||
|
z9$j3!0H`VP6!i`bJ>79kGrqiJxO3lIL!|$1--Gso`c%#%ge8lre(JpULr0I%U$#bW
|
||||||
|
zIM%X1JMeD8uC~_J3ERS0V`Dqkbp*=xJPvp=Jv}o*4|M%4v)=2iT}OILNAQjj?j84j
|
||||||
|
z8PGd?=6!k1y*oPIXJ?iMW%;}j^G$DW@2Z@u>WTcYfbY`x`!@Nw9Y!(i$HsL>eu|!V
|
||||||
|
zYcRuC?!BRE^Qh>?M*&oGYR8%n<c8fu;-D00P960={75z_mFq8Ob;wx?VMSd_P%NO1
|
||||||
|
zy7hNM^|g?aouxE-ASTDg>A84uN0N`?@~s8uMrC^ny2nO(+S2Marz|s+To)apFUHaY
|
||||||
|
zZTxnryk82`26T3Ie(;;xe+-oc)TgyP+{BualgDfAM>p3#ImztsJp1Xt3)YWyuh?7A
|
||||||
|
z?Q}YAnT?mLRr8XQlkd7$5y#_z?e55&j+zZCEEA)HE$`LEg!=D2Ky(yuOO7sB81xtI
|
||||||
|
zX}j~9^U4=wM%vb`2P-Nocld}taaHOcjg{w%KR515?39hZm&k0m>4`VY^SF`@H7YJN
|
||||||
|
h9r{0Z;ER1d?z2;NqUud$cCPC`Qx&^WSufw__%Gd*;i3Ql
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..4873f84ff7f4750fa3adc70428ffb123502c1051
|
||||||
|
GIT binary patch
|
||||||
|
literal 2547
|
||||||
|
zcmb_eeQeZZ81J!-O&ofY7;XsC6~zzi_3L(9o89Ji-N!}lm~(+4Q|z_9t?aJ7wPkn1
|
||||||
|
zfy<Q1N5sVaL5?ZINzkZ#i3x{-Y|2E!v6)~*5ZF)|2|5SPgf9`_?&AVxDjF|o`}Xbc
|
||||||
|
z`8~hq<9%|gOFhMtCrz6KLC|DZ30nr9O~#cn5!}}#n6HD!9l?@?8U)=r#kfq+hSx0+
|
||||||
|
zl=PESUZGdG=Q6w!uyTUp6|Lbw5TGF_Codf2_!?1%y<(LlJCMPT_am?*IFJRIZrmMo
|
||||||
|
ziq%rdGF5zPnWvmzR>RW*l9vnTgc(2(5Ood?2mG?egdNB*F9X)bHip2%5WU8M<Qop*
|
||||||
|
z3U?{&R8$epwAxXgu#s>UZ6)kDP1+uVNu0>S@GOj=P@G_JJ44a%=nnzjRKdrTu|=c4
|
||||||
|
zz?%c9*7YERVWCjS8ltR<T7?lbO=CETkt7Nbs8%oQTo{$LSz`>WsPU>4)FnlR4MxtZ
|
||||||
|
zEY%$dP&yJqAQ-2Wwb3+zgkfPWh!IxY2x%B7@Nrylsp=ngF7TM>7XzZKYXD2cvB7FZ
|
||||||
|
zSF~#7FR0_6Z*c%p>vqR|jH@LOh`Z4A!a5MfXhOzCYvuJp5i1ilWvR-Gg>^vYEF+pA
|
||||||
|
z<5WdXSJZMv@sAa%bWAerbQ*=ph96!a$$}En9=XXzWI0`QAS6!WC~iXux}3;naEh^I
|
||||||
|
z&%wb0AA!0RLGsn#3MKJ!oMv#6!HHX-plbw9=l&5a@QhDU100B13UE~-7L=<HIG#zy
|
||||||
|
zsrVHYI0ovdoA+H#XQ`_ABtQ6|l@%Aju0p4spzU^)v=YN|-EPJuYdR<MqKkDPAU{?~
|
||||||
|
z5*Q!n&BA${LP-(NMrofd3-x+QaO3TnbS6)6w2d6IXBB>_(FJ4nf?>~lMcU3$XeKX^
|
||||||
|
zC{5YCD2-?0C_&PkS0rsbne7|1pQlRT6mtIm%wwEQqkWhXNdtwgA3Z%!iM69EzXT6=
|
||||||
|
z48!rpNpK*%(E_4?jBZQgW#G0V7@-YSi-7cR`eFp8DLy^KsbYQ=$ky$&9`;xIHLmU-
|
||||||
|
z)ZbS9##28|tNuszqsir~Ik`#%!xck}crarOjg$uabJd2w-88bs;9w3K%lH5WFYysB
|
||||||
|
z%79u01Ns?xr3r!(wz}B-^6={er+U|J(JTiqUYb=r=?+)j*+%v?w(NOt*UUFdHlyw5
|
||||||
|
zewov1Kk?#Ly5gAsp5x!BkN<A+KDn+0K~`^eKX8v{`o-)h)=(Ad^0W*NeA2sp*Ojk4
|
||||||
|
z$L0?1Ydf)g%fk2P&)M9vZ04p~Jkiv=$(u4EHNVT8XlYuLk%A}Q>oh-?@@O;MVJ=V2
|
||||||
|
zZ_Ied(gZn6iT@dxz2}l?QDA3<|9p?wU)Pu3XY1=ft6n)i|8!<uZdzmP<ix$ElTc+s
|
||||||
|
z&X<?kZ=C+g`9*BVf<$*jde7^gtX+3yP(4Y{CR>;EFHfs|=cwyc%>Gg==jDv1wXO9i
|
||||||
|
za{teI*@9iE0OJeO(an)d#Rr^kc+Sgp8Md^_6WwXGFTCAS#LdqT`WJT8bcjb9py>9V
|
||||||
|
z!taSzGdVQ34-eK;c_x;P{l0rsHv(uA!uLkoBW)9Ywl{VD0E8S(N1`7@?w$~u*1350
|
||||||
|
zjDo_TCHiipEvYWOv#4eAn@Bi4`cdR=Q^?Y}b9Q=xZ{wuBiIv~RdI<KyqPF)w5A1x}
|
||||||
|
z{Udhp>eZ`{bj;~k=UZ`q^g(3B_1$e%OM2J8Kz2R!scbL0fIMXBobD!GdTald#UE8(
|
||||||
|
z%%i%@UpIy}ys9K^?2aAT$BVOPPc2}7OFfyg_uJTRQ}Qck2Hn=g##NVBpE*@Dm^n1i
|
||||||
|
z(ein)p(WJ>BP)beXRiBBC*{bg2RHarptOq#pB+Ase57IO4mtHcH)B|BJag#6lT>d)
|
||||||
|
z&e!MKYd16)pcy-+T#iQ8NA~PL>UxV>Ywqi@Y)j6S`k$w?tzd_2HABdEi<&LDf&OGl
|
||||||
|
zTMQD)&(DC^16irql!1BVKzD548=h$^kFSKxX^W`?7wW0OL$Ts(m0$Hf=7d(Q+HUb)
|
||||||
|
zZja176mx*WEKzSvUf!OU*cv&PpiG!*8*(2$`^!o+r{-7RHTJTToo?Eeu+BEr?K!7Y
|
||||||
|
z*9^Z;G+Rzj%oUn%d}G_QeqvzVy#Kj5|3$lBneo8k53^T$kGYM%Wv)UGyRG24rau72
|
||||||
|
C-gtlj
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..1c88fc5d571d0ec91b735082cb9c512603b9ceec
|
||||||
|
GIT binary patch
|
||||||
|
literal 3642
|
||||||
|
zcmd5<c|4T)AAgXLtU?sZ>`;z1=4ec27}t!mFecWOW6V65n4>u|Nyt(m{I-K4RF+T?
|
||||||
|
zD;v2IE9>Y`v5jG4)vknAtz6k>N?yCa-~O)sYv(o3Jm2U0eSbg4`}_WUW+sK=?xeCt
|
||||||
|
zdkp{pDlX1sDs)ejUW%)s&s4c}i_lGp>+Ht|0A+RQB?IJ~+Xw*ix=b%$fv?*x0-eJ$
|
||||||
|
zqcJ$4pqYrph0p+CWh3I!=#iiR77B(l*+lr{%_caE$sodg%-v9KToM?;bdKSHyJOtF
|
||||||
|
z=rNIWJOgfH4YLvvAOkE=K!b@`QEWazM1;S$OMu4GX(Sx>9wLY&!tJCEVZLq@7>UCJ
|
||||||
|
zVdiEy1RagVz;@ux&^QzxgEfU=Q0N^<)D9$iI|79!pm2okc-Zm_4te7-!U$Bd<FYU4
|
||||||
|
zi3pDn2)G0!GCDfiEPA^chZl}S<MDVT3WLO85D)^vKfo5yL<lxt|Dy#m$fxs|Tmh5A
|
||||||
|
zhDj~bLODVK5e`NAAq5t9#Vnh@OcO*HQbgk-(Pk)VO7DRT`U;LK<VC%A&Y&Z~D3ArR
|
||||||
|
z1$+pLUcquBI06nog7a@ouPpz;0Yt5v+lr4rjfKTpalscj?1$1=Cge}ie6Iss5J?63
|
||||||
|
z93hVmI_!tS)R$(%C6IU^O~B!KaX3*Q4~p_JWEhDgJs1m^kq?v2;6(F{f42uD(*z(9
|
||||||
|
zjzM8i2ox59#(QBf1aor&8v7Z_f`CGOfVy!Q%&-Ih3f)dXLvP$4ppa@9Gy(0uf*Eu|
|
||||||
|
z7>CEAK{+#7v~Uo~WrxFID@+ndoG1<tatuYc{rB@OBoc+k31db<3w)}RJ<P>{ghS(T
|
||||||
|
zI0VKF{XSebH-ZbBFQBpMpbMD@hxjpLG8u$WIxRE|2Z9JRnt?{(vDi=qEewl6phC?-
|
||||||
|
z9NIh-1%hE8_meqvp;QGQ_cQ*_{T@6fRE4ytzidZZn^O4@oSA&+U=J);&u(zv@+gW4
|
||||||
|
zd#@M*jV`SOBAhOj0LXwZPc#2A10T#rM}Uyg|DcNxFg_<t5KZHOcHt0P|BLjHQ2a<~
|
||||||
|
z*?vd``OjItU;AB&e}qGQLpoe(SkS{t%LCa^pW{Idtrjhl4*-g-E@V3|(Ycp-tO$+S
|
||||||
|
z&FxK=+vlxrqVESZoEf;j@ym6`TKrmdN42#hk`pIQVr1+tAak^g?MGujO?qpO{vqvD
|
||||||
|
zHRYZ@)@0Cf=sFkqkax9h%U4c?&Y?!xhLT5C<2_vy<2|I{u6V)m>NPj(CVp9L&g@tS
|
||||||
|
z-yi+VrXX+DW}!c6PoMm!)CSdrdOgZ2*#!7H83!0(B)k6a@^F|sDOZw3F?#K~J^@wF
|
||||||
|
z-woWEO3H4<*{t)OyK%TkFGEo$LH;~E3%OXB=D5_PrGm5vf)gHIkL-&ZkVqCw%gXXP
|
||||||
|
z7(6GeHtRHqU;oL`lc^UCNEiOG3aBz|H*lc>&HK)!vc%hf8|9IHS>9K?O#F+e#yQ2a
|
||||||
|
z4^hXj6f>93=I1vGhg(w)0$33hTO(s#{sJdZv<HSqMn(!od9?>8#BF|lezimlrb^HD
|
||||||
|
z3UjP-P=WGBNkn#Za#B50JUjlTuM+oDU84mS`%rG5&mo`Z^EL1v>(UQ}D<4QtLMSUM
|
||||||
|
z_gNAMahe04n`QTX{r&hib>+y&oSHo*ryuVuI^k)mseHnqR!2uiUR=WhC>jnfmwL-a
|
||||||
|
zEG{rGXH&`W4w2Ph&aQ1@Z||4=jfdvr96V3lnkmT5y;*l~W+GVb&W;%3V@c~?xdaS>
|
||||||
|
z5YsFSG@MEnhJ}SSj!#Yw$(>iR)wWf$)g63kwFU-<o3;dJrXEroHfI6>3JMA{J$LU8
|
||||||
|
ztsUH8+KHK)o3maGdvtS4S$TVmo~;V`n535fe8(;2*Hce#>j2iaES=jlz%nZ<i>+W2
|
||||||
|
z$>aT^1)PfMBVE70c0|#YkT>z#CrWG<STA}dn_w=I)cbqNT#Fg`Hhub5%Vx{{f{RKq
|
||||||
|
z!QHULugb>U<3XYD&8^YSY%NNFQmn}(_q;iuO5fOLTGiFnvB$QRv>&mN0o*T8d|&za
|
||||||
|
z2L#OM5@V`2bDjriTgShP^|0D9G^VAoCRw*$=F*YkP2_7h98Pm#gM+79_}%<PL;_;U
|
||||||
|
zaYJOX?0F%VJCznf!{sh+87!fbdNtq!4F_k;Wc6bu5=nuFheyGSmoFC;Z9hxUs1It+
|
||||||
|
zeZ4WUVfBWfiVLiekdT@2@$pFlbX;Tc87%Q=X=!PEp%OVFXJ1lLQBlPcu~;EdoZ2@0
|
||||||
|
zbrf!1)vZ@kIk_d3nWIxzuBF>vDGcm0Iqljuv?I^`@(F|Ftu80pEbL7*(~8tn$d2BR
|
||||||
|
zGBIbn44-m+RT`HHoif=1p>T1Hu2V_8BAiaAE4cOUi5^;igmz`Es_IP3&BBKbTguYw
|
||||||
|
z^lTp){;*zlUBQ_%KLrN{E>673t|ahk2PF6J-<ONHSbHQ)gtb~yALLsLr=N8fL__Ru
|
||||||
|
zRZGbr!z+o}>1<Dpt)IG3_jsN%0`64lo;ENZZ|biym25ao^UI=%YnbBwm3z#zT#Fv`
|
||||||
|
zQcGWB3+^Jjy1HWd3vXXF$r-^=^ZiqA`lk%1_F5;dsz}ybzf-B=nSMy`gS*73eX^Y)
|
||||||
|
zD7_1Z`_EC-$ZFz+B9D99qI=_VgC{#5_WQ)CcN?@!x1Q?g==g$2Bo-9+{@mkhT7%F`
|
||||||
|
zW2KSd#(r5NRi;iG99)2)Onr;Ojl0|{O*;j;mm;8`a-P-EHhQeR?RzdacV7JT_R*!a
|
||||||
|
zllLi(Un_b}I=Wt855qw!hh=w47UNYK{IAv3%}H8Y$u{-hcTsjfq&KLZA5))FRD}rC
|
||||||
|
zK2rJ1T&J(juHHR*Iy#n$6$t7~ObIThsParcWO<}K@MgxUZ@f)5Aac9oE;FCZ9HB9G
|
||||||
|
z7Ev1^Iu`7<w(m2UjSZTfQ9XM5DFahF_l4{Ii0ZAUT@RI%?RDCA62I;o9Y`1*9j%C-
|
||||||
|
z7?|A&ykHmlFdE#h-~i{NpKN{t`ekie__n8~C(ay&x|gn%Vr&w$B`mJ@$5R>!j|T?_
|
||||||
|
z_1rx?mTpN-0sN;e$<|mqYkP_6`PJ~GilBxV3!_^tEiHXOO<_$sZBuj2{LJK%@ms%d
|
||||||
|
z*b;&~?DI)!3bY3<Jq(PVymE1I@t|X9s!GV>KrNr11#XI??cAxXzI#ypD=(8bhnuLT
|
||||||
|
zngw}ye%R{4W{<0t<-tvj^))rW-a|SUQFrY+;K7BeC*QERb>!96Y_q^8%IHmA^iwAd
|
||||||
|
zJ@(gJzb>4Y&nZS6PBEU8e>~Ejsg)@2l%b24tN7A)=Ozu{>LrhYclKGM&riC|#=c_}
|
||||||
|
zwKW8cNt{dV=$>OQUd%%Z)9*i)TTsx1x3IXO)%<zAb9g+I{KooQaGSh_t4&SucOji+
|
||||||
|
zPZS4zaV9zHZ4jyVxPDhp&%4IUmtRc(fa|P!ZRnA|u)DX~A+Rqyt!>!9cF$vBAkz87
|
||||||
|
zkI$wLbXS=w0}Q{c0DpgK#z@leD-l#+TSF`RHNCyXCp#Dix1F3dP)mtYYFru~9u6j0
|
||||||
|
zT4pAWD85lWjDfmy;fuM8^BE|&>9aR<ux)ojA>PN-MRrjP24m^F@4jQrjEbYXJ4Sgk
|
||||||
|
z-?q2gkkq@)v7Lo7BJ_MoP%UrNY5v!j^C@LzHqHiWXCtt62;EQGZ$G_OX5?z6vBtQ$
|
||||||
|
zv%@%J#J7f(4M1JEy~?zKTKZEBOQ)Dw{&U?s-`?tE1=TIF{PF(ErbLKVt)-Ep7>)Y3
|
||||||
|
zmB;;;C`Ss;J@85~Rzb>^s&u0=Z1)0xudnCjUkeLb#35AXG~LEX`tQ!g!JS-gACmYR
|
||||||
|
D=8d64
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..fe51e11921ecb35c5535e7c446769af7f66be893
|
||||||
|
GIT binary patch
|
||||||
|
literal 2810
|
||||||
|
zcmcIm3se(V8jh_}EK8-jfcRpFisopZKuAUc4GBuXuz*;Bl4?jMA>=V}5=f#b5>wH&
|
||||||
|
zNOz?^0L5da^%X&CG(sC#P&iP~WhtQrr3fM-rHFt=DYz3}$L@Bwk8?Wb+_`t|{qFa_
|
||||||
|
z|1$?7BQ`j{x#&#{2II^LWk;j4-aZ^1(Dz?ocNs&cxysNu6$az9z&>VSa`P8rFmskj
|
||||||
|
zVq(>?+>M|BmJ|3wI1wUf<w_Kd!2|?pm3)B|QUi&QSfXHH2g=H^fJDf^Zt>%ixJnk3
|
||||||
|
zBnjPtK$~_%#0Yjs1#}@cC=dwHf+&F;Qu6_=T&7TgS_XE47ev?gZ6X$!fT*PmEYmI!
|
||||||
|
zh~-8CEEs_RKLQmmAp24Pe>#CoCDAFqYXJ(0>`x^56Ujb!5*Z{>K_5CW^<YtHh)@JZ
|
||||||
|
zv)50_LcbW;B(+)z5{Vj(hM@5wz=)Vgrqk&}5`{>i;86r#rBkT+TD(HFe42p`sRW2b
|
||||||
|
zsg}SBz|P1|gj3WEEUM|G33BBOtwJ^BCe&d>Eni6_6G(QGCV)c03{IJX$R>mf1w=>&
|
||||||
|
z$svVWg<{DwSY;BdhE+-M|Dc{Z{)qt8wOsCujGxs-E}s#hQir6XW=uKcXVIz{of0BO
|
||||||
|
zLn=505kMiSsG7^|)+j+10`b)_5(C4s=|DwJs|>JM_Q249)mtPAA*@m1UbzFY`D%!P
|
||||||
|
zrI08jJjoYNrpHhypr0Q|_FY4wfh5u-lnV<bBHe#OeLyk=B>VgXie`<Fujc<ESSSER
|
||||||
|
zFe2xpHcRAuF+@}<#8_a)lOPM0!3ZiC)z0VDeGZEiiNGR>3_VaqZwLlBAuKAHPNm{0
|
||||||
|
z1oDKsTrS8_sMLIg0OGJ2SkylRi9`sBXk?nNfF{5T{i$TU(AO8j(?nD{o=Q)INCJ^R
|
||||||
|
z**8%%eV+{rQtVkUeP8$+@BamnpjF71{caw6ZQ9cZ43((R!0M)|XA`u2Y9*5Z6Bz^Y
|
||||||
|
z1@=l{U<LLRfP~noZOQNUz$C3E2|`K#PhL#IRIo^`;Uf@JjC$+Wq#hB~pJ*@JNmGdb
|
||||||
|
zY30P(D<wV+NBf3-In%JvkC~PSDbPNLpbgCy>ah>)lLii(8Kcebzsuc!V$0GuI>awl
|
||||||
|
zKKQ(mz4v(ayJf{4l_4t~-GU<TTtDl?GrKVT^|zvu@hjKN-ORof>8>}smVR9r8}m<W
|
||||||
|
zh&#{G^<3);?tT+Dw<xTy#!Ty>z@Ih*BLgSu?>&<}_;O%Z&v;M!^X~kild63eWir`*
|
||||||
|
zGgOwo$4p=0m@(U{bhg(=0Q)E~d%oe}e8W3>7oOfF)a7)z%WHFk)pLUZ=6(XxafM^!
|
||||||
|
z%0C9IY)gHK87eL*K^nT^`^L1GfodMj!1yM6m)W$nbg^c*tL1TW(75}hj*rJjmfY$r
|
||||||
|
zvTeq7XE*Iw{$tOoHLNcVEHlLSeQEOwyj+1Sws}~h!|369Wm9ZiT$Ge|b6~rc0~J(V
|
||||||
|
zj;?$Dc3_oP>AoM<wJ+4W4~FMgI+^!eFyARCH@qC~YAe3xInY#^b&c=(EXi0uUMv0X
|
||||||
|
z;D*60o#jA3g?+HtVzHbbD-rMgz&T*wg2J3FMWb0SGvoVarMYj-&9~_HN~O}GhEJ+f
|
||||||
|
z7ZrxsK5B5O=qk+F&=Yqm2bs0?lF71k-qWU?O3#zW#m0V8U4K_&?cnCLof)R94ziRC
|
||||||
|
z(-F}PAb=O9(?xv{hD)zJUVBc1KX0XE%{Me1?i!UEHH7n#<sl3TeWderGQMdwljcWn
|
||||||
|
z&)nb^E0tbTz2FwL^4EK;4K&`x)jNDRuQ{H0Z)agnOHb4(Yw3Gs3!dM(KO8jpeZc$a
|
||||||
|
zWzO42zgd-YvO;_<AjP4)Vra~Ey5aiXHLWpE>fi78tTx79DA|(dPy6s$XBVxwd&HAi
|
||||||
|
zm?k&eR_3_PT4voHm+9SesKd$W{If4^wx3wryjn23Fz2w1bTU5pdO=r4bX|D(S<|1Z
|
||||||
|
z)Xtks*6h}VT?sdt#&h3g@y1Gc+OO`n5jxAqY$aFc>o(^d3Ct{)8Y|#%-0h8h&VwF@
|
||||||
|
z9(#9IJ2&~=$nr=mwt4fa-ncSYc~|=x^-0jS&!xwVl=jY6*PFc$a^hN)9z@B7qpJq<
|
||||||
|
zqU(x28(E*UIrHHn@5P(m9TcP`|6^rArF%Fo-J5Ba4C@SgTdQ-*j>bIov~9z6-*+sy
|
||||||
|
z=fY!Y?kr|0nQh0OxXbUSM@b)v4~M<HdYv;z(Q@Pnx*j!M-(NP!X}LsR@~@|>Hi{Q%
|
||||||
|
zE_%fqMn*<>@j>I(+Fs9&zeU$I>%Kl~YR|~L!a39HaBQd5YK^!x8F%w-lb7~%&XZ=H
|
||||||
|
z+e4|_s$}En<A&Wk=G0ta-akY|gU)+zndjDR#+oaapa%~}2zNN^=T@%st`UdfZsX5K
|
||||||
|
z;<{ab<Ri&aN6nciy)qR^J7axe32}Y2(=D4DaiX-{w61nFQ_KIVYk||nl!UxvxgJ=@
|
||||||
|
zPyXaq(EQZ>``&ENi>7hMdC%_F_+PY^hPRo)r3OWZW=K2MPrcDED2RL!Xt8vkJE)zX
|
||||||
|
z-V~oT)Oux5R;-E33*V;tVNb)yb+5NR>W-2ZRjJp$7KAHI+dUEV4C~Ug_)(`b$H#2-
|
||||||
|
z`bQ_KuDK1jhWpnoWa7F50`&#S+^1N^Ir+wKLF%`c_w_FNG}$;%Q}cLP|G-;sNxL%F
|
||||||
|
zjkdIn7B)5DillcP<S(B8-D*l`w7N#LCG5&?4-_@xs>vH$T>QQN$hPt;8`hqev)+b-
|
||||||
|
VfHkC3x%R(PPDlj%Qt&qYzX3LdVM71_
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..20f1d887aedebaadec7f31184bdfe3e662401522
|
||||||
|
GIT binary patch
|
||||||
|
literal 1362
|
||||||
|
zcma)5dsvcZ6eq3COPOfdW%DV^ZrZSmmu5@DVMeK8>Y7WZW@(O;T+M9eB{VT<`aG7k
|
||||||
|
zn)f@oE<`v`G!hdlR3b#c8xe|l8>DE0=1%!ff9^cb_kQR6zW4o|-#O>~uHt;XmYJ+I
|
||||||
|
zK_C#zum>?m;Z6Mb7#YIa&@1aeAQowH-T|Hv{vWHXtnBFM=<e<w92^`Q8&j**TCH|w
|
||||||
|
zW=5ye&3!WP0UQ|_Q79BrskFVly|A!wfjKuf7x4M{d8JaBnwknAkw}F7z<|f&A$<GE
|
||||||
|
z#9}dz$7^nGX0cc_8jVh;L(;OcvZ|`8#>Pg#+uGV-5Af^tdQj5Y*@;G@7g7WV2lw^$
|
||||||
|
z&Cbrcy1D|=)YK%ANCpN5N=ix~<n#IPDIy{wJ3E`nWcKv*3=a<jJ~cJf+S&>ZaQ652
|
||||||
|
zkB^VPe*JoAXb4sSfdMK7NivzNx3?D%jYb1`<#IVVU0q$En!#X*L?S?ds;;h1AP_)}
|
||||||
|
zAPmlOI2^#?IGhE}g|<Kzp-{LW0Lq7!LM=f-K_n8XzP_H#W&;}}s;H>Q%*+JYC=?2V
|
||||||
|
z!GL%y77OKo5-yhu+n_ns)zwrgwWXy6T1_UCp`W0EKp^Dh<v}6PaFC%=sbDCRlamt@
|
||||||
|
z6CeiW0^~4=G>fQ@x1sX<QD1+=qAyI$kd`a0R;^yM1V^rBzv>>;Oz3t0N?$cpk-RL7
|
||||||
|
z-Curq>S*LLrm$bkV3lSj#D<6Y;{swYW|gxi%Zs*{e(6A+T4!*U^3;3jAJaPzMpw75
|
||||||
|
z7$ut5KkB^M^5?QL0f}~RdGFoYzGCL-{5n-sF6Va91!l$rZes=YHif6k(V{Rhzm^#u
|
||||||
|
zalK`;ZDwOVJvHuRU~uxaZ`Dc^TF`p)x#X>!QNDJ?g&SrFgh3=0gAPcLj)}XDS)x}j
|
||||||
|
zQJ<v!mA=U?%l=1~tj%`B)z`KbFE+KKzBz$GdPW=@wWdy+ogj$E`&FZwuZ!Zp<C4}~
|
||||||
|
zVm#p%keE^NFI+55ke}Hcsp&xT<5FtE)tFl*wILQcp5N@wHNu;kTknn!mb^C}u(Xb{
|
||||||
|
zz`fa%H*memyTCaq1Ap2W>D!)vB`lDpEI*IgAvkB_L`bG*pdVVjPYM(XQGXx5K?%)o
|
||||||
|
zLs2>$w}*(t!qJq_*t<Eng8LR58%v)#oqHZo6K-pf@#;>Nf;aRca6{9uQ_PEv<)W-?
|
||||||
|
z(KCaVz2Og5`HT(EW0DOY#`%Z2w?rbt$vWfcc*OArS@cn<@fq^g9Guwf{7Pas%bMNJ
|
||||||
|
zdS?{t^03BBAX+^7!xLN9zWoH>T^@;-lRUM^DZ}5M%WCC|WMSxw>0+B=^sbRM4jZXO
|
||||||
|
z$_Lnf*!02(cHH5lbT?VLt;YvjoU;yD7jgjM%PiY#eFT3yJ0;{s)Z^`kQt+<!k~_Qu
|
||||||
|
zviuCA6KQS^l4A0z$7lHCo-;d7g&3e}+$(1}x<hC;kGbLH_zAlm>$e4s;^kW?4ngm_
|
||||||
|
zE`Q~cX8O<Z(zEsV8qXf?Mb7nT$Cn62o198j$sS3_dA5Umo!g_|H>CWM;Mc75nWk1-
|
||||||
|
zsTCC62DdZ&CLU}r=+K8QH9PflBu(;$$CuS~(S5S#8@}fRZa&GnX#a%YkXXbwx5=MX
|
||||||
|
z``wiJ|MZgXydqYc;eH`$&5TsFXJu)BBv++(-ld-NA|wj=+9rOa!u0;M{>s}ZN=&zg
|
||||||
|
jp|o;zi!=ZHCR`6amaD0~y#7)m{38ggr!VHdM;P%x23q9L
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..96dc83e4a42d70c1b11ac5a55ea5eb8cd75e1e20
|
||||||
|
GIT binary patch
|
||||||
|
literal 980
|
||||||
|
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ=(EfiWY%C&U%V?H>iS4*_MFJ{MqE
|
||||||
|
zmzM<j1v8iwPFQ>B+}+pje*SoQ_Tb9?Tpg9&|JF;%JijfpWO-*ypo^KYc~ESA_nHsA
|
||||||
|
ztz3e$KC_1!6n_!c@R_*xN!py_HCyTq=gggUaniy|?MuCzA69H^h|Zp|b=B<p2PGc`
|
||||||
|
z0>b30*|@*0n4jWq;gIy|zKGh99kpj}USHgEp;$&A80||uT^vIyZoR$k8h+S8g!O?F
|
||||||
|
zcj^bHLXDPyjKZ$qJ6m_`-hKM-Z=Y)^yB^s@+{vH0dq%aAaitu;AQIT=<@xp3rAvP$
|
||||||
|
zy;7MXy;6S{7k&Q3%$mf?)m#uB5~Fl^!4@93r=m)tT64E<TJ6;MO6v5gt#7SPb6q!g
|
||||||
|
zS=4*(tJ=ib0ZZOj6rVo7V5@I<#(RMk0++cf?<&vlvtrdMVZ3YmE^z(23+e$2<s}SK
|
||||||
|
z3ljnsIEfmhoN8+nY~)&eV1{Nl6Oi%vK#S&VmSrqjKFn8_<*>~VU17l9;(OC(gF?VT
|
||||||
|
zew|sHRA+K^s)$ZwynjDjB9%2Z@o9hj@z9yqKg!oksmhKrP8D1bl-3+)o+@o5{UvQu
|
||||||
|
za+deA^S<)eZhOAF(C5HfE5hn~GjCG+m+o&3f0++AEUdr7$EqdsvefBVI!p9|LmNK}
|
||||||
|
z*BAXVwz%BS@myD^`ADnrrX%|0>yoZt>&?Br{aWc8JyVg;b6@KwX1@Ay&*p-y%_*L#
|
||||||
|
z{^ysm=`T&%{PpeY3#V^a$E?)Zo3}Wqvw!=8=ht19w|5|cm|EtWFQ%k?JmTvKOfn3f
|
||||||
|
Lu6{1-oD!M<_NCyP
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..4f0d314e2621d018c3cd2e4267cf4cf82a78943f
|
||||||
|
GIT binary patch
|
||||||
|
literal 278
|
||||||
|
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ+K~IR*HHxB_W3aOlvXS731D$dNyP
|
||||||
|
z{`~&^8>ry@`}c3(z6CO@t*tk0+O&D|W?NfZAou_O|I!nsR|8q1B|(0{3``sX!dw~0
|
||||||
|
z&!m6(D0J#1t5jH`B>TrxD!+gV@;qG}Ln>~)y?T=OumO*&<LOWDj(nQ-FWQ&&(?pJ@
|
||||||
|
znOy%Gk7P>$)d4|WP*!pH)Y~Ek3+0ck%$oDNf%ERC$_@LN)Si65+@j0wqw%{iOg5Zz
|
||||||
|
u=kcQOsZZh^l}((KO_)H0lQP7Be}}|<Jmh~yiM-bb33$5txvX<aXaWF$9A~fq
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000000000000000000000000000000000..f53ec649e615e8491fb6abb63d169ab7e0faa1ce
|
||||||
|
GIT binary patch
|
||||||
|
literal 205
|
||||||
|
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ+K~DF*n2xB}^ZynuIaZ52=vS4ogx
|
||||||
|
zFoXa0-5=lXWwUX~o_?MiC>rSL;uunK>+RLuyayBnTpaC=HT>3}!PR$SSH`j?-mt2r
|
||||||
|
zKs7+%uwa{9mTBst&#^sIIN#?w`Oh@C&bRjEiUzlg7B>c|g@RIyV08!V`R32zx~(4j
|
||||||
|
Q*9XM+boFyt=akR{0CQqV3jhEB
|
||||||
|
|
||||||
|
literal 0
|
||||||
|
HcmV?d00001
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
From 7dcda2e715f01c67c0d2fc0b7bf8288734fa5a54 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Mon, 26 Oct 2020 14:06:56 +0000
|
|
||||||
Subject: [PATCH 17/22] UI: Reconfigure power menu items
|
|
||||||
|
|
||||||
Change-Id: I32cca6e2c6bb64d891efee959127edf7c0802cbc
|
|
||||||
---
|
|
||||||
core/res/res/values/config.xml | 5 +----
|
|
||||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
|
||||||
index a0e8062df4d0..27549b17225f 100644
|
|
||||||
--- a/core/res/res/values/config.xml
|
|
||||||
+++ b/core/res/res/values/config.xml
|
|
||||||
@@ -3639,13 +3639,10 @@
|
|
||||||
"logout" = Logout the current user
|
|
||||||
-->
|
|
||||||
<string-array translatable="false" name="config_globalActionsList">
|
|
||||||
- <item>emergency</item>
|
|
||||||
- <item>lockdown</item>
|
|
||||||
<item>power</item>
|
|
||||||
<item>restart</item>
|
|
||||||
- <item>logout</item>
|
|
||||||
<item>screenshot</item>
|
|
||||||
- <item>bugreport</item>
|
|
||||||
+ <item>airplane</item>
|
|
||||||
</string-array>
|
|
||||||
|
|
||||||
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -0,0 +1,81 @@
|
|||||||
|
From e799f913b42c58821408527a73aac4115d69df11 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 8 Aug 2021 01:43:42 +0000
|
||||||
|
Subject: [PATCH 18/18] Revert "[DO NOT MERGE] Reduce padding in QS for small
|
||||||
|
screens"
|
||||||
|
|
||||||
|
This reverts commit c3182c54802105c614848b26250c2682eb9900bf.
|
||||||
|
---
|
||||||
|
.../res/values-h740dp-port/dimens.xml | 27 -------------------
|
||||||
|
packages/SystemUI/res/values/dimens.xml | 11 ++++----
|
||||||
|
2 files changed, 5 insertions(+), 33 deletions(-)
|
||||||
|
delete mode 100644 packages/SystemUI/res/values-h740dp-port/dimens.xml
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/res/values-h740dp-port/dimens.xml b/packages/SystemUI/res/values-h740dp-port/dimens.xml
|
||||||
|
deleted file mode 100644
|
||||||
|
index 966066ffe56..00000000000
|
||||||
|
--- a/packages/SystemUI/res/values-h740dp-port/dimens.xml
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,27 +0,0 @@
|
||||||
|
-<!--
|
||||||
|
- ~ Copyright (C) 2020 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
|
||||||
|
- -->
|
||||||
|
-
|
||||||
|
-<resources>
|
||||||
|
- <dimen name="qs_tile_height">106dp</dimen>
|
||||||
|
- <dimen name="qs_tile_margin_vertical">24dp</dimen>
|
||||||
|
-
|
||||||
|
- <!-- The height of the qs customize header. Should be
|
||||||
|
- (qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (18dp)) -
|
||||||
|
- (Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (12dp))
|
||||||
|
- -->
|
||||||
|
- <dimen name="qs_customize_header_min_height">46dp</dimen>
|
||||||
|
- <dimen name="qs_tile_margin_top">18dp</dimen>
|
||||||
|
-</resources>
|
||||||
|
\ No newline at end of file
|
||||||
|
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
index 9172bfa823e..cb6f550ec49 100644
|
||||||
|
--- a/packages/SystemUI/res/values/dimens.xml
|
||||||
|
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||||
|
@@ -490,21 +490,20 @@
|
||||||
|
<!-- The size of the gesture span needed to activate the "pull" notification expansion -->
|
||||||
|
<dimen name="pull_span_min">25dp</dimen>
|
||||||
|
|
||||||
|
- <dimen name="qs_tile_height">96dp</dimen>
|
||||||
|
+ <dimen name="qs_tile_height">106dp</dimen>
|
||||||
|
<!--notification_side_paddings + notification_content_margin_start - (qs_quick_tile_size - qs_tile_background_size) / 2 -->
|
||||||
|
<dimen name="qs_tile_layout_margin_side">18dp</dimen>
|
||||||
|
<dimen name="qs_tile_margin_horizontal">18dp</dimen>
|
||||||
|
<dimen name="qs_tile_margin_horizontal_two_line">2dp</dimen>
|
||||||
|
- <dimen name="qs_tile_margin_vertical">2dp</dimen>
|
||||||
|
+ <dimen name="qs_tile_margin_vertical">24dp</dimen>
|
||||||
|
<dimen name="qs_tile_margin_top_bottom">12dp</dimen>
|
||||||
|
<dimen name="qs_tile_margin_top_bottom_negative">-12dp</dimen>
|
||||||
|
<!-- The height of the qs customize header. Should be
|
||||||
|
- (qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (0dp)) -
|
||||||
|
+ (qs_panel_padding_top (48dp) + brightness_mirror_height (48dp) + qs_tile_margin_top (18dp)) -
|
||||||
|
(Toolbar_minWidth (56dp) + qs_tile_margin_top_bottom (12dp))
|
||||||
|
-->
|
||||||
|
- <dimen name="qs_customize_header_min_height">28dp</dimen>
|
||||||
|
- <dimen name="qs_tile_margin_top">0dp</dimen>
|
||||||
|
- <dimen name="qs_tile_icon_background_stroke_width">-1dp</dimen>
|
||||||
|
+ <dimen name="qs_customize_header_min_height">46dp</dimen>
|
||||||
|
+ <dimen name="qs_tile_margin_top">18dp</dimen>
|
||||||
|
<dimen name="qs_tile_background_size">44dp</dimen>
|
||||||
|
<dimen name="qs_quick_tile_size">48dp</dimen>
|
||||||
|
<dimen name="qs_quick_tile_padding">12dp</dimen>
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
From b9eaf93d2d87ff6cd436d3b456c8e572a1b6f83f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Sat, 5 Mar 2022 01:43:37 +0000
|
|
||||||
Subject: [PATCH 18/22] UI: Reconfigure quick settings tiles
|
|
||||||
|
|
||||||
Change-Id: I743f52ef3a95db0ca2c02ae973faa4629e41885d
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values/config.xml | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
|
||||||
index 0286cc65c8e2..d23be6427019 100644
|
|
||||||
--- a/packages/SystemUI/res/values/config.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/config.xml
|
|
||||||
@@ -88,7 +88,7 @@
|
|
||||||
|
|
||||||
<!-- The default tiles to display in QuickSettings -->
|
|
||||||
<string name="quick_settings_tiles_default" translatable="false">
|
|
||||||
- internet,bt,flashlight,dnd,alarm,airplane,controls,wallet,rotation,battery,cast,screenrecord,mictoggle,cameratoggle,custom(com.android.permissioncontroller/.permission.service.v33.SafetyCenterQsTileService)
|
|
||||||
+ wifi,cell,hotspot,location,rotation,flashlight
|
|
||||||
</string>
|
|
||||||
|
|
||||||
<!-- The class path of the Safety Quick Settings Tile -->
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
From 8f7dac2f887aa5d42c52dfbebad4700497baa8ab Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Tue, 19 Oct 2021 12:09:34 +0000
|
|
||||||
Subject: [PATCH 20/22] UI: Remove privacy dot
|
|
||||||
|
|
||||||
Change-Id: I5d2e2b3e36f027b4348a83030d4b4d3c4f0209d1
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values/dimens.xml | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
index 3d7adc1feb22..9b081a0eb858 100644
|
|
||||||
--- a/packages/SystemUI/res/values/dimens.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
|
||||||
@@ -1166,12 +1166,12 @@
|
|
||||||
<dimen name="ongoing_appops_chip_min_width">56dp</dimen>
|
|
||||||
<!-- Three privacy items. This value must not be exceeded -->
|
|
||||||
<dimen name="ongoing_appops_chip_max_width">76dp</dimen>
|
|
||||||
- <dimen name="ongoing_appops_dot_diameter">6dp</dimen>
|
|
||||||
+ <dimen name="ongoing_appops_dot_diameter">0dp</dimen>
|
|
||||||
<dimen name="ongoing_appops_chip_min_animation_width">10dp</dimen>
|
|
||||||
<dimen name="ongoing_appops_chip_animation_in_status_bar_translation_x">15dp</dimen>
|
|
||||||
<dimen name="ongoing_appops_chip_animation_out_status_bar_translation_x">7dp</dimen>
|
|
||||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
|
||||||
- <dimen name="ongoing_appops_dot_min_padding">20dp</dimen>
|
|
||||||
+ <dimen name="ongoing_appops_dot_min_padding">0dp</dimen>
|
|
||||||
|
|
||||||
<dimen name="ongoing_appops_dialog_side_margins">@dimen/notification_shade_content_margin_horizontal</dimen>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
From 189c4aa8512127b743f374491d224679c074d9e0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Wed, 22 Mar 2023 00:29:13 +0000
|
|
||||||
Subject: [PATCH 21/22] UI: Restore quick settings fonts to pre-T-QPR2
|
|
||||||
|
|
||||||
TODO: Large header clock looks better in Regular - perhaps figure out how to transition smoothly?
|
|
||||||
Change-Id: If2e57fee61b6bd4b6b7fedc7e3011164cd2cb56f
|
|
||||||
---
|
|
||||||
packages/SystemUI/res/values/styles.xml | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
|
||||||
index cb5c97383677..f6658ce089f4 100644
|
|
||||||
--- a/packages/SystemUI/res/values/styles.xml
|
|
||||||
+++ b/packages/SystemUI/res/values/styles.xml
|
|
||||||
@@ -143,7 +143,7 @@
|
|
||||||
<!-- This is hard coded to be sans-serif-condensed to match the icons -->
|
|
||||||
|
|
||||||
<style name="TextAppearance.QS.Status">
|
|
||||||
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
+ <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item>
|
|
||||||
<item name="android:textColor">?attr/onSurface</item>
|
|
||||||
<item name="android:textSize">14sp</item>
|
|
||||||
<item name="android:letterSpacing">0.01</item>
|
|
||||||
@@ -163,6 +163,7 @@
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextAppearance.QS.Status.Build">
|
|
||||||
+ <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
|
||||||
<item name="android:textColor">?attr/onSurfaceVariant</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
|||||||
From 31cda8c70a81cd6a861d37d4198d0f6c8917a2ed Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
||||||
Date: Fri, 30 Sep 2022 16:02:16 +0000
|
|
||||||
Subject: [PATCH 22/22] UI: Revert to HSL luminance for wallpaper dark hints
|
|
||||||
|
|
||||||
Y U no test for consistency, Google?
|
|
||||||
|
|
||||||
Change-Id: Ie5663bdf518b4ef93d6deb634e707a32d052ac55
|
|
||||||
---
|
|
||||||
core/java/android/app/WallpaperColors.java | 8 ++++----
|
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/core/java/android/app/WallpaperColors.java b/core/java/android/app/WallpaperColors.java
|
|
||||||
index 1adce321012b..477dbc827672 100644
|
|
||||||
--- a/core/java/android/app/WallpaperColors.java
|
|
||||||
+++ b/core/java/android/app/WallpaperColors.java
|
|
||||||
@@ -568,15 +568,15 @@ public final class WallpaperColors implements Parcelable {
|
|
||||||
float[] tmpHsl = new float[3];
|
|
||||||
for (int i = 0; i < pixels.length; i++) {
|
|
||||||
int pixelColor = pixels[i];
|
|
||||||
- ColorUtils.colorToHSL(pixelColor, tmpHsl);
|
|
||||||
final int alpha = Color.alpha(pixelColor);
|
|
||||||
|
|
||||||
// Apply composite colors where the foreground is a black layer with an alpha value of
|
|
||||||
// the dim amount and the background is the wallpaper pixel color.
|
|
||||||
int compositeColors = ColorUtils.compositeColors(blackTransparent, pixelColor);
|
|
||||||
|
|
||||||
- // Calculate the adjusted luminance of the dimmed wallpaper pixel color.
|
|
||||||
- double adjustedLuminance = ColorUtils.calculateLuminance(compositeColors);
|
|
||||||
+ // Calculate the luminance of the dimmed wallpaper pixel color.
|
|
||||||
+ ColorUtils.colorToHSL(compositeColors, tmpHsl);
|
|
||||||
+ double luminance = tmpHsl[2];
|
|
||||||
|
|
||||||
// Make sure we don't have a dark pixel mass that will
|
|
||||||
// make text illegible.
|
|
||||||
@@ -588,7 +588,7 @@ public final class WallpaperColors implements Parcelable {
|
|
||||||
pixels[i] = Color.RED;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- totalLuminance += adjustedLuminance;
|
|
||||||
+ totalLuminance += luminance;
|
|
||||||
}
|
|
||||||
|
|
||||||
int hints = 0;
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user