Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 934e0cf8 authored by Alec Mouri's avatar Alec Mouri
Browse files

Only dump active display mode when it exists.

Otherwise, capturing a bugreport while running a screenrecord crashes
the device.

Bug: 179301292
Test: builds, boots
Change-Id: Ic9412ae4af159e97e884355f01d25b8acb3e7883
parent 4cd01842
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -265,7 +265,8 @@ void DisplayDevice::dump(std::string& result) const {
    StringAppendF(&result, "+ %s\n", getDebugName().c_str());
    StringAppendF(&result, "   powerMode=%s (%d)\n", to_string(mPowerMode).c_str(),
                  static_cast<int32_t>(mPowerMode));
    StringAppendF(&result, "   activeMode=%s\n", to_string(*getActiveMode()).c_str());
    StringAppendF(&result, "   activeMode=%s\n",
                  mSupportedModes.size() ? to_string(*getActiveMode()).c_str() : "none");

    result.append("   supportedModes=\n");