UI improvements for testing

- Prefill gateway URL and token with defaults
- Make connection log window larger (400dp)
- Smaller font (10sp) to fit more text
This commit is contained in:
James (ClawdBot) 2026-01-28 18:47:49 +00:00
parent 95a360354c
commit 56120a9b6b
2 changed files with 8 additions and 4 deletions

View File

@ -23,11 +23,11 @@ class TokenStore(context: Context) {
)
var gatewayUrl: String?
get() = prefs.getString(KEY_GATEWAY_URL, null)
get() = prefs.getString(KEY_GATEWAY_URL, DEFAULT_GATEWAY_URL)
set(value) = prefs.edit().putString(KEY_GATEWAY_URL, value).apply()
var gatewayToken: String?
get() = prefs.getString(KEY_GATEWAY_TOKEN, null)
get() = prefs.getString(KEY_GATEWAY_TOKEN, DEFAULT_GATEWAY_TOKEN)
set(value) = prefs.edit().putString(KEY_GATEWAY_TOKEN, value).apply()
var nodeId: String?
@ -49,5 +49,9 @@ class TokenStore(context: Context) {
private const val KEY_GATEWAY_URL = "gateway_url"
private const val KEY_GATEWAY_TOKEN = "gateway_token"
private const val KEY_NODE_ID = "node_id"
// Default values for testing
private const val DEFAULT_GATEWAY_URL = "ws://100.123.216.65:18789"
private const val DEFAULT_GATEWAY_TOKEN = "2dee57cc3ce2947c27ce9e848d5c3e95cc452f25a1477462"
}
}

View File

@ -254,11 +254,11 @@
<TextView
android:id="@+id/tvLiveLog"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_height="400dp"
android:background="#1C1917"
android:textColor="#22C55E"
android:fontFamily="monospace"
android:textSize="11sp"
android:textSize="10sp"
android:padding="12dp"
android:scrollbars="vertical"
android:gravity="bottom"