lineage_patches_unified/patches_wephone/frameworks_base/0001-add-presentation-on-external-display.patch

49 lines
2.0 KiB
Diff

From 8765b97c6f66d449a4cee746abf015553877a153 Mon Sep 17 00:00:00 2001
From: Nehemiah of Zebulun <nehemiah-zb@mezimmah.net>
Date: Wed, 24 Jan 2024 15:25:52 -0500
Subject: [PATCH] add presentation on external display
Change-Id: I83ecae9888cec97a806bda9b5f9580724455d8cd
---
.../keyguard/KeyguardDisplayManager.java | 24 ------
1 file changed, 24 deletions(-)
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardDisplayManager.java b/packages/SystemUI/src/com/android/keyguard/KeyguardDisplayManager.java
index d6fabd63420..26d08af339c 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardDisplayManager.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardDisplayManager.java
@@ -121,30 +121,6 @@ public class KeyguardDisplayManager {
* was already there.
*/
private boolean showPresentation(Display display) {
- if (!isKeyguardShowable(display)) return false;
- if (DEBUG) Log.i(TAG, "Keyguard enabled on display: " + display);
- final int displayId = display.getDisplayId();
- Presentation presentation = mPresentations.get(displayId);
- if (presentation == null) {
- final Presentation newPresentation = new KeyguardPresentation(mContext, display,
- mInjectableInflater.injectable(LayoutInflater.from(mContext)));
- newPresentation.setOnDismissListener(dialog -> {
- if (newPresentation.equals(mPresentations.get(displayId))) {
- mPresentations.remove(displayId);
- }
- });
- presentation = newPresentation;
- try {
- presentation.show();
- } catch (WindowManager.InvalidDisplayException ex) {
- Log.w(TAG, "Invalid display:", ex);
- presentation = null;
- }
- if (presentation != null) {
- mPresentations.append(displayId, presentation);
- return true;
- }
- }
return false;
}
--
2.39.2