installer: microg: do not override user choice
This commit is contained in:
@@ -206,14 +206,7 @@ class DownloadWorker @AssistedInject constructor(
|
|||||||
private suspend fun onSuccess(): Result {
|
private suspend fun onSuccess(): Result {
|
||||||
return withContext(NonCancellable) {
|
return withContext(NonCancellable) {
|
||||||
return@withContext try {
|
return@withContext try {
|
||||||
if (BuildConfig.FLAVOR == FLAVOUR_HUAWEI &&
|
appInstaller.getPreferredInstaller().install(download)
|
||||||
download.requiresGMS &&
|
|
||||||
PackageUtil.hasMicroGCompanion(context)
|
|
||||||
) {
|
|
||||||
appInstaller.getMicroGInstaller().install(download)
|
|
||||||
} else {
|
|
||||||
appInstaller.getPreferredInstaller().install(download)
|
|
||||||
}
|
|
||||||
Result.success()
|
Result.success()
|
||||||
} catch (exception: Exception) {
|
} catch (exception: Exception) {
|
||||||
Log.e(TAG, "Failed to install ${download.packageName}", exception)
|
Log.e(TAG, "Failed to install ${download.packageName}", exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user