diff options
-rw-r--r-- | sdm/libs/hwc2/hwc_display_primary.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp index 1f2fdf64..be05e0a3 100644 --- a/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/sdm/libs/hwc2/hwc_display_primary.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved. +* Copyright (c) 2014 - 2018, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -210,7 +210,8 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n // Avoid flush for Command mode panel. DisplayConfigFixedInfo display_config; display_intf_->GetConfig(&display_config); - flush_ = !display_config.is_cmdmode; + flush_ = !(display_config.is_cmdmode && secure_display_active_); + validated_ = true; return status; } |