This repository was archived by the owner on Mar 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
app/src/main/java/com/zeroclaw/android/data/repository Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -412,8 +412,7 @@ class DataStoreSettingsRepository(
412412
413413 override suspend fun setGatewayBearerToken (token : String ) = editSecure(SEC_GW_BEARER_TOKEN , token)
414414
415- override suspend fun getGatewayBearerToken (): String =
416- securePrefs.getString(SEC_GW_BEARER_TOKEN , " " ) ? : " "
415+ override suspend fun getGatewayBearerToken (): String = securePrefs.getString(SEC_GW_BEARER_TOKEN , " " ) ? : " "
417416
418417 override suspend fun setGatewayPairRateLimit (limit : Int ) = edit { it[KEY_GW_PAIR_RATE ] = limit }
419418
Original file line number Diff line number Diff line change @@ -43,16 +43,18 @@ class RoomAgentRepository(
4343 }
4444
4545 override suspend fun updatePrimaryAgentModel (model : String ) {
46- val primary = agents.first().firstOrNull {
47- it.isEnabled && it.provider.isNotBlank()
48- } ? : return
46+ val primary =
47+ agents.first().firstOrNull {
48+ it.isEnabled && it.provider.isNotBlank()
49+ } ? : return
4950 save(primary.copy(modelName = model))
5051 }
5152
5253 override suspend fun updatePrimaryAgentProvider (provider : String ) {
53- val primary = agents.first().firstOrNull {
54- it.isEnabled && it.provider.isNotBlank()
55- } ? : return
54+ val primary =
55+ agents.first().firstOrNull {
56+ it.isEnabled && it.provider.isNotBlank()
57+ } ? : return
5658 save(primary.copy(provider = provider))
5759 }
5860}
You can’t perform that action at this time.
0 commit comments