Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI
This commit is contained in:
1 parent
51a1a91d42
commit
62ac46e498
100 files changed
+2736
-240
No files matched your search
@@ -637,7 +637,7 @@ int tox_run_main(int argc, char** argv) {
|
||||
};
|
||||
|
||||
auto openWindow = [&]() {
|
||||
if (isPhonePasscodeLocked()) return;
|
||||
if (isDuressMode() || isPhonePasscodeLocked()) return;
|
||||
writeIntFile(activePidPath, static_cast<int>(::getpid()));
|
||||
closeOtherPlugins("tox");
|
||||
visible = true;
|
||||
@@ -665,6 +665,11 @@ int tox_run_main(int argc, char** argv) {
|
||||
if (cmd == "NOP") continue;
|
||||
if (cmd == "CLOSE") closeWindow();
|
||||
else if (cmd == "RELOAD_THEME") {
|
||||
if (isDuressMode()) {
|
||||
closeWindow();
|
||||
networkActive = false;
|
||||
continue;
|
||||
}
|
||||
neo.reloadTheme();
|
||||
if (visible) render();
|
||||
} else if (cmd.rfind("CALL_ACCEPT", 0) == 0) {
|
||||
@@ -706,7 +711,7 @@ int tox_run_main(int argc, char** argv) {
|
||||
|
||||
// Iterate Tox and ToxAV when visible, in a call, or when friends are configured
|
||||
bool shouldIterateTox =
|
||||
networkActive && tox &&
|
||||
!isDuressMode() && networkActive && tox &&
|
||||
(visible || ctx.inCall || tox_self_get_friend_list_size(tox) > 0);
|
||||
if (shouldIterateTox) {
|
||||
tox_iterate(tox, &ctx);
|
||||
|
||||
Reference in new issue
Block a user