From 0e224b123814702f2249f3fa810b2e3a7fe14502 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 31 May 2024 17:11:21 -0300 Subject: [PATCH] Filter out @end@ helper package it doesn't really exist and should probably not even be in the backup metadata. It messes up progress reporting, if we keep it in. --- .../com/stevesoltys/seedvault/restore/AppSelectionManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt b/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt index 766fb755..40ac9863 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt @@ -10,6 +10,7 @@ import android.util.Log import androidx.lifecycle.LiveData import androidx.lifecycle.asLiveData import com.stevesoltys.seedvault.MAGIC_PACKAGE_MANAGER +import com.stevesoltys.seedvault.NO_DATA_END_SENTINEL import com.stevesoltys.seedvault.R import com.stevesoltys.seedvault.metadata.PackageMetadata import com.stevesoltys.seedvault.metadata.PackageMetadataMap @@ -149,6 +150,7 @@ internal class AppSelectionManager( @Suppress("IfThenToElvis") // the code is more readable like this if (isSelected == null) { // was not in list if (packageName == MAGIC_PACKAGE_MANAGER) true // @pm@ is essential for restore + else if (packageName == NO_DATA_END_SENTINEL) false // @end@ is not real // internal system apps were not in the list and are controlled by meta item, // so allow them only if meta item was selected else if (metadata.isInternalSystem) restoreSystemApps