View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017162 | MMA | Synchronization | public | 2020-12-02 16:30 | 2020-12-18 20:30 |
Reporter | martin | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | Android | OS | - | OS Version | all |
Product Version | 1.4.2 | ||||
Target Version | 1.4.2 | Fixed in Version | 1.4.2 | ||
Summary | 0017162: Mounted storage notification can be annoying | ||||
Description | Mounted storage: /storage/26AA-18B1 Scan for updated media files? [Check][Postpone] This is a notification that appears when storage is mounted. The data on storage should be checked because there can be new/deleted tracks. Scan action can take some time, so a user has the option "Postpone" this operation. Originally reported as 0015831 | ||||
Tags | No tags attached. | ||||
Fixed in build | 939 | ||||
|
This notification is useful when storage is mounted and data was changed (usually is not visible too often). Maybe battery saver and power optimization unmount/mount the storage when phone screen off/on as Rusty noted in 0015831:0054364. I suggest creating a special notification channel to be possible to turn off it simply. channel_name "Storage changes" channel_name_description "Notification when external storage is mounted" |
|
I would not change to be able to completely turn it off, but rather make mounting handled bit differently. eg. when MMA have access to SDCards/external storage it saves small info in storage info.xml with available size for Storage on Device shutdown if possible. so next time Device start and/or MMA gets storrage connected it can be easily compared with added some buffer of 30Mb difference and not show that dialog? |
|
It sounds great to me. So e.g if used space on storage is not changed, then dialog will not be shown. |
|
So, if i got this correctly notification will be shown if Storageinfo.xml is missing and free space differs much, otherwise it is assumed no changes happened? Could that be also used to cover USB OTG that changes storage IDs on mounting and that we just use ID from storageinfo.xml? It would help a lot for such devices like mu Car head-unit infotainment that have 3 USB ports which mount with significant delay. |
|
I will not use Storageinfo.xml, it uses MMW and I don't want to modify it. The purpose of this notification is to avoid starting an MMA service when it's not necessary. Often when this event is received MMA is inactive and processing of this event must be simple and quick because is processed on UI thread. All info that MMA receives is the root folder of mounted storage. So MMA will store stats to preferences, where MMA has always access, after each MediaStore sync in the format: rootFolder: FreeSpace Tested and working well. What do you mean that USB OTG changes storage IDs? If you have e.g flash disc and plug into a different USB, then ID is changed? Or also when you use the same port? MMA has to respect an actual storage ID to access tracks. This looks to me like a different issue, maybe you can describe it in more detail and create an issue for it (target > 2.0) |
|
Fixed in build 1.4.2.939 |
|
Verified 939 Not reported anymore on SDcard. As pointed works very well Left resolved till tested with OTG drives bit more next week or so. |
|
Verified 939, 941 All working Ok now. much better |