android9.0修复无锁屏时休眠后马上亮屏,ui界面点击或滑动无响应

diff --git a/frameworks/base/core/java/android/view/ViewRootImpl.java b/frameworks/base/core/java/android/view/ViewRootImpl.java
old mode 100644
new mode 100755
index 6903115..7736c07
--- a/frameworks/base/core/java/android/view/ViewRootImpl.java
+++ b/frameworks/base/core/java/android/view/ViewRootImpl.java
@@ -1397,10 +1397,10 @@ public final class ViewRootImpl implements ViewParent,
             for (int i = 0; i < mWindowStoppedCallbacks.size(); i++) {
                 mWindowStoppedCallbacks.get(i).windowStopped(stopped);
             }
-
-            if (mStopped) {
+            //2020.7.28  del 修复无锁屏时休眠后马上亮屏,ui界面点击或滑动无响应
+            /*if (mStopped) {
                 mSurface.release();
-            }
+            }*/
         }
     }

 

你可能感兴趣的:(android)