Merge restore entry points, avoid unnecessary new strings

This commit is contained in:
arkon
2020-11-21 12:28:25 -05:00
parent 47a172df1f
commit eceac4d6e3
4 changed files with 58 additions and 89 deletions

View File

@@ -39,9 +39,7 @@ import kotlin.math.max
@OptIn(ExperimentalSerializationApi::class)
class FullBackupManager(context: Context) : AbstractBackupManager(context) {
/**
* Parser
*/
val parser = ProtoBuf
/**

View File

@@ -58,9 +58,6 @@ class LegacyBackupManager(context: Context, version: Int = CURRENT_VERSION) : Ab
var version: Int = version
private set
/**
* Json Parser
*/
var parser: Gson = initParser()
/**