DownloadWorker: Move app installation logic to new onSuccess method

Move app installation logic to onSuccess method in worker under a NonCancellable
context and convert the receiver class to be a generic status handler for anything
except success which should be handled in PackageManagerReceiver.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-12-27 18:05:12 +05:30
parent 763bf45a70
commit 14c8da2db5
5 changed files with 46 additions and 74 deletions

View File

@@ -135,7 +135,7 @@
</provider>
<receiver
android:name=".data.receiver.InstallReceiver"
android:name=".data.receiver.InstallerStatusReceiver"
android:exported="false" />
</application>
</manifest>