fixed media store monitoring delay to avoid temp entries
This commit is contained in:
parent
c7fcb5bc53
commit
79b6276846
1 changed files with 7 additions and 1 deletions
|
@ -48,5 +48,11 @@ class Durations {
|
||||||
static const doubleBackTimerDelay = Duration(milliseconds: 1000);
|
static const doubleBackTimerDelay = Duration(milliseconds: 1000);
|
||||||
static const softKeyboardDisplayDelay = Duration(milliseconds: 300);
|
static const softKeyboardDisplayDelay = Duration(milliseconds: 300);
|
||||||
static const searchDebounceDelay = Duration(milliseconds: 250);
|
static const searchDebounceDelay = Duration(milliseconds: 250);
|
||||||
static const contentChangeDebounceDelay = Duration(milliseconds: 1000);
|
|
||||||
|
// Content change monitoring delay should be large enough,
|
||||||
|
// so that querying the Media Store yields final entries.
|
||||||
|
// For example, when taking a picture with a Galaxy S10e default camera app,
|
||||||
|
// querying the Media Store just 1 second after sometimes yields an entry with
|
||||||
|
// its temporary path: `/data/sec/camera/!@#$%^..._temp.jpg`
|
||||||
|
static const contentChangeDebounceDelay = Duration(milliseconds: 1500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue