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:
@@ -135,7 +135,7 @@
|
||||
</provider>
|
||||
|
||||
<receiver
|
||||
android:name=".data.receiver.InstallReceiver"
|
||||
android:name=".data.receiver.InstallerStatusReceiver"
|
||||
android:exported="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user