Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c01d83b authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '5330-install_notification_issue' into 'main'

Issue 5330: Fix "Installing ..." notification lingereing around after app install.

See merge request !104
parents 704ffa6e 45e80fdc
Loading
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -46,9 +46,18 @@ class InstallAppWorker @AssistedInject constructor(
    companion object {
        private const val TAG = "InstallWorker"
        const val INPUT_DATA_FUSED_DOWNLOAD = "input_data_fused_download"
    }

    private val atomicInteger = AtomicInteger()
        /*
         * If this is not "static" then each notification has the same ID.
         * Making it static makes sure the id keeps increasing when atomicInteger.getAndIncrement()
         * is called.
         * This is possible cause for "Installing ..." notification to linger around
         * after the app is installed.
         *
         * Issue: https://gitlab.e.foundation/e/backlog/-/issues/5330
         */
        private val atomicInteger = AtomicInteger(100)
    }

    override suspend fun doWork(): Result {
        var fusedDownload: FusedDownload? = null