M module-apps/application-call/windows/CallWindow.cpp => module-apps/application-call/windows/CallWindow.cpp +1 -1
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ApplicationCall.hpp"
M module-apps/application-call/windows/NumberWindow.cpp => module-apps/application-call/windows/NumberWindow.cpp +2 -1
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ApplicationCall.hpp"
@@ 28,6 28,7 @@ namespace gui
assert(interface != nullptr);
assert(app != nullptr);
switchFormatter(utils::country::getAlpha2Code(currentCountry));
+ preventsLongPressLock = true;
}
void NumberWindow::setNumberLabel(const std::string &num)
M module-apps/apps-common/windows/AppWindow.cpp => module-apps/apps-common/windows/AppWindow.cpp +5 -4
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "AppWindow.hpp"
@@ 184,9 184,10 @@ namespace gui
}
if (inputEvent.isLongRelease(gui::KeyCode::KEY_PND)) {
- LOG_INFO("Locking phone");
-
- application->getPhoneLockSubject().lock();
+ if (not preventsLongPressLock) {
+ LOG_INFO("Locking phone");
+ application->getPhoneLockSubject().lock();
+ }
}
if ((inputEvent.isShortRelease())) {
M module-apps/apps-common/windows/AppWindow.hpp => module-apps/apps-common/windows/AppWindow.hpp +3 -2
@@ 1,4 1,4 @@
-// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
+// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
@@ 50,7 50,8 @@ namespace gui
/**
* A flag that is set if current window state requires the phone to stay unlocked
*/
- bool preventsAutoLock = false;
+ bool preventsAutoLock = false;
+ bool preventsLongPressLock = false;
public:
AppWindow() = delete;
M pure_changelog.md => pure_changelog.md +1 -0
@@ 22,6 22,7 @@
* Fixed message content being deleted when phone mode changed on new message window
* Fixed wrong navigation bar state after exit from custom repeat window
* Fixed OS crash when editing contact by adding country prefix to number
+* Fixed unwanted Mudita Center passcode prompt after long press '#' while dialing
### Added