diff --git a/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
old mode 100644
new mode 100755
index 51e5924..be6f992
--- a/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
+++ b/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
@@ -1273,7 +1273,17 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
a.enabled = true;
a.launchMode = ActivityInfo.LAUNCH_SINGLE_INSTANCE;
a.persistableMode = ActivityInfo.PERSIST_NEVER;
- a.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
+ String names = Settings.Secure.getStringForUser(mContext.getContentResolver(),
+ Settings.Secure.SCREENSAVER_COMPONENTS,
+ getCurrentUserId());
+ /*jicong.wang modify for bug 19187 start {@*/
+ if ("com.android.dreams.basic/com.android.dreams.basic.Colors".equals(names)){
+ a.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
+ } else {
+ a.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
+ }
+ /*jicong.wang modify for bug 19187 end @}*/
+
a.colorMode = ActivityInfo.COLOR_MODE_DEFAULT;
a.flags |= ActivityInfo.FLAG_EXCLUDE_FROM_RECENTS;
【设置】设置--显示-屏保,横屏下锁屏界面开启万花筒会闪退报错。
最新推荐文章于 2024-03-25 16:46:58 发布