Skip to content

Commit

Permalink
Filter out @EnD@ helper package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grote committed May 31, 2024
1 parent fa19261 commit 0e224b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0e224b1

Please sign in to comment.