Commit cf94723 1 parent c215829 commit cf94723 Copy full SHA for cf94723
File tree 1 file changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/ui
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -330,10 +330,10 @@ class MainActivity : BaseActivity() {
330
330
* We want to scheduleWork after a delay in the off chance where we came back from NewMessageActivity while an Activity
331
331
* recreation got triggered.
332
332
*
333
- * We need to give time to the NewMessageActivity to save the last state of the draft in realm and then scheduleWork on its
334
- * own. Not waiting would scheduleWork before NewMessageActivity has time to write to realm and schedule its own worker. This
335
- * would result in an attempt to save any temporary draft saved to realm because of saveDraftDebouncing() effectively sending
336
- * a second unwanted draft .
333
+ * We need to give time to the NewMessageActivity to save the last state of the draft in Realm and then scheduleWork on its
334
+ * own. Not waiting would scheduleWork before NewMessageActivity has time to write to Realm and schedule its own worker. This
335
+ * would result in an attempt to save any temporary Draft saved to Realm because of saveDraftDebouncing() effectively sending
336
+ * a second unwanted Draft .
337
337
*/
338
338
private fun scheduleDraftActionsWorkWithDelay () = lifecycleScope.launch(Dispatchers .IO ) {
339
339
delay(1_000L )
You can’t perform that action at this time.
0 commit comments