Inline link+sync remote config.

This commit is contained in:
Greyson Parrelli
2025-02-26 11:40:28 -05:00
parent be2e9c68c1
commit 6ebc860064
2 changed files with 2 additions and 10 deletions

View File

@@ -181,7 +181,7 @@ class LinkDeviceViewModel : ViewModel() {
if (LinkDeviceRepository.isValidQr(uri)) {
_state.update {
it.copy(
qrCodeState = if (uri.supportsLinkAndSync() && RemoteConfig.linkAndSync) QrCodeState.VALID_WITH_SYNC else QrCodeState.VALID_WITHOUT_SYNC,
qrCodeState = if (uri.supportsLinkAndSync()) QrCodeState.VALID_WITH_SYNC else QrCodeState.VALID_WITHOUT_SYNC,
linkUri = uri,
showFrontCamera = null
)
@@ -225,7 +225,7 @@ class LinkDeviceViewModel : ViewModel() {
Log.i(TAG, "Adding device with sync.")
addDeviceWithSync(linkUri)
} else {
Log.i(TAG, "Adding device without sync. (uri: ${linkUri.supportsLinkAndSync()}, remoteConfig: ${RemoteConfig.linkAndSync})")
Log.i(TAG, "Adding device without sync. (uri: ${linkUri.supportsLinkAndSync()})")
addDeviceWithoutSync(linkUri)
}
}

View File

@@ -1119,14 +1119,6 @@ object RemoteConfig {
hotSwappable = false
)
/** Whether or not this device supports syncing data to newly-linked device. */
@JvmStatic
val linkAndSync: Boolean by remoteBoolean(
key = "android.linkAndSync.3",
defaultValue = false,
hotSwappable = true
)
/** Whether or not this device respect attachment backfill requests. */
val attachmentBackfillSync: Boolean by remoteBoolean(
key = "android.attachmentBackfillSync",