Skip to content

Commit d56de3a

Browse files
committed
Add xrEnabled flag to CustomizeExportViewModel
1 parent 5ec9ce9 commit d56de3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

feature/results/src/main/java/com/android/developers/androidify/customize/CustomizeExportViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CustomizeExportViewModel @AssistedInject constructor(
6565
): CustomizeExportViewModel
6666
}
6767

68-
private val _state = MutableStateFlow(CustomizeExportState())
68+
private val _state = MutableStateFlow(CustomizeExportState(xrEnabled = remoteConfigDataSource.isXrEnabled()))
6969
val state: StateFlow<CustomizeExportState> = combine(
7070
_state,
7171
watchfaceInstallationRepository.connectedWatch,

feature/results/src/main/java/com/android/developers/androidify/customize/CustomizeState.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ data class CustomizeExportState(
4040
val connectedWatch: ConnectedWatch? = null,
4141
val watchFaceInstallationStatus: WatchFaceInstallationStatus = WatchFaceInstallationStatus.NotStarted,
4242
val watchFaceSelectionState: WatchFaceSelectionState = WatchFaceSelectionState(),
43+
val xrEnabled: Boolean = false,
4344
)
4445

4546
interface ToolState {

0 commit comments

Comments
 (0)