Commit Graph

472 Commits

Author SHA1 Message Date
Lefucjusz
c6192fd912 [BH-1989][BH-1990] Core functionality of What's New app
Implemented core functionality of What's New
application.
2024-07-10 12:45:46 +02:00
Dawid Wojtas
40afdb710d [BH-1920] Labels with correct page and song
This is reimplementation ListViewWithLabels
which is able to set correct page with
focused item.
2024-04-10 15:33:14 +02:00
Maciej Gibowicz
721fbbb1bd [BH-1896] Add opening the vertical lists on the currently set sound
After starting applications that use vertical lists of music, a list
will open on the appropriate page with the previously selected song.
Fix displaying vertical list before fileindexer ends.
2024-04-10 15:33:14 +02:00
Dawid Wojtas
bc9982c090 [BH-1876] Change main alarm list to vertical
Now the main alarm uses the vertical list to display songs.
Fixed the order of songs from the database. Added translations.
2024-04-10 15:33:14 +02:00
Maciej Gibowicz
061fd40159 [BH-1893] Create SoundsRepository global class
Added a new class called "SoundsRepository" for
all applications that use music files.
2024-04-10 15:33:14 +02:00
rrandomsky
4f63943a4c [BH-1792] Updated button handling during pre wake up
Button action behavior has been updated for pre-wake.
Now, if pre-wake is in progress, the first press, in addition to pressing
the front light, disables the pre-wake function.
2024-03-18 11:28:20 +01:00
Lefucjusz
1b37e62f42 [MOS-1067] Fix Pure crash when deleting all contacts
Fix of the issue that Pure would crash
when trying to delete all contacts from
Mudita Center when main window of
phonebook was opened and focus was
set on different contact than the
first one in the list.
2024-03-04 19:19:35 +01:00
rrandomsky
38357c9686 [CP-2156] Fixed no response when editing a contact to have the same number as another
Fixed no response on Center side when editing a contact to have
the same number as another contact in phonebook.
Added a duplicate number to the response body.
2024-02-13 16:28:37 +01:00
Lukasz Mastalerz
71b612f805 [BH-1815] Optimalize loading music files in relaxation
Relaxation is loading smooth with any number of files.
2023-11-15 14:26:29 +01:00
rrandomsky
8dccfeef72 [MOS-1042] Fixed inability to save a contact that did not previously have a phone number
Fixed inability to save a contact without a phone number
when contact lose the number after replace similar number and
visibility of the SAVE button when editing/creating a contact.
2023-10-24 14:16:10 +02:00
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
rrandomsky
73b72b99ef [MOS-471] Fix case sensitive in the note search
Changing the search engine in the notes application so that it is not case sensitive.
2023-09-29 14:14:23 +02:00
rrandomsky
d84671140f [MOS-1007] Fix for no popup when contact cannot be saved because of same nubers
Fix for fix. It add popup when user try to save contact witch practically
the same numners  (even if having a country code is only difference)
2023-09-07 11:57:06 +02:00
rrandomsky
e2f59a13b2 [MOS-1007] Fix for add/update contact with 2 same phone numbers
There was possibility to add contact, or edit some contact, with have
2 same phone numbers (exactly the same or witch/without country code).
Now this has been fixed and is not possible to create, even by editing, contact
with 2 exactly the same numbers or 2 same numbers and one of them with a country code
2023-08-03 11:26:12 +02:00
rrandomsky
4b8543912a [MOS-30] Fix for Alarm not being handled properly during a phone call
During the phone call, the alarm was not displayed and subsequent alarms
after this scenario did not work. This has now been fixed and the alarm
during a phone call will be automatically snooze.
2023-07-12 10:46:44 +02:00
Lefucjusz
9b339ecf5b [MOS-1003] Fix automatically marking new message as read
Fix of the issue that after entering messages
app, opening one of the threads and returning
to main messages app window, new messages in
this thread were automatically marked as read.
2023-07-06 17:39:26 +02:00
Lukasz Mastalerz
20edafc876 [CP-2020] Imported contact does not appear in Center
Stopped sending notification when contact add failed
2023-06-02 15:53:58 +02:00
Lukasz Mastalerz
4ddf3ce952 [CP-889] Add extended information about number duplications
Changed a way of returning information to Center about number
duplications
2023-05-31 10:10:03 +02:00
Lukasz Mastalerz
67e8b1c136 [CP-1950] Templates menu navigation loop and pagination on pure gets blocked
Fixed problem where the Templates window gets unresponsive for user input
while changes in templates were done via MC
2023-04-28 13:05:44 +02:00
Pawel Olejniczak
3ef3a8cce0 [CP-702] Add API for managing templates order
This API allows for managing message templates order.
DB Migration: adding a new column to templates tables.
2023-03-27 16:27:17 +02:00
Lefucjusz
137622902f [MOS-766] Change factory entries initialization routine
Changed of the algorithm used to initialize
settings database with values read from EEPROM,
previously first insertion failure resulted
in stopping the whole process, now next values
are inserted even if previous has failed.
Additionally minor cleanup.
2023-03-06 16:07:25 +01:00
Lukasz Mastalerz
4f7ec2efd3 [CP-1831] Editing contact which is deleted via Center can still be saved but with incomplete data
Fix for editing contact when it was deleted via Center.
Edited contact cannot be saved if it was deleted earlier. Proper communication is shown.
Fix for phonebook app was not handling database notifications correctly.
2023-02-24 10:28:55 +01:00
Bartosz
1340e6949c Revert "[MOS-578] Fix incorrect logic with SMS notifications"
This reverts commit de99e12e00.
2023-02-15 16:32:19 +01:00
Lukasz Mastalerz
e13ed40fa4 [CP-1624] Adding numberID as a field to contact and message response
Changing the way Center is recognizing the threads in the message
window by introducing the numberID
2023-02-09 09:13:15 +01:00
Bartosz Szostak
fb32765132 [MOS-578] Fix incorrect logic with SMS notifications
Fixed case, when there's only one thread unread and
there's no info about the thread, only a generic message

Tests are deleted because the fix would require rewritting ALL
of those tests - those will be written with new implementation
of notification table
2023-02-06 14:54:10 +01:00
Lukasz Mastalerz
eaedd79f0a [MOS-884] Importing contacts from SIM card more than once
Fix for importing and removing contacts from SIM card causes issue that
imported contacts didn't have a name and could by multiplied.
2023-02-03 09:57:14 +01:00
rrandomsky
e07f2db550 [MOS-864] Fix for country code in new contact based on deleted one
Fix for scenario when contact with some number with/without country code
was deleted, and new contact with same number but without/with country
code is added and then new contact have same prefix as deleted one.
Now new contact will have number exacly like provided.
2023-02-01 14:18:20 +01:00
Lukasz Mastalerz
d7c8a8a6bf [CP-1210] Contacts imported from SIM dont show up in Mudita Center
Fix for imported contacts from SIM don't show up in Mudita Center.
Added functionality to send notification after all imported contacts are
added to the database.
2023-01-26 15:12:10 +01:00
Bartosz
5836e28e04 [MOS-855] Fix weird behavior of messages
After thread was deleted, messages were still in DB
and so on
2023-01-25 13:37:46 +01:00
Lefucjusz
fc076fa4cc [MOS-855] Fix restore from legacy backup
Added checking if requested to restore backup
from pre-UDM version and setting db versions
to zero in such case, as version info file
(called backup.json in legacy backups) doesn't
contain info about versions.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
6f05c75c88 [MOS-835] Per product layout of database migration scripts
Implemented DB init migration and version.json update
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
b50eea9ed9 [CP-1427] Cleanup leftovers after old backup restore implementation
The synchronization mechanism has been freed from the constraints
of the old backup and restore implementation.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
0a9846e4a8 [MOS-694] Move DB initialization from OS to build scripts
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
2023-01-19 16:41:56 +01:00
Mateusz Piesta
150f1cfdef [CP-1560] New user directory structure
* New user directory implemented.
* Generate user directory structure at compile
time instead of at runtime(Pure/Harmony).
* Changed MTP root path to /storage
* FileIndexer: Minor refactor
* FileIndexer: Fixed handling incorrect/non-existing
scan directories.
* Updated Repository module to correctly handle
many assets paths.
* MultimediaDB: Minor unit tests refactor and fixed
some issues when using simulator.
* MultimediaDB: Added new queries and unit tests
* Harmony/Relaxation: Updated to correctly
use audio assets from more than one source.
* Harmony/Relaxation: Updated model and list items
provider.
* Harmony/Relaxation: Fixed stack overflow in audio service
2023-01-19 16:41:56 +01:00
Maciej-Mudita
e6bc56f362 [MOS-787] Fix crash when syncing with Mudita-Center
When Pure had large databases - exceeding 2MB, a crash occurred
during synchronization with Mudita-Center.
2023-01-13 09:12:23 +01:00
rrandomsky
0342eb50c8 [MOS-737] Fix for adding a country code prefix to existing contact
Adding or removing country code from existing contacts number is
changing now number record itself, exactly when changed number
is placed in DB, instead to create new number record, to avoid
miss match during matching numbers.
2022-12-21 14:55:30 +01:00
rrandomsky
abdf9b7c45 [MOS-737] Revert "Fix for adding a country code prefix to existing ..."
This reverts commit 14d6d53ac8,
because it can cause critical error for SMS application.
2022-12-07 15:05:44 +01:00
rrandomsky
14d6d53ac8 [MOS-737] Fix for adding a country code prefix to existing contact
Adding or removing code country from contact's number creates a
new number record. Old number, which was connected witch contact
previously, is removed from the numbers table to avoid miss match
numbers. Changing country code only creates new number records,
without removing old ones. Old ones are temporary number from now.
2022-12-05 14:18:29 +01:00
Lefucjusz
255d03a5da [MOS-677] Fix crash on importing unprocessable contact
Fix of the issue that phone crashed when trying
to import contact with phone number that couldn't
be parsed.
Additionally minor code cleanup.
2022-09-06 10:38:53 +02:00
Adam Wulkiewicz
074b33a645 [MOS-685] Make small improvements in various places of the code
- Forward arguments
- Remove unused code
- Remove auto return type when it's not needed
- Add const to member functions
- Use startsWith and endsWith from utils
- Allow instantiation of operators only for specific types
- Caluclate key mask in compile time
2022-09-02 01:12:47 +02:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Mateusz Piesta
7cbfd6a984 [BH-1356] Meditation stats backend
Added meditation statc backend.
Added temporary widget for testing
purposes and corresponding modules
(meditation stats presenter, window,model).
2022-07-25 09:05:05 +02:00
Pawel Olejniczak
f56b631eb6 [CP-563] Return correct threadID after adding new message
After adding new message via Messages EP API,
threadID field was always 0, which was incorrect.
2022-07-22 10:34:31 +02:00
Bartosz Cichocki
839d6f301b [MOS-593] Fix backup issues with DB
Backup had some issues when filesystem was not clearly closed.
After that, sqlite was not commiting the transaction while
doing VACUUM INTO query, which caused fail on the next
query. Fixed by commiting the transaction when there's
any ongoing one during backup.
2022-07-14 10:52:10 +02:00
Mateusz Piesta
0c246dc372 [BH-1533] Display battery charging state
Battery state during charging is always
displayed even if the state of charge
reached 100%.
Minor refactor of BellBattery class.
Removed unused includes.
2022-07-13 11:24:12 +02:00
Pawel Olejniczak
291b695282 [CP-1334] Return templateID after adding new one
No information about newly added message template
was returned. Now temaplateID helps to identify
newly added record.
2022-06-09 00:33:27 +02:00
Bartosz Cichocki
228fca4b83 [MOS-463] Unify cellular namespace
Unified cellular namespace, fixed test buildiing,
removed some unused includes
2022-06-08 10:54:29 +02:00
Adam Dobrowolski
2b1ae19d62 [MOS-512] Fix build with gcc12
As in topic
2022-06-03 12:38:34 +02:00
Lucjan Bryndza
523eb6f577 [MOS-513] Fix issues related to the GCC12 gcc
Fix issues related to the GCC 12
Fix paths for ignore license headers
2022-06-02 13:24:09 +02:00
Marcin Zieliński
00fd29f8bd [MOS-477] Add the call log erasing option
Add the call log erasing option
2022-05-25 10:55:14 +02:00